1 /* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
2 $fixed-header-y: $navbar-height;
4 $drawer-width: 285px !default;
5 $drawer-padding-x: 20px !default;
6 $drawer-padding-y: 20px !default;
7 $drawer-offscreen-gutter: 20px !default;
12 height: ($fixed-header-y + 10px); /* fixed header height*/
13 margin-top: -($fixed-header-y + 10px); /* negative fixed header height */
18 .pagelayout-embedded :target {
24 left: -($drawer-width + $drawer-offscreen-gutter);
27 #nav-drawer[aria-hidden=true] .list-group-item {
31 /* Use a variable for the drawer background colors. */
32 $drawer-bg: darken($body-bg, 5%) !default;
34 [data-region="drawer"] {
38 height: calc(100% - #{$navbar-height});
40 -webkit-overflow-scrolling: touch;
41 z-index: $zindex-dropdown - 1;
42 background-color: $drawer-bg;
43 -webkit-transition: right 0.5s ease, left 0.5s ease;
44 -moz-transition: right 0.5s ease, left 0.5s ease;
45 transition: right 0.5s ease, left 0.5s ease;
48 @include media-breakpoint-up(sm) {
49 [data-region="drawer"] {
50 padding: $drawer-padding-x $drawer-padding-y;
57 /* Override the z-indexes defined in bootstrap/_list-group.scss that
58 lead to side effects on the user tours positioning. */
59 .list-group-item-action.active,
60 .list-group-item.active {
63 .list-group-item-action.active + .list-group-item,
64 .list-group-item.active + .list-group-item {
69 // Remove default list styling in nav menus.
75 // Add margin to be consistent with `.list-group-item` spacing.
85 margin-top: $fixed-header-y;
87 .pagelayout-embedded #page {
91 -webkit-transition: margin-left 0.5s ease, margin-right 0.5s ease;
92 -moz-transition: margin-left 0.5s ease, margin-right 0.5s ease;
93 transition: margin-left 0.5s ease, margin-right 0.5s ease;
96 body.drawer-open-left {
97 @include media-breakpoint-up(md) {
98 margin-left: $drawer-width;
101 body.drawer-open-right {
102 @include media-breakpoint-up(md) {
103 margin-right: $drawer-width;
107 $right-drawer-width: 320px;
109 [data-region=right-hand-drawer] {
111 flex-direction: column;
112 @include transition(right .2s ease-in-out);
115 z-index: $zindex-sticky;
119 height: calc(100% - #{$navbar-height});
120 width: $right-drawer-width;
121 box-shadow: -2px 2px 4px rgba(0, 0, 0, .08);
129 right: $right-drawer-width * -1;
130 // Turn off visibility so that nothing in the drawer can receive focus when
134 // Delay visibility changes until after the slide right animation has completed.
135 @include transition(right .2s ease-in-out, visibility 0s ease-in-out .2s, opacity 0s ease-in-out .2s);
139 @include media-breakpoint-down(sm) {
140 [data-region=right-hand-drawer] {
144 z-index: $zindex-fixed;
147 body.drawer-open-left,
148 body.drawer-open-right {
154 [data-region=right-hand-drawer] {
155 box-shadow: 2px 2px 4px rgba(0, 0, 0, .08);