shlink-web-client/src/common/AsideMenu.scss

79 lines
1.4 KiB
SCSS
Raw Normal View History

@import '../utils/base';
2018-08-14 21:28:46 +03:00
@import '../utils/mixins/box-shadow';
2018-08-16 20:19:57 +03:00
@import '../utils/mixins/vertical-align';
2018-08-14 21:28:46 +03:00
$asideMenuMobileWidth: 280px;
2018-06-15 22:49:25 +03:00
.aside-menu {
background-color: #f7f7f7;
2018-08-14 21:28:46 +03:00
position: fixed !important;
padding-top: 13px;
2018-08-05 09:28:16 +03:00
padding-bottom: 10px;
2018-08-18 11:47:45 +03:00
top: $headerHeight;
2018-08-14 21:28:46 +03:00
bottom: 0;
left: 0;
display: block;
z-index: 1010;
2018-08-14 21:28:46 +03:00
overflow-x: hidden;
overflow-y: auto;
2018-08-05 09:28:16 +03:00
@media (min-width: $mdMin) {
padding: 30px 15px 15px;
border-right: 1px solid #eee;
}
2018-08-14 21:28:46 +03:00
@media (max-width: $smMax) {
width: $asideMenuMobileWidth !important;
@include box-shadow(-10px 0px 50px 11px rgba(0, 0, 0, 0.55));
transition: left 300ms;
2018-08-18 11:47:45 +03:00
top: $headerHeight - 3px;
2018-08-14 21:28:46 +03:00
}
}
.aside-menu--hidden {
@media (max-width: $smMax) {
left: -($asideMenuMobileWidth + 35px);
}
2018-06-15 22:49:25 +03:00
}
2018-07-18 21:01:56 +03:00
.aside-menu__nav {
height: 100%;
2018-07-18 21:01:56 +03:00
}
.aside-menu__item {
padding: 10px 20px;
margin: 0 -15px;
text-decoration: none !important;
cursor: pointer;
}
.aside-menu__item:hover {
background-color: $lightHoverColor;
}
.aside-menu__item--selected {
color: #fff;
background-color: $mainColor;
}
.aside-menu__item--selected:hover {
color: #fff;
background-color: $mainColor;
}
.aside-menu__item--divider {
border-bottom: 1px solid #eee;
margin: 20px 0;
}
.aside-menu__item--danger {
color: $dangerColor;
2018-07-20 23:20:58 +03:00
margin-top: auto;
2018-07-18 21:01:56 +03:00
}
.aside-menu__item--danger:hover {
color: #fff;
background-color: $dangerColor;
}
2018-07-18 21:32:19 +03:00
.aside-menu__item-text {
margin-left: 8px;
}