2020-07-16 00:13:23 +08:00

124 lines
2.3 KiB
SCSS

@import '~@styles/variables';
.sidebar {
position: fixed;
top: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
flex-shrink: 0;
width: 160px;
user-select: none;
}
.sidebar-logo {
margin-top: 50px;
width: 60px;
height: 60px;
}
.sidebar-menu {
display: flex;
flex-direction: column;
flex: 1;
margin-top: 12px;
.item {
display: block;
margin-top: 18px;
> a {
display: block;
width: 120px;
height: 36px;
line-height: 36px;
font-size: 14px;
border-radius: 18px;
text-align: center;
}
> a,
a:active,
a:visited {
color: $color-gray-darken;
text-decoration: none;
}
> a.active {
background: linear-gradient(135deg, $color-primary, $color-primary-dark);
color: $color-white;
box-shadow: 0 2px 8px rgba($color: $color-primary-dark, $alpha: 0.5);
}
}
}
.sidebar-version {
display: flex;
flex-direction: column;
align-items: center;
padding-bottom: 20px;
}
.sidebar-version-label {
font-size: 14px;
color: $color-primary-dark;
text-shadow: 0 2px 6px rgba($color: $color-primary-dark, $alpha: 0.4);
}
.sidebar-version-text {
text-align: center;
font-size: 14px;
margin: 8px 0;
padding: 0 10px;
color: $color-primary-darken;
}
@media (max-width: 768px) {
.sidebar {
width: 100%;
height: 60px;
flex-direction: row;
background: $background;
z-index: 10;
}
.sidebar-logo {
margin: 0 15px;
width: 36px;
height: 36px;
}
.sidebar-menu {
flex: 1;
flex-direction: row;
justify-content: center;
margin-top: 0;
overflow-x: scroll;
padding: 10px;
&::-webkit-scrollbar {
display: none;
}
.item {
margin: 0 3px;
> a {
width: 80px;
height: 32px;
line-height: 32px;
}
}
.item.no-mobile {
display: none;
}
}
.sidebar-version {
display: none;
}
}