Skip to content

Instantly share code, notes, and snippets.

@Taofiqq
Created February 5, 2024 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Taofiqq/3980a05cc6479fba156f796af5a2da85 to your computer and use it in GitHub Desktop.
Save Taofiqq/3980a05cc6479fba156f796af5a2da85 to your computer and use it in GitHub Desktop.
This is a CSS file for the NavbarHook.js code, where the link to this gist was attached.
.header {
position: fixed;
width: 100%;
top: 0;
left: 0;
background-color: transparent;
z-index: var(--z-fixed);
}
.nav {
display: flex;
align-items: center;
justify-content: space-between;
position: relative;
height: var(--header-height);
margin: 1rem;
}
.nav__logo {
color: var(--first-color);
transition: color 0.4s;
font-size: var(--h2-font-size);
font-family: var(--second-font);
}
.nav__toggle,
.nav__close {
font-size: 1.5rem;
color: var(--title-color);
cursor: pointer;
}
.nav__cta {
background-color: var(--first-color);
color: var(--title-color);
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s ease;
padding: 0.75rem 1.5rem;
}
.nav__list {
display: flex;
flex-direction: column;
row-gap: 2.5rem;
}
.nav__link {
color: var(--title-color);
font-weight: var(--font-semi-bold);
transition: color 0.4s;
}
.nav__link:hover {
color: var(--first-color);
}
.nav__close {
position: absolute;
top: 1rem;
right: 1.5rem;
}
.show-menu {
right: 0;
}
.nav__list__web {
display: flex;
flex-direction: row;
column-gap: 2.5rem;
align-items: center;
list-style-type: none;
padding: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment