123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- .sidenav {
- position: fixed;
- width: $sidenav-width;
- left: 0;
- top: 0;
- margin: 0;
- transform: translateX(-100%);
- height: 100%;
- height: calc(100% + 60px);
- height: -moz-calc(100%); //Temporary Firefox Fix
- padding-bottom: 60px;
- background-color: $sidenav-bg-color;
- z-index: 999;
- overflow-y: auto;
- will-change: transform;
- backface-visibility: hidden;
- transform: translateX(-105%);
- @extend .z-depth-1;
- // Right Align
- &.right-aligned {
- right: 0;
- transform: translateX(105%);
- left: auto;
- transform: translateX(100%);
- }
- .collapsible {
- margin: 0;
- }
- li {
- float: none;
- line-height: $sidenav-line-height;
- &.active { background-color: rgba(0,0,0,.05); }
- }
- li > a {
- color: $sidenav-font-color;
- display: block;
- font-size: $sidenav-font-size;
- font-weight: 500;
- height: $sidenav-item-height;
- line-height: $sidenav-line-height;
- padding: 0 ($sidenav-padding * 2);
- &:hover { background-color: rgba(0,0,0,.05);}
- &.btn, &.btn-large, &.btn-flat, &.btn-floating {
- margin: 10px 15px;
- }
- &.btn,
- &.btn-large,
- &.btn-floating { color: $button-raised-color; }
- &.btn-flat { color: $button-flat-color; }
- &.btn:hover,
- &.btn-large:hover { background-color: lighten($button-raised-background, 5%); }
- &.btn-floating:hover { background-color: $button-raised-background; }
- & > i,
- & > [class^="mdi-"], li > a > [class*="mdi-"],
- & > i.material-icons {
- float: left;
- height: $sidenav-item-height;
- line-height: $sidenav-line-height;
- margin: 0 ($sidenav-padding * 2) 0 0;
- width: $sidenav-item-height / 2;
- color: rgba(0,0,0,.54);
- }
- }
- .divider {
- margin: ($sidenav-padding / 2) 0 0 0;
- }
- .subheader {
- &:hover {
- background-color: transparent;
- }
- cursor: initial;
- pointer-events: none;
- color: rgba(0,0,0,.54);
- font-size: $sidenav-font-size;
- font-weight: 500;
- line-height: $sidenav-line-height;
- }
- .user-view {
- position: relative;
- padding: ($sidenav-padding * 2) ($sidenav-padding * 2) 0;
- margin-bottom: $sidenav-padding / 2;
- & > a {
- &:hover { background-color: transparent; }
- height: auto;
- padding: 0;
- }
- .background {
- overflow: hidden;
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: -1;
- }
- .circle, .name, .email {
- display: block;
- }
- .circle {
- height: 64px;
- width: 64px;
- }
- .name,
- .email {
- font-size: $sidenav-font-size;
- line-height: $sidenav-line-height / 2;
- }
- .name {
- margin-top: 16px;
- font-weight: 500;
- }
- .email {
- padding-bottom: 16px;
- font-weight: 400;
- }
- }
- }
- // Touch interaction
- .drag-target {
- // Right Align
- &.right-aligned {
- right: 0;
- }
- height: 100%;
- width: 10px;
- position: fixed;
- top: 0;
- z-index: 998;
- }
- // Fixed Sidenav shown
- .sidenav.sidenav-fixed {
- // Right Align
- &.right-aligned {
- right: 0;
- left: auto;
- }
- left: 0;
- transform: translateX(0);
- position: fixed;
- }
- // Fixed Sidenav hide on smaller
- @media #{$medium-and-down} {
- .sidenav {
- &.sidenav-fixed {
- transform: translateX(-105%);
- &.right-aligned {
- transform: translateX(105%);
- }
- }
- > a {
- padding: 0 $sidenav-padding;
- }
- .user-view {
- padding: $sidenav-padding $sidenav-padding 0;
- }
- }
- }
- .sidenav .collapsible-body > ul:not(.collapsible) > li.active,
- .sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {
- background-color: $primary-color;
- a {
- color: $sidenav-bg-color;
- }
- }
- .sidenav .collapsible-body {
- padding: 0;
- }
- .sidenav-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- opacity: 0;
- height: 120vh;
- background-color: rgba(0,0,0,.5);
- z-index: 997;
- display: none;
- }
|