2021-03-02 12:10:10 -05:00
|
|
|
.offcanvas {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: $zindex-offcanvas;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 100%;
|
|
|
|
color: $offcanvas-color;
|
|
|
|
visibility: hidden;
|
|
|
|
background-color: $offcanvas-bg-color;
|
|
|
|
background-clip: padding-box;
|
|
|
|
outline: 0;
|
|
|
|
@include box-shadow($offcanvas-box-shadow);
|
|
|
|
@include transition(transform $offcanvas-transition-duration ease-in-out);
|
2022-01-05 12:20:15 -05:00
|
|
|
|
|
|
|
&.showing,
|
|
|
|
&.show:not(.hiding) {
|
|
|
|
transform: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.showing,
|
|
|
|
&.hiding,
|
|
|
|
&.show {
|
|
|
|
visibility: visible;
|
|
|
|
}
|
2021-03-02 12:10:10 -05:00
|
|
|
}
|
|
|
|
|
2021-06-25 16:41:15 -04:00
|
|
|
.offcanvas-backdrop {
|
|
|
|
@include overlay-backdrop($zindex-offcanvas-backdrop, $offcanvas-backdrop-bg, $offcanvas-backdrop-opacity);
|
|
|
|
}
|
|
|
|
|
2021-03-02 12:10:10 -05:00
|
|
|
.offcanvas-header {
|
|
|
|
display: flex;
|
2021-04-04 13:51:45 -04:00
|
|
|
align-items: center;
|
2021-03-02 12:10:10 -05:00
|
|
|
justify-content: space-between;
|
|
|
|
padding: $offcanvas-padding-y $offcanvas-padding-x;
|
|
|
|
|
|
|
|
.btn-close {
|
2021-06-14 12:35:30 -04:00
|
|
|
padding: ($offcanvas-padding-y * .5) ($offcanvas-padding-x * .5);
|
2021-06-14 17:40:46 -04:00
|
|
|
margin-top: $offcanvas-padding-y * -.5;
|
|
|
|
margin-right: $offcanvas-padding-x * -.5;
|
|
|
|
margin-bottom: $offcanvas-padding-y * -.5;
|
2021-03-02 12:10:10 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.offcanvas-title {
|
|
|
|
margin-bottom: 0;
|
|
|
|
line-height: $offcanvas-title-line-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.offcanvas-body {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: $offcanvas-padding-y $offcanvas-padding-x;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.offcanvas-start {
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: $offcanvas-horizontal-width;
|
|
|
|
border-right: $offcanvas-border-width solid $offcanvas-border-color;
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.offcanvas-end {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
width: $offcanvas-horizontal-width;
|
|
|
|
border-left: $offcanvas-border-width solid $offcanvas-border-color;
|
|
|
|
transform: translateX(100%);
|
|
|
|
}
|
|
|
|
|
2021-04-04 14:11:33 -04:00
|
|
|
.offcanvas-top {
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
height: $offcanvas-vertical-height;
|
|
|
|
max-height: 100%;
|
|
|
|
border-bottom: $offcanvas-border-width solid $offcanvas-border-color;
|
|
|
|
transform: translateY(-100%);
|
|
|
|
}
|
|
|
|
|
2021-03-02 12:10:10 -05:00
|
|
|
.offcanvas-bottom {
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
height: $offcanvas-vertical-height;
|
|
|
|
max-height: 100%;
|
|
|
|
border-top: $offcanvas-border-width solid $offcanvas-border-color;
|
|
|
|
transform: translateY(100%);
|
|
|
|
}
|