|
|
@ -24,240 +24,402 @@ |
|
|
|
Sidebar |
|
|
|
*******************************/ |
|
|
|
|
|
|
|
body { |
|
|
|
transition: @bodyTransition; |
|
|
|
/* Sidebar Menu */ |
|
|
|
.ui.sidebar { |
|
|
|
position: absolute; |
|
|
|
top: 0; |
|
|
|
left: 0; |
|
|
|
visibility: hidden; |
|
|
|
background: @sidebarBackground; |
|
|
|
backface-visibility: hidden; |
|
|
|
height: 100% !important; |
|
|
|
width: @sidebarWidth !important; |
|
|
|
border-radius: 0em !important; |
|
|
|
margin: 0 !important; |
|
|
|
will-change: transform; |
|
|
|
} |
|
|
|
|
|
|
|
.ui.sidebar { |
|
|
|
position: fixed; |
|
|
|
/*-------------- |
|
|
|
Body |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
margin: 0 !important; |
|
|
|
/* Sets 3D Perspective */ |
|
|
|
body.pushable { |
|
|
|
position: relative; |
|
|
|
height: 100%; |
|
|
|
overflow: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
height: 100% !important; |
|
|
|
border-radius: 0px !important; |
|
|
|
/*-------------- |
|
|
|
Pusher |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
overflow-y: @overflowY; |
|
|
|
top: 0px; |
|
|
|
left: 0px; |
|
|
|
z-index: @zIndex; |
|
|
|
body.pushable > .pusher { |
|
|
|
position: relative; |
|
|
|
left: 0; |
|
|
|
height: 100%; |
|
|
|
backface-visibility: hidden; |
|
|
|
transition: transform @animationDuration; |
|
|
|
z-index: 2; |
|
|
|
will-change: transform; |
|
|
|
} |
|
|
|
|
|
|
|
/*-------------- |
|
|
|
Page |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
transition: @sidebarTransition; |
|
|
|
body.pushable > .pusher > .page { |
|
|
|
background: @bodyBackground; |
|
|
|
position: relative; |
|
|
|
overflow-y: auto; |
|
|
|
height: 100%; |
|
|
|
backface-visibility: hidden; |
|
|
|
} |
|
|
|
|
|
|
|
/*------------------- |
|
|
|
Coupling |
|
|
|
--------------------*/ |
|
|
|
/*-------------- |
|
|
|
Dimmer |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
body.pushed.scrolling.ui.dimmable { |
|
|
|
position: @dimmableSidebarPosition; |
|
|
|
body.pushable > .pusher > .page:after { |
|
|
|
position: absolute; |
|
|
|
top: 0px; |
|
|
|
right: 0px; |
|
|
|
content: ''; |
|
|
|
background-color: @dimmerColor; |
|
|
|
width: 0px; |
|
|
|
height: 0px; |
|
|
|
overflow: hidden; |
|
|
|
opacity: 0; |
|
|
|
z-index: 999; |
|
|
|
transition: opacity @animationDuration; |
|
|
|
will-change: opacity; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/******************************* |
|
|
|
Types |
|
|
|
States |
|
|
|
*******************************/ |
|
|
|
|
|
|
|
/*------------------- |
|
|
|
Direction |
|
|
|
--------------------*/ |
|
|
|
/*-------------- |
|
|
|
Animating |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
.ui.right.very.thin.sidebar, |
|
|
|
.ui.right.thin.sidebar, |
|
|
|
.ui.right.sidebar, |
|
|
|
.ui.right.wide.sidebar, |
|
|
|
.ui.right.very.wide.sidebar { |
|
|
|
left: 100%; |
|
|
|
margin: 0px !important; |
|
|
|
} |
|
|
|
|
|
|
|
.ui.top.sidebar { |
|
|
|
width: 100% !important; |
|
|
|
/*-------------- |
|
|
|
Pushed |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Show Dimmer */ |
|
|
|
body.pushable.pushed, |
|
|
|
body.pushable.hide, |
|
|
|
body.pushable.show { |
|
|
|
background: @canvasBackground !important; |
|
|
|
} |
|
|
|
|
|
|
|
.ui.bottom.sidebar { |
|
|
|
/*body.pushed > .pusher > .page:after { |
|
|
|
width: 100% !important; |
|
|
|
top: 100%; |
|
|
|
margin: 0px !important; |
|
|
|
height: 100% !important; |
|
|
|
opacity: 1 !important; |
|
|
|
}*/ |
|
|
|
body > .visible.ui.sidebar { |
|
|
|
visibility: visible; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/******************************* |
|
|
|
States |
|
|
|
Variations |
|
|
|
*******************************/ |
|
|
|
|
|
|
|
.ui.active.sidebar { |
|
|
|
margin-left: 0px !important; |
|
|
|
/*-------------- |
|
|
|
Styled |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
.ui.styled.sidebar { |
|
|
|
background-color: #FFFFFF; |
|
|
|
padding: 1em 1.25em; |
|
|
|
border-right: 1px solid #DDDDDD; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*-------------- |
|
|
|
Overlay |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.overlay > .ui.sidebar { |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
z-index: 3; |
|
|
|
} |
|
|
|
.ui.active.top.sidebar, |
|
|
|
.ui.active.bottom.sidebar { |
|
|
|
margin-top: 0px !important; |
|
|
|
|
|
|
|
/* Pushed */ |
|
|
|
body.overlay .visible.ui.sidebar { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.overlay.show > .visible.ui.sidebar, |
|
|
|
body.overlay.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
/******************************* |
|
|
|
Variations |
|
|
|
*******************************/ |
|
|
|
/*-------------- |
|
|
|
Pushed |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/*------------------- |
|
|
|
Formatted |
|
|
|
--------------------*/ |
|
|
|
/* Set-Up */ |
|
|
|
body.pushing.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
body.pushing > .ui.sidebar { |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
} |
|
|
|
body.pushing > .pusher { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
|
|
|
|
.ui.styled.sidebar { |
|
|
|
padding: @styledVerticalPadding @styledHorizontalPadding; |
|
|
|
background-color: @styledBackground; |
|
|
|
box-shadow: @styledBoxShadow; |
|
|
|
/* Pushed */ |
|
|
|
body.pushing.pushed .visible.sidebar { |
|
|
|
transform: translate3d(0%, 0, 0); |
|
|
|
} |
|
|
|
.ui.styled.thin.sidebar { |
|
|
|
padding: @styledThinPadding; |
|
|
|
body.pushing.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
.ui.styled.very.thin.sidebar { |
|
|
|
padding: @styledVeryThinPadding; |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.pushing.show > .visible.ui.sidebar, |
|
|
|
body.pushing.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*-------------- |
|
|
|
Reveal |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.reveal .visible.ui.sidebar { |
|
|
|
z-index: 1; |
|
|
|
} |
|
|
|
body.reveal > .pusher { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
z-index: 2; |
|
|
|
} |
|
|
|
|
|
|
|
/* Pushed */ |
|
|
|
body.reveal.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*------------------- |
|
|
|
Floating |
|
|
|
--------------------*/ |
|
|
|
/*-------------- |
|
|
|
Slide Along |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
.ui.floating.sidebar { |
|
|
|
box-shadow: @floatingLeftBoxShadow; |
|
|
|
/* Set-up */ |
|
|
|
body.slide.along > .ui.sidebar { |
|
|
|
z-index: 1; |
|
|
|
transform: translate3d(-50%, 0, 0); |
|
|
|
} |
|
|
|
.ui.right.floating.sidebar { |
|
|
|
box-shadow: @floatingRightBoxShadow; |
|
|
|
|
|
|
|
/* Pushed */ |
|
|
|
body.slide.along.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
.ui.top.floating.sidebar { |
|
|
|
box-shadow: @floatingTopBoxShadow; |
|
|
|
body.slide.along.pushed > .visible.ui.sidebar { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
.ui.bottom.floating.sidebar { |
|
|
|
box-shadow: @floatingBottomBoxShadow |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.slide.along.show > .visible.ui.sidebar, |
|
|
|
body.slide.along.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
/*------------------- |
|
|
|
Width |
|
|
|
--------------------*/ |
|
|
|
|
|
|
|
/* Very Thin */ |
|
|
|
.ui.very.thin.sidebar { |
|
|
|
width: @veryThinWidth !important; |
|
|
|
margin-left: -@veryThinWidth !important; |
|
|
|
|
|
|
|
/*-------------- |
|
|
|
Slide Out |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.slide.out > .ui.sidebar { |
|
|
|
z-index: 1; |
|
|
|
transform: translate3d(50%, 0, 0); |
|
|
|
} |
|
|
|
.ui.active.very.thin.sidebar { |
|
|
|
margin-left: 0px !important; |
|
|
|
|
|
|
|
/* Pushed */ |
|
|
|
body.slide.out.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
body.slide.out.pushed .visible.ui.sidebar { |
|
|
|
transform: translate3d(0%, 0, 0); |
|
|
|
} |
|
|
|
.ui.active.right.very.thin.sidebar { |
|
|
|
margin-left: -@veryThinWidth !important; |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.slide.out.show > .visible.ui.sidebar, |
|
|
|
body.slide.out.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
/* Thin */ |
|
|
|
.ui.thin.sidebar { |
|
|
|
width: @thinWidth !important; |
|
|
|
margin-left: -@thinWidth !important; |
|
|
|
/*-------------- |
|
|
|
Scale Down |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.scale.down { |
|
|
|
perspective: 1500px; |
|
|
|
} |
|
|
|
.ui.active.thin.sidebar { |
|
|
|
margin-left: 0px !important; |
|
|
|
body.scale.down > .pusher { |
|
|
|
transform-style: preserve-3d; |
|
|
|
z-index: 2; |
|
|
|
} |
|
|
|
.ui.active.right.thin.sidebar { |
|
|
|
margin-left: -@thinWidth !important; |
|
|
|
body.scale.down > .ui.sidebar { |
|
|
|
opacity: 1; |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
z-index: 3; |
|
|
|
} |
|
|
|
|
|
|
|
/* Standard */ |
|
|
|
.ui.sidebar { |
|
|
|
width: @width !important; |
|
|
|
margin-left: -@width !important; |
|
|
|
/* Pushed */ |
|
|
|
body.scale.down.pushed > .pusher { |
|
|
|
transform: translate3d(0, 0, -@sidebarWidth); |
|
|
|
} |
|
|
|
.ui.active.sidebar { |
|
|
|
margin-left: 0px !important; |
|
|
|
body.scale.down.pushed > .visible.ui.sidebar { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
.ui.active.right.sidebar { |
|
|
|
margin-left: -@width !important; |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.scale.down.show > .visible.ui.sidebar, |
|
|
|
body.scale.down.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
/* Wide */ |
|
|
|
.ui.wide.sidebar { |
|
|
|
width: @wideWidth !important; |
|
|
|
margin-left: -@wideWidth !important; |
|
|
|
|
|
|
|
/*-------------- |
|
|
|
Scale Up |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.scale.up { |
|
|
|
perspective: 1500px; |
|
|
|
perspective-origin: 0% 50%; |
|
|
|
} |
|
|
|
.ui.active.wide.sidebar { |
|
|
|
margin-left: 0px !important; |
|
|
|
body.scale.up > .ui.sidebar { |
|
|
|
z-index: 1; |
|
|
|
transform: translate3d(0, 0, -@sidebarWidth); |
|
|
|
} |
|
|
|
.ui.active.right.wide.sidebar { |
|
|
|
margin-left: -@wideWidth !important; |
|
|
|
body.scale.up > .pusher { |
|
|
|
z-index: 2; |
|
|
|
} |
|
|
|
|
|
|
|
/* Very Wide */ |
|
|
|
.ui.very.wide.sidebar { |
|
|
|
width: @veryWideWidth !important; |
|
|
|
margin-left: -@veryWideWidth !important; |
|
|
|
/* Pushed */ |
|
|
|
body.scale.up.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
.ui.active.very.wide.sidebar { |
|
|
|
margin-left: 0px !important; |
|
|
|
body.scale.up.pushed > .visible.ui.sidebar { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
.ui.active.right.very.wide.sidebar { |
|
|
|
margin-left: -@veryWideWidth !important; |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.scale.up.show > .visible.ui.sidebar, |
|
|
|
body.scale.up.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
/*------------------- |
|
|
|
Height |
|
|
|
--------------------*/ |
|
|
|
|
|
|
|
/* Very Thin */ |
|
|
|
.ui.very.thin.top.sidebar { |
|
|
|
margin: -@veryThinHeight 0px 0px 0px !important; |
|
|
|
/*-------------- |
|
|
|
Recede |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.recede { |
|
|
|
perspective: 1500px; |
|
|
|
} |
|
|
|
.ui.very.thin.top.sidebar, |
|
|
|
.ui.very.thin.bottom.sidebar { |
|
|
|
height: @veryThinHeight !important; |
|
|
|
body.recede > .ui.sidebar { |
|
|
|
opacity: 1; |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
z-index: 3; |
|
|
|
} |
|
|
|
.ui.very.thin.active.bottom.sidebar { |
|
|
|
margin-top: -@veryThinHeight !important; |
|
|
|
body.recede > .pusher { |
|
|
|
transform-style: preserve-3d; |
|
|
|
z-index: 2; |
|
|
|
} |
|
|
|
body.recede > .pusher::after { |
|
|
|
background-color: rgba(0, 0, 0, 0.5); |
|
|
|
} |
|
|
|
|
|
|
|
/* Thin */ |
|
|
|
.ui.thin.top.sidebar { |
|
|
|
margin: -@thinHeight 0px 0px 0px !important; |
|
|
|
/* Pushed */ |
|
|
|
body.recede.pushed > .pusher { |
|
|
|
transform: translate3d(0px, 0, -200px) rotateY(-25deg); |
|
|
|
} |
|
|
|
.ui.thin.top.sidebar, |
|
|
|
.ui.thin.bottom.sidebar { |
|
|
|
height: @thinHeight !important; |
|
|
|
body.recede.pushed > .visible.ui.sidebar { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
.ui.thin.active.bottom.sidebar { |
|
|
|
margin-top: -@thinHeight !important; |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.recede.show > .visible.ui.sidebar, |
|
|
|
body.recede.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease; |
|
|
|
} |
|
|
|
|
|
|
|
/* Standard */ |
|
|
|
.ui.top.sidebar { |
|
|
|
margin: -@height 0px 0px 0px !important; |
|
|
|
/*-------------- |
|
|
|
Open Door |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.open.door { |
|
|
|
perspective: 1500px; |
|
|
|
} |
|
|
|
.ui.top.sidebar, |
|
|
|
.ui.bottom.sidebar { |
|
|
|
height: @height !important; |
|
|
|
body.open.door > .ui.sidebar { |
|
|
|
opacity: 1; |
|
|
|
transform: translate3d(-100%, 0, 0); |
|
|
|
} |
|
|
|
.ui.active.bottom.sidebar { |
|
|
|
margin-top: -@height !important; |
|
|
|
body.open.door > .pusher { |
|
|
|
transform-origin: 100% 50%; |
|
|
|
transform-style: preserve-3d; |
|
|
|
} |
|
|
|
|
|
|
|
/* Tall */ |
|
|
|
.ui.tall.top.sidebar { |
|
|
|
margin: -@tallHeight 0px 0px 0px !important; |
|
|
|
|
|
|
|
/* Pushed */ |
|
|
|
body.open.door.pushed > .pusher { |
|
|
|
transform: rotateY(-10deg); |
|
|
|
} |
|
|
|
.ui.tall.top.sidebar, |
|
|
|
.ui.tall.bottom.sidebar { |
|
|
|
height: @tallHeight !important; |
|
|
|
body.open.door.pushed > .visible.ui.sidebar { |
|
|
|
transform: translate3d(0, 0, 0); |
|
|
|
} |
|
|
|
.ui.tall.active.bottom.sidebar { |
|
|
|
margin-top: -@tallHeight !important; |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.open.door.show > .visible.ui.sidebar, |
|
|
|
body.open.door.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration; |
|
|
|
} |
|
|
|
|
|
|
|
/* Very Tall */ |
|
|
|
.ui.very.tall.top.sidebar { |
|
|
|
margin: -@veryTallHeight 0px 0px 0px !important; |
|
|
|
/*-------------- |
|
|
|
Rotate In |
|
|
|
---------------*/ |
|
|
|
|
|
|
|
/* Set-up */ |
|
|
|
body.rotate.in { |
|
|
|
perspective: 1500px; |
|
|
|
perspective-origin: 0% 50%; |
|
|
|
} |
|
|
|
.ui.very.tall.top.sidebar, |
|
|
|
.ui.very.tall.bottom.sidebar { |
|
|
|
height: @veryTallHeight !important; |
|
|
|
body.rotate.in > .pusher { |
|
|
|
transform-style: preserve-3d; |
|
|
|
} |
|
|
|
.ui.very.tall.active.bottom.sidebar { |
|
|
|
margin-top: -@veryTallHeight !important; |
|
|
|
body.rotate.in > .ui.sidebar { |
|
|
|
transform: translate3d(-100%, 0, 0) rotateY(90deg); |
|
|
|
transform-origin: 50% 100% 0; |
|
|
|
transform-style: preserve-3d; |
|
|
|
} |
|
|
|
|
|
|
|
.loadUIOverrides(); |
|
|
|
/* Pushed */ |
|
|
|
body.rotate.in.pushed > .pusher { |
|
|
|
transform: translate3d(@sidebarWidth, 0, 0); |
|
|
|
} |
|
|
|
body.rotate.in.pushed .visible.ui.sidebar { |
|
|
|
transform: translate3d(0%, 0, 0) rotateY(0deg); |
|
|
|
} |
|
|
|
|
|
|
|
/* Animation */ |
|
|
|
body.rotate.in.show > .visible.ui.sidebar, |
|
|
|
body.rotate.in.hide > .visible.ui.sidebar { |
|
|
|
transition: transform @animationDuration ease-in-out 0s; |
|
|
|
} |