wishthis/semantic/dist/components/sidebar.css

540 lines
11 KiB
CSS
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*!
2023-12-19 14:45:49 +00:00
* # Fomantic-UI 2.9.3 - Sidebar
2023-08-17 09:47:40 +00:00
* https://github.com/fomantic/Fomantic-UI/
2022-01-13 13:00:31 +00:00
*
*
* Released under the MIT license
2023-08-17 09:47:40 +00:00
* https://opensource.org/licenses/MIT
2022-01-13 13:00:31 +00:00
*
*/
/*******************************
Sidebar
*******************************/
/* Sidebar Menu */
.ui.sidebar {
position: fixed;
top: 0;
left: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transition: none;
will-change: transform;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
visibility: hidden;
height: 100% !important;
max-height: 100%;
border-radius: 0 !important;
margin: 0 !important;
overflow-y: auto !important;
2023-08-17 09:47:40 +00:00
-ms-scroll-chaining: none;
overscroll-behavior: none;
2022-01-13 13:00:31 +00:00
z-index: 102;
}
/* GPU Layers for Child Elements */
.ui.sidebar > * {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Direction
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.left.sidebar {
right: auto;
left: 0;
2023-08-17 09:47:40 +00:00
transform: translate3d(-100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.right.sidebar {
right: 0 !important;
left: auto !important;
2023-08-17 09:47:40 +00:00
transform: translate3d(100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.top.sidebar,
.ui.bottom.sidebar {
width: 100% !important;
height: auto !important;
}
.ui.top.sidebar {
top: 0 !important;
bottom: auto !important;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -100%, 0);
2022-01-13 13:00:31 +00:00
}
.ui.bottom.sidebar {
top: auto !important;
bottom: 0 !important;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 100%, 0);
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Pushable
2023-08-17 09:47:40 +00:00
--------------- */
2022-08-31 14:40:59 +00:00
.pushable.pushable.pushable {
2022-01-13 13:00:31 +00:00
height: 100%;
overflow-x: hidden;
2022-08-31 14:40:59 +00:00
padding: 0;
}
.pushable.pushable.pushable.locked {
overflow-y: hidden;
background: inherit;
2022-01-13 13:00:31 +00:00
}
/* Whole Page */
body.pushable {
background: #545454;
}
body.pushable.dimmed {
background: inherit;
}
/* Page Context */
.pushable:not(body) {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
overflow-y: hidden;
}
.pushable:not(body) > .ui.sidebar,
.pushable:not(body) > .fixed,
2022-08-05 09:25:53 +00:00
.pushable:not(body) > .pusher::after {
2022-01-13 13:00:31 +00:00
position: absolute;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Fixed
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.pushable > .fixed {
position: fixed;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
transition: transform 500ms ease;
will-change: transform;
z-index: 101;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Page
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.pushable > .pusher {
position: relative;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
min-height: 100%;
transition: transform 500ms ease;
z-index: 2;
/* Pusher should inherit background from context */
background: inherit;
}
2022-08-05 09:25:53 +00:00
.pushable > .pusher:not(.overflowing) {
overflow: hidden;
}
2022-01-13 13:00:31 +00:00
body.pushable > .pusher {
2023-08-17 09:47:40 +00:00
background: #fff;
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Dimmer
2023-08-17 09:47:40 +00:00
--------------- */
2022-08-05 09:25:53 +00:00
.pushable > .pusher::after {
2022-01-13 13:00:31 +00:00
position: fixed;
top: 0;
right: 0;
2023-08-17 09:47:40 +00:00
content: "";
2022-01-13 13:00:31 +00:00
background: rgba(0, 0, 0, 0.4);
overflow: hidden;
opacity: 0;
2022-09-30 13:48:25 +00:00
transition: all 500ms;
2022-01-13 13:00:31 +00:00
will-change: opacity;
z-index: 1000;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Coupling
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.sidebar.menu .item {
border-radius: 0 !important;
}
/*******************************
States
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Dimmed
2023-08-17 09:47:40 +00:00
--------------- */
2022-08-05 09:25:53 +00:00
.pushable > .pusher.dimmed::after {
2022-01-13 13:00:31 +00:00
width: 100% !important;
height: 100% !important;
opacity: 1 !important;
}
2022-09-30 13:48:25 +00:00
.pushable > .pusher.dimmed.blurring:not(.closing)::after {
background: rgba(0, 0, 0, 0.6);
-webkit-backdrop-filter: blur(5px) grayscale(0.7);
backdrop-filter: blur(5px) grayscale(0.7);
}
.pushable > .pusher.closing.dimmed::after {
opacity: 0 !important;
}
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Animating
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.animating.sidebar {
visibility: visible;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Visible
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.visible.sidebar {
visibility: visible;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
/* Shadow Direction */
.ui.left.visible.sidebar,
.ui.right.visible.sidebar {
2023-08-17 09:47:40 +00:00
box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
2022-01-13 13:00:31 +00:00
}
.ui.top.visible.sidebar,
.ui.bottom.visible.sidebar {
2023-08-17 09:47:40 +00:00
box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
2022-01-13 13:00:31 +00:00
}
/* Visible On Load */
.ui.visible.left.sidebar ~ .fixed,
.ui.visible.left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(260px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.right.sidebar ~ .fixed,
.ui.visible.right.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-260px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.top.sidebar ~ .fixed,
.ui.visible.top.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 36px, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.bottom.sidebar ~ .fixed,
.ui.visible.bottom.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -36px, 0);
2022-01-13 13:00:31 +00:00
}
/* opposite sides visible forces content overlay */
.ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .fixed,
.ui.visible.left.sidebar ~ .ui.visible.right.sidebar ~ .pusher,
.ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .fixed,
.ui.visible.right.sidebar ~ .ui.visible.left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
iOS
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
/*******************************
Variations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Width
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
/* Left / Right */
.ui.thin.left.sidebar,
.ui.thin.right.sidebar {
width: 150px;
}
.ui[class*="very thin"].left.sidebar,
.ui[class*="very thin"].right.sidebar {
width: 60px;
}
.ui.left.sidebar,
.ui.right.sidebar {
width: 260px;
}
.ui.wide.left.sidebar,
.ui.wide.right.sidebar {
width: 350px;
}
.ui[class*="very wide"].left.sidebar,
.ui[class*="very wide"].right.sidebar {
width: 475px;
}
/* Left Visible */
.ui.visible.thin.left.sidebar ~ .fixed,
.ui.visible.thin.left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(150px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible[class*="very thin"].left.sidebar ~ .fixed,
.ui.visible[class*="very thin"].left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(60px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.wide.left.sidebar ~ .fixed,
.ui.visible.wide.left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(350px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible[class*="very wide"].left.sidebar ~ .fixed,
.ui.visible[class*="very wide"].left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(475px, 0, 0);
2022-01-13 13:00:31 +00:00
}
/* Right Visible */
.ui.visible.thin.right.sidebar ~ .fixed,
.ui.visible.thin.right.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-150px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible[class*="very thin"].right.sidebar ~ .fixed,
.ui.visible[class*="very thin"].right.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-60px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.wide.right.sidebar ~ .fixed,
.ui.visible.wide.right.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-350px, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible[class*="very wide"].right.sidebar ~ .fixed,
.ui.visible[class*="very wide"].right.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-475px, 0, 0);
2022-01-13 13:00:31 +00:00
}
/*******************************
Animations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
Overlay
--------------- */
2022-01-13 13:00:31 +00:00
/* Set-up */
.ui.overlay.sidebar {
z-index: 102;
}
/* Initial */
.ui.left.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(-100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.right.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.top.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -100%, 0);
2022-01-13 13:00:31 +00:00
}
.ui.bottom.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 100%, 0);
2022-01-13 13:00:31 +00:00
}
/* Animation */
.animating.ui.overlay.sidebar,
.ui.visible.overlay.sidebar {
transition: transform 500ms ease;
}
/* End - Sidebar */
.ui.visible.left.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.right.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.top.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.bottom.overlay.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
/* End - Pusher */
.ui.visible.overlay.sidebar ~ .fixed,
.ui.visible.overlay.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: none !important;
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Push
--------------- */
2022-01-13 13:00:31 +00:00
/* Initial */
.ui.push.sidebar {
transition: transform 500ms ease;
z-index: 102;
}
/* Sidebar - Initial */
.ui.left.push.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(-100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.right.push.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.top.push.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -100%, 0);
2022-01-13 13:00:31 +00:00
}
.ui.bottom.push.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 100%, 0);
2022-01-13 13:00:31 +00:00
}
/* End */
.ui.visible.push.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Uncover
--------------- */
2022-01-13 13:00:31 +00:00
/* Initial */
.ui.uncover.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
z-index: 1;
}
/* End */
.ui.visible.uncover.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
transition: transform 500ms ease;
}
2023-08-17 09:47:40 +00:00
/* --------------
Slide Along
--------------- */
2022-01-13 13:00:31 +00:00
/* Initial */
.ui.slide.along.sidebar {
z-index: 1;
}
/* Sidebar - Initial */
.ui.left.slide.along.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(-50%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.right.slide.along.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(50%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.top.slide.along.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -50%, 0);
2022-01-13 13:00:31 +00:00
}
.ui.bottom.slide.along.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 50%, 0);
2022-01-13 13:00:31 +00:00
}
/* Animation */
.ui.animating.slide.along.sidebar {
transition: transform 500ms ease;
}
/* End */
.ui.visible.slide.along.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Slide Out
--------------- */
2022-01-13 13:00:31 +00:00
/* Initial */
.ui.slide.out.sidebar {
z-index: 1;
}
/* Sidebar - Initial */
.ui.left.slide.out.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(50%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.right.slide.out.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(-50%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.top.slide.out.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 50%, 0);
2022-01-13 13:00:31 +00:00
}
.ui.bottom.slide.out.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -50%, 0);
2022-01-13 13:00:31 +00:00
}
/* Animation */
.ui.animating.slide.out.sidebar {
transition: transform 500ms ease;
}
/* End */
.ui.visible.slide.out.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Scale Down
--------------- */
2022-01-13 13:00:31 +00:00
/* Initial */
.ui.scale.down.sidebar {
transition: transform 500ms ease;
z-index: 102;
}
.ui.left.scale.down.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(-100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.right.scale.down.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(100%, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.top.scale.down.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -100%, 0);
2022-01-13 13:00:31 +00:00
}
.ui.bottom.scale.down.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 100%, 0);
2022-01-13 13:00:31 +00:00
}
/* Pusher - Initial */
.ui.scale.down.left.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform-origin: 75% 50%;
2022-01-13 13:00:31 +00:00
}
.ui.scale.down.right.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform-origin: 25% 50%;
2022-01-13 13:00:31 +00:00
}
.ui.scale.down.top.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform-origin: 50% 75%;
2022-01-13 13:00:31 +00:00
}
.ui.scale.down.bottom.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform-origin: 50% 25%;
2022-01-13 13:00:31 +00:00
}
/* Animation */
.ui.animating.scale.down > .visible.ui.sidebar {
transition: transform 500ms ease;
}
.ui.visible.scale.down.sidebar ~ .pusher,
.ui.animating.scale.down.sidebar ~ .pusher {
display: block !important;
width: 100%;
height: 100%;
overflow: hidden !important;
}
/* End */
.ui.visible.scale.down.sidebar {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-01-13 13:00:31 +00:00
}
.ui.visible.scale.down.sidebar ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: scale(0.75);
2022-01-13 13:00:31 +00:00
}
/*******************************
Theme Overrides
*******************************/
/*******************************
Site Overrides
*******************************/