diff options
Diffstat (limited to 'vendor/twbs/bootstrap/scss/_offcanvas.scss')
-rw-r--r-- | vendor/twbs/bootstrap/scss/_offcanvas.scss | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/twbs/bootstrap/scss/_offcanvas.scss b/vendor/twbs/bootstrap/scss/_offcanvas.scss index 5709479dc..23fc357f2 100644 --- a/vendor/twbs/bootstrap/scss/_offcanvas.scss +++ b/vendor/twbs/bootstrap/scss/_offcanvas.scss @@ -2,6 +2,7 @@ %offcanvas-css-vars { // scss-docs-start offcanvas-css-vars + --#{$prefix}offcanvas-zindex: #{$zindex-offcanvas}; --#{$prefix}offcanvas-width: #{$offcanvas-horizontal-width}; --#{$prefix}offcanvas-height: #{$offcanvas-vertical-height}; --#{$prefix}offcanvas-padding-x: #{$offcanvas-padding-x}; @@ -31,7 +32,7 @@ @include media-breakpoint-down($next) { position: fixed; bottom: 0; - z-index: $zindex-offcanvas; + z-index: var(--#{$prefix}offcanvas-zindex); display: flex; flex-direction: column; max-width: 100%; @@ -125,9 +126,9 @@ .btn-close { padding: calc(var(--#{$prefix}offcanvas-padding-y) * .5) calc(var(--#{$prefix}offcanvas-padding-x) * .5); - margin-top: calc(var(--#{$prefix}offcanvas-padding-y) * -.5); - margin-right: calc(var(--#{$prefix}offcanvas-padding-x) * -.5); - margin-bottom: calc(var(--#{$prefix}offcanvas-padding-y) * -.5); + margin-top: calc(-.5 * var(--#{$prefix}offcanvas-padding-y)); + margin-right: calc(-.5 * var(--#{$prefix}offcanvas-padding-x)); + margin-bottom: calc(-.5 * var(--#{$prefix}offcanvas-padding-y)); } } |