scinote-web/app/assets/stylesheets/themes/menu_bar.scss

92 lines
1.5 KiB
SCSS
Raw Normal View History

2018-03-20 20:53:11 +08:00
@import "constants";
@import "mixins";
.menu-bar {
background-color: $color-white;
box-shadow: 1px 3px 6px 0 $color-alto;
2018-03-20 20:53:11 +08:00
height: 100%;
left: 0;
overflow-x: hidden;
position: fixed;
width: 83px;
2018-04-16 23:05:22 +08:00
z-index: 1001;
padding-bottom: 50px;
.scroll-wrapper {
height: 100%;
padding-top: 16px;
width: 83px;
overflow-x: hidden;
}
2018-03-20 20:53:11 +08:00
ul.nav > li {
& > a {
2018-03-28 19:54:01 +08:00
color: $color-silver-chalice;
2018-03-20 20:53:11 +08:00
display: grid;
2018-03-30 15:54:57 +08:00
font-size: $font-size-h6;
2018-03-20 20:53:11 +08:00
margin-left: auto;
margin-right: auto;
padding: 10px;
text-align: center;
& > span {
padding-top: 4px;
}
}
&.active {
2018-05-14 18:08:45 +08:00
@include box-shadow(-4px 0 0 $brand-primary);
2018-03-20 20:53:11 +08:00
background-color: $color-gainsboro;
2018-05-12 00:02:17 +08:00
margin-left: 4px;
2018-03-20 20:53:11 +08:00
& > a {
color: $color-emperor;
}
}
}
ul.nav-bottom {
bottom: 0;
padding-bottom: 16px;
position: fixed;
width: inherit;
}
.dropup {
.dropdown-menu {
bottom: 0;
left: 99%;
margin-bottom: 0;
}
&.open > a {
color: $color-emperor;
}
}
#sideBarButton > span {
@include rotate-animation(0.5s, 0deg);
}
#sideBarButton[data-shown] > span {
@include rotate-animation(0.5s, 180deg);
}
2018-05-25 14:50:27 +08:00
#sideBarButton:hover {
background-color: $color-concrete;
cursor: pointer;
}
#sideBarButton.hidden2 {
visibility: hidden;
}
2018-03-20 20:53:11 +08:00
}
@media(max-height:510px) {
.menu-bar ul.nav-bottom {
2018-03-20 20:53:11 +08:00
position: relative;
width: auto;
}
}