122 lines
2.5 KiB
CSS
122 lines
2.5 KiB
CSS
.navbar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: var(--nav-size);
|
|
height: calc(100vh - (3 * var(--unit-size)));
|
|
position: fixed;
|
|
background-color: var(--bg1);
|
|
margin-top: calc(3 * var(--main-size));
|
|
margin-left: -1px;
|
|
border: solid 1px var(--accent-low);
|
|
}
|
|
.navbar {
|
|
left: -100%;
|
|
top: 0;
|
|
transition: 0.3s ease;
|
|
}
|
|
/* left navigation */
|
|
.navbar .left-nav {
|
|
flex: 1;
|
|
}
|
|
.navbar .left-nav > a {
|
|
display: block;
|
|
color: var(--accent);
|
|
font-size: var(--medium-size);
|
|
margin-bottom: var(--unit-size);
|
|
margin-left: var(--unit-size);
|
|
}
|
|
.navbar .left-nav > a:nth-child(1) {
|
|
margin-top: var(--unit-size);
|
|
}
|
|
.navbar .left-nav > a:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.navbar .left-nav > a:hover,
|
|
.navbar .left-nav > a:focus {
|
|
color: var(--fg);
|
|
transition: all 0.8s ease;
|
|
}
|
|
/* footer static pages links */
|
|
.navbar .footer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
justify-content: space-evenly;
|
|
font-size: var(--medium-size);
|
|
padding: var(--unit-size);
|
|
margin-bottom: var(--unit-size);
|
|
}
|
|
.navbar .footer a {
|
|
margin-right: var(--unit-size);
|
|
color: var(--accent);
|
|
font-size: var(--medium-size);
|
|
}
|
|
|
|
/* checkbox trick */
|
|
.icon-menu label {
|
|
display: block;
|
|
cursor: pointer
|
|
}
|
|
#toggle {
|
|
position: absolute;
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
}
|
|
#toggle:checked~.navbar {
|
|
display: flex;
|
|
left: 0;
|
|
top: 0;
|
|
transition: 0.3s ease;
|
|
}
|
|
input.larger {
|
|
width: calc(1.5 * var(--main-size));
|
|
height: calc(1.5 * var(--main-size));
|
|
}
|
|
|
|
/* profile stats */
|
|
.profile {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
background-color: var(--bg2);
|
|
padding: var(--unit-size);
|
|
font-size: var(--small-size);
|
|
margin-bottom: var(--unit-size);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.icon-avatar {
|
|
order: 1;
|
|
height: calc(5 * var(--unit-size));
|
|
width: calc(5 * var(--unit-size));
|
|
margin-right: var(--small-size);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.info {
|
|
order: 2;
|
|
}
|
|
.info #nick {
|
|
order: 1;
|
|
margin-bottom: var(--small-size);
|
|
}
|
|
.info .tags {
|
|
order: 2;
|
|
margin-bottom: var(--small-size);
|
|
}
|
|
.info .stats {
|
|
order: 3;
|
|
}
|
|
.info .stats span:last-child {
|
|
margin-left: var(--small-size);
|
|
}
|
|
.info .tags i {
|
|
color: var(--accent);
|
|
}
|
|
.info .tags i:first-child {
|
|
margin-left: 0 !important;
|
|
}
|
|
.info .tags i:last-child {
|
|
margin-left: var(--small-size);
|
|
}
|