mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-11 02:51:37 +00:00
132 lines
2.8 KiB
SCSS
132 lines
2.8 KiB
SCSS
/* Variables */
|
|
$fuse-drawer-width: 320;
|
|
|
|
fuse-drawer {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1 1 auto;
|
|
width: #{$fuse-drawer-width}px;
|
|
min-width: #{$fuse-drawer-width}px;
|
|
max-width: #{$fuse-drawer-width}px;
|
|
z-index: 300;
|
|
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .35);
|
|
@apply bg-card;
|
|
|
|
/* Animations */
|
|
&.fuse-drawer-animations-enabled {
|
|
transition-duration: 400ms;
|
|
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
transition-property: visibility, margin-left, margin-right, transform, width, max-width, min-width;
|
|
|
|
.fuse-drawer-content {
|
|
transition-duration: 400ms;
|
|
transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
transition-property: width, max-width, min-width;
|
|
}
|
|
}
|
|
|
|
/* Over mode */
|
|
&.fuse-drawer-mode-over {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
|
|
/* Fixed mode */
|
|
&.fuse-drawer-fixed {
|
|
position: fixed;
|
|
}
|
|
}
|
|
|
|
/* Left position */
|
|
&.fuse-drawer-position-left {
|
|
|
|
/* Side mode */
|
|
&.fuse-drawer-mode-side {
|
|
margin-left: -#{$fuse-drawer-width}px;
|
|
|
|
&.fuse-drawer-opened {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
/* Over mode */
|
|
&.fuse-drawer-mode-over {
|
|
left: 0;
|
|
transform: translate3d(-100%, 0, 0);
|
|
|
|
&.fuse-drawer-opened {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
}
|
|
|
|
/* Content */
|
|
.fuse-drawer-content {
|
|
left: 0;
|
|
}
|
|
}
|
|
|
|
/* Right position */
|
|
&.fuse-drawer-position-right {
|
|
|
|
/* Side mode */
|
|
&.fuse-drawer-mode-side {
|
|
margin-right: -#{$fuse-drawer-width}px;
|
|
|
|
&.fuse-drawer-opened {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
/* Over mode */
|
|
&.fuse-drawer-mode-over {
|
|
right: 0;
|
|
transform: translate3d(100%, 0, 0);
|
|
|
|
&.fuse-drawer-opened {
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
}
|
|
|
|
/* Content */
|
|
.fuse-drawer-content {
|
|
right: 0;
|
|
}
|
|
}
|
|
|
|
/* Content */
|
|
.fuse-drawer-content {
|
|
position: absolute;
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
@apply bg-card;
|
|
}
|
|
}
|
|
|
|
/* Overlay */
|
|
.fuse-drawer-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 299;
|
|
opacity: 1;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
|
|
/* Fixed mode */
|
|
&.fuse-drawer-overlay-fixed {
|
|
position: fixed;
|
|
}
|
|
|
|
/* Transparent overlay */
|
|
&.fuse-drawer-overlay-transparent {
|
|
background-color: transparent;
|
|
}
|
|
}
|