83 lines
1.3 KiB
CSS
83 lines
1.3 KiB
CSS
#sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 48px;
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
background-color: var(--panels-background);
|
|
color: var(--panels-text);
|
|
transition: width 125ms ease-in-out 150ms;
|
|
z-index: 999;
|
|
}
|
|
|
|
#sidebar:hover {
|
|
width: 200px;
|
|
}
|
|
|
|
#sidebar .main_tablinks_text {
|
|
display: none;
|
|
display: inline-block;
|
|
margin-left: 20px;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 50ms ease-in-out 200ms;
|
|
}
|
|
|
|
#sidebar:hover .main_tablinks_text {
|
|
display: inline-block;
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
#sidebar .main_tablinks:not(#theme_selector) {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-top: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#sidebar .main_tablinks:not(#theme_selector):hover {
|
|
background-color: #3e3e3e;
|
|
}
|
|
|
|
#sidebar .side_icon {
|
|
font-size: 30px;
|
|
padding: 9px;
|
|
}
|
|
|
|
#sidebar .main_tablinks.active .side_icon {
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
/* Theme selector */
|
|
#theme_selector {
|
|
display: flex;
|
|
height: 50px;
|
|
}
|
|
|
|
#theme_togglers {
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
#theme_togglers .theme_toggler {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 1000px;
|
|
border: 1px solid var(--accent-color);
|
|
}
|
|
|
|
#theme_togglers .theme_toggler.light {
|
|
background: white;
|
|
}
|
|
|
|
#theme_togglers .theme_toggler.dark {
|
|
background: #141414;
|
|
}
|
|
|
|
#sidebar .theme_selector_icon {
|
|
transform: rotate(45deg);
|
|
}
|