Navbar
Navbar
Navbar
body {
position: relative;
margin: var(--header-height) 0 0 0;
transition: .5s;
}
a {
text-decoration: none;
}
.hpad .header__toggle {
color: var(--hover);
font-size: 1.5rem;
cursor: pointer;
}
.hpad .header__img {
width: 35px;
height: 35px;
display: flex;
justify-content: center;
border-radius: 50%;
overflow: hidden;
}
.hpad .nav {
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
}
.hpad .nav__logo,
.hpad .nav__link {
display: grid;
grid-template-columns: max-content max-content;
align-items: center;
column-gap: 1rem;
padding: .5rem 0 .5rem 1.5rem;
}
.hpad .nav__logo {
margin-bottom: 2rem;
}
.hpad .nav__logo-icon {
font-size: 1.25rem;
color: var(--white-color);
}
.hpad .nav__logo-name {
color: var(--white-color);
font-weight: 700;
}
.hpad .nav__list {
margin-top: 2rem;
}
.hpad .nav__link {
position: relative;
color: var(--first-color-light);
margin-bottom: .5rem;
transition: .3s;
}
.hpad .nav__link:hover {
color: var(--hover);
}
.hpad .nav__icon {
font-size: 1.25rem;
}
/*Active links*/
.hpad .active {
color: black;
}
.hpad .active::before {
content: '';
position: absolute;
left: 0;
width: 3px;
height: 32px;
background-color: black;
border-radius: 3px;
}
.main_container {
margin: calc(var(--header-height) + 1rem) 0 0 0;
margin-left: calc(var(--nav-width) + 12rem);
}
.hpad .header {
height: calc(var(--header-height) + 0.1rem);
padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
}
.hpad .header__img {
width: 40px;
height: 40px;
}
.hpad .l-navbar {
left: 0;
padding: 1rem 1rem 0 0;
}
.hpad .show_des {
width: calc(var(--nav-width) + 156px);
}