芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/theme/boost/scss/moodle/drawer.scss
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */ $fixed-header-y: $navbar-height; $drawer-width: 285px !default; $drawer-padding-x: 20px !default; $drawer-padding-y: 20px !default; $drawer-offscreen-gutter: 20px !default; :target::before { content: " "; display: block; height: ($fixed-header-y + 10px); /* fixed header height*/ margin-top: -($fixed-header-y + 10px); /* negative fixed header height */ width: 1px; pointer-events: none; } .pagelayout-embedded :target { padding-top: initial; margin-top: initial; } #nav-drawer.closed { left: -($drawer-width + $drawer-offscreen-gutter); } #nav-drawer[aria-hidden=true] .list-group-item { display: none; } /* Use a variable for the drawer background colors. */ $drawer-bg: darken($body-bg, 5%) !default; [data-region="drawer"] { position: fixed; padding: $drawer-padding-x $drawer-padding-y; width: $drawer-width; top: $fixed-header-y; height: calc(100% - #{$navbar-height}); overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: $zindex-dropdown - 1; background-color: $drawer-bg; -webkit-transition: right 0.5s ease, left 0.5s ease; -moz-transition: right 0.5s ease, left 0.5s ease; transition: right 0.5s ease, left 0.5s ease; } #nav-drawer { right: auto; left: 0; /* Override the z-indexes defined in bootstrap/_list-group.scss that lead to side effects on the user tours positioning. */ .list-group-item-action.active, .list-group-item.active { z-index: inherit; } .list-group-item-action.active + .list-group-item, .list-group-item.active + .list-group-item { border-top: none; } } #page { margin-top: $fixed-header-y; } .pagelayout-embedded #page { margin-top: 0; } body.drawer-ease { -webkit-transition: margin-left 0.5s ease, margin-right 0.5s ease; -moz-transition: margin-left 0.5s ease, margin-right 0.5s ease; transition: margin-left 0.5s ease, margin-right 0.5s ease; } body.drawer-open-left { @include media-breakpoint-up(md) { margin-left: $drawer-width; } } body.drawer-open-right { @include media-breakpoint-up(md) { margin-right: $drawer-width; } }