wishthis/node_modules/fomantic-ui/dist/components/flyout.css

553 lines
11 KiB
CSS
Raw Normal View History

2022-09-30 13:48:25 +00:00
/*!
2023-08-17 09:47:40 +00:00
* # Fomantic-UI 2.9.2 - Flyout
* https://github.com/fomantic/Fomantic-UI/
2022-09-30 13:48:25 +00:00
*
*
* Released under the MIT license
2023-08-17 09:47:40 +00:00
* https://opensource.org/licenses/MIT
2022-09-30 13:48:25 +00:00
*
*/
/*******************************
Flyout
*******************************/
/* Flyout Menu */
.ui.flyout {
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-09-30 13:48:25 +00:00
visibility: hidden;
height: 100%;
max-height: 100%;
max-width: 100%;
border-radius: 0;
margin: 0;
overflow-y: hidden;
z-index: 102;
2023-08-17 09:47:40 +00:00
background: #fff;
outline: none;
2022-09-30 13:48:25 +00:00
}
/* GPU Layers for Child Elements */
.ui.flyout > * {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Close
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.flyout > .close {
cursor: pointer;
position: absolute;
top: 1.25rem;
right: 1.5rem;
z-index: 1;
opacity: 0.8;
font-size: 1.25em;
color: rgba(0, 0, 0, 0.85);
width: 2.25rem;
height: 2.25rem;
padding: 0;
margin: 0 0 0 0.25rem;
text-align: right;
}
.ui.flyout > .close:focus,
.ui.flyout > .close:hover {
opacity: 1;
outline: none;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Header
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.flyout > .header {
display: block;
2023-08-17 09:47:40 +00:00
background: #fff;
2022-09-30 13:48:25 +00:00
margin: 0;
padding: 1.25rem 1.5rem;
2023-08-17 09:47:40 +00:00
box-shadow: none;
2022-09-30 13:48:25 +00:00
color: rgba(0, 0, 0, 0.85);
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Content
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.flyout > .content {
display: block;
width: 100%;
font-size: 1em;
line-height: 1.4;
padding: 1.5rem;
2023-08-17 09:47:40 +00:00
background: #fff;
}
.ui.flyout > .content.scrolling {
overflow: auto;
-ms-scroll-chaining: none;
overscroll-behavior: none;
2022-09-30 13:48:25 +00:00
}
.ui.flyout.left > .content,
.ui.flyout.right > .content {
2023-08-17 09:47:40 +00:00
min-height: calc(100vh - 4.7rem);
}
.ui.flyout.left > .header + .content,
.ui.flyout.right > .header + .content {
2022-09-30 13:48:25 +00:00
min-height: calc(100vh - 9.1rem);
}
.ui.flyout.left > .scrolling.content,
.ui.flyout.right > .scrolling.content {
2023-08-17 09:47:40 +00:00
max-height: calc(100vh - 4.7rem);
}
.ui.flyout.left > .header + .scrolling.content,
.ui.flyout.right > .header + .scrolling.content {
2022-09-30 13:48:25 +00:00
max-height: calc(100vh - 9.1rem);
}
.ui.flyout.top > .scrolling.content,
.ui.flyout.bottom > .scrolling.content {
max-height: calc(80vh - 9.1rem);
}
2023-08-17 09:47:40 +00:00
/* --------------
Actions
--------------- */
2022-09-30 13:48:25 +00:00
.ui.flyout > .actions {
2023-08-17 09:47:40 +00:00
background: #f9fafb;
padding: 1rem;
2022-09-30 13:48:25 +00:00
border-top: 1px solid rgba(34, 36, 38, 0.15);
text-align: right;
}
.ui.flyout .actions > .button:not(.fluid) {
margin-left: 0.75em;
}
.ui.ui.flyout > .basic.actions {
border-top: none;
}
.ui.flyout > .left.actions {
text-align: left;
}
.ui.flyout > .left.actions > .button:not(.fluid) {
margin-left: 0.5em;
margin-right: 0.5em;
}
.ui.flyout > .centered,
.ui.flyout > .center.aligned {
text-align: center;
}
.ui.flyout > .centered.actions > .button:not(.fluid),
.ui.flyout > .center.aligned.actions > .button:not(.fluid) {
margin-left: 0.5em;
margin-right: 0.5em;
}
.ui.ui.flyout > .basic.header,
.ui.ui.flyout > .basic.actions {
background-color: transparent;
}
.ui.flyout > .basic.header {
border-bottom: none;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Direction
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.left.flyout {
right: auto;
left: 0;
2023-08-17 09:47:40 +00:00
transform: translate3d(-100%, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.right.flyout {
right: 0;
left: auto;
2023-08-17 09:47:40 +00:00
transform: translate3d(100%, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.top.flyout,
.ui.bottom.flyout {
width: 100%;
height: auto;
}
.ui.top.flyout {
top: 0;
bottom: auto;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -100%, 0);
2022-09-30 13:48:25 +00:00
}
.ui.bottom.flyout {
top: auto;
bottom: 0;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 100%, 0);
2022-09-30 13:48:25 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Pushable
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.pushable.pushable.pushable {
height: 100%;
overflow-x: hidden;
padding: 0;
}
.pushable.pushable.pushable.locked {
overflow-y: hidden;
background: inherit;
}
/* 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-09-30 13:48:25 +00:00
overflow-y: hidden;
}
.pushable:not(body) > .ui.flyout,
.pushable:not(body) > .fixed,
.pushable:not(body) > .pusher::after {
position: absolute;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Fixed
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +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-09-30 13:48:25 +00:00
Page
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +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;
}
.pushable > .pusher:not(.overflowing) {
overflow: hidden;
}
body.pushable > .pusher {
2023-08-17 09:47:40 +00:00
background: #fff;
2022-09-30 13:48:25 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Dimmer
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.pushable > .pusher::after {
position: fixed;
top: 0;
right: 0;
2023-08-17 09:47:40 +00:00
content: "";
2022-09-30 13:48:25 +00:00
background: rgba(0, 0, 0, 0.4);
overflow: hidden;
opacity: 0;
transition: all 500ms;
will-change: opacity;
z-index: 1000;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Coupling
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.flyout.menu .item {
border-radius: 0 !important;
}
/*******************************
States
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Dimmed
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.pushable > .pusher.dimmed::after {
width: 100% !important;
height: 100% !important;
opacity: 1 !important;
}
.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;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Animating
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.animating.flyout {
visibility: visible;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Visible
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
.ui.visible.flyout {
visibility: visible;
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-09-30 13:48:25 +00:00
}
/* Shadow Direction */
.ui.left.visible.flyout,
.ui.right.visible.flyout {
2023-08-17 09:47:40 +00:00
box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
2022-09-30 13:48:25 +00:00
}
.ui.top.visible.flyout,
.ui.bottom.visible.flyout {
2023-08-17 09:47:40 +00:00
box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
2022-09-30 13:48:25 +00:00
}
/* Visible On Load */
.ui.visible.left.flyout ~ .fixed,
.ui.visible.left.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(400px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible.right.flyout ~ .fixed,
.ui.visible.right.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-400px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible.top.flyout ~ .fixed,
.ui.visible.top.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 36px, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible.bottom.flyout ~ .fixed,
.ui.visible.bottom.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -36px, 0);
2022-09-30 13:48:25 +00:00
}
/* opposite sides visible forces content overlay */
.ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .fixed,
.ui.visible.left.flyout ~ .ui.visible.right.flyout ~ .pusher,
.ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .fixed,
.ui.visible.right.flyout ~ .ui.visible.left.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-09-30 13:48:25 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Inverted
--------------- */
2022-09-30 13:48:25 +00:00
.ui.flyout.inverted {
2023-08-17 09:47:40 +00:00
background: #000;
2022-09-30 13:48:25 +00:00
}
.ui.flyout.inverted > .close {
2023-08-17 09:47:40 +00:00
color: #fff;
2022-09-30 13:48:25 +00:00
}
.ui.flyout.inverted > .header,
.ui.flyout.inverted > .content {
2023-08-17 09:47:40 +00:00
background: #000;
color: #fff;
2022-09-30 13:48:25 +00:00
}
.ui.flyout.inverted > .actions {
2023-08-17 09:47:40 +00:00
background: #191a1b;
2022-09-30 13:48:25 +00:00
border-top: 1px solid rgba(34, 36, 38, 0.85);
2023-08-17 09:47:40 +00:00
color: #fff;
2022-09-30 13:48:25 +00:00
}
/*******************************
Variations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-09-30 13:48:25 +00:00
Width
2023-08-17 09:47:40 +00:00
--------------- */
2022-09-30 13:48:25 +00:00
/* Left / Right */
.ui.left.flyout,
.ui.right.flyout {
width: 400px;
}
.ui.thin.left.flyout,
.ui.thin.right.flyout {
width: 200px;
}
.ui[class*="very thin"].left.flyout,
.ui[class*="very thin"].right.flyout {
width: 120px;
}
.ui.wide.left.flyout,
.ui.wide.right.flyout {
width: 600px;
}
.ui[class*="very wide"].left.flyout,
.ui[class*="very wide"].right.flyout {
width: 800px;
}
/* Left Visible */
.ui.visible.thin.left.flyout ~ .fixed,
.ui.visible.thin.left.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(200px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible[class*="very thin"].left.flyout ~ .fixed,
.ui.visible[class*="very thin"].left.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(120px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible.wide.left.flyout ~ .fixed,
.ui.visible.wide.left.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(600px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible[class*="very wide"].left.flyout ~ .fixed,
.ui.visible[class*="very wide"].left.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(800px, 0, 0);
2022-09-30 13:48:25 +00:00
}
/* Right Visible */
.ui.visible.thin.right.flyout ~ .fixed,
.ui.visible.thin.right.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-200px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible[class*="very thin"].right.flyout ~ .fixed,
.ui.visible[class*="very thin"].right.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-120px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible.wide.right.flyout ~ .fixed,
.ui.visible.wide.right.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-600px, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.visible[class*="very wide"].right.flyout ~ .fixed,
.ui.visible[class*="very wide"].right.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: translate3d(-800px, 0, 0);
2022-09-30 13:48:25 +00:00
}
/* Fullscreen */
.ui.fullscreen.flyout {
width: 100%;
}
2023-08-17 09:47:40 +00:00
/* -------------------
Column Width
-------------------- */
2022-09-30 13:48:25 +00:00
/* Sizing Combinations */
.ui[class*="one wide"].flyout:not(.fullscreen) {
width: 6.25%;
}
.ui[class*="two wide"].flyout:not(.fullscreen) {
width: 12.5%;
}
.ui[class*="three wide"].flyout:not(.fullscreen) {
width: 18.75%;
}
.ui[class*="four wide"].flyout:not(.fullscreen) {
width: 25%;
}
.ui[class*="five wide"].flyout:not(.fullscreen) {
width: 31.25%;
}
.ui[class*="six wide"].flyout:not(.fullscreen) {
width: 37.5%;
}
.ui[class*="seven wide"].flyout:not(.fullscreen) {
width: 43.75%;
}
.ui[class*="eight wide"].flyout:not(.fullscreen) {
width: 50%;
}
.ui[class*="nine wide"].flyout:not(.fullscreen) {
width: 56.25%;
}
.ui[class*="ten wide"].flyout:not(.fullscreen) {
width: 62.5%;
}
.ui[class*="eleven wide"].flyout:not(.fullscreen) {
width: 68.75%;
}
.ui[class*="twelve wide"].flyout:not(.fullscreen) {
width: 75%;
}
.ui[class*="thirteen wide"].flyout:not(.fullscreen) {
width: 81.25%;
}
.ui[class*="fourteen wide"].flyout:not(.fullscreen) {
width: 87.5%;
}
.ui[class*="fifteen wide"].flyout:not(.fullscreen) {
width: 93.75%;
}
.ui[class*="sixteen wide"].flyout:not(.fullscreen) {
width: 100%;
}
/*******************************
Animations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
Overlay
--------------- */
2022-09-30 13:48:25 +00:00
/* Set-up */
.ui.overlay.flyout {
z-index: 102;
}
/* Initial */
.ui.left.overlay.flyout {
2023-08-17 09:47:40 +00:00
transform: translate3d(-100%, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.right.overlay.flyout {
2023-08-17 09:47:40 +00:00
transform: translate3d(100%, 0, 0);
2022-09-30 13:48:25 +00:00
}
.ui.top.overlay.flyout {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, -100%, 0);
2022-09-30 13:48:25 +00:00
}
.ui.bottom.overlay.flyout {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 100%, 0);
2022-09-30 13:48:25 +00:00
}
/* Animation */
.animating.ui.overlay.flyout,
.ui.visible.overlay.flyout {
transition: transform 500ms ease;
}
/* End - flyout */
.ui.visible.overlay.flyout {
2023-08-17 09:47:40 +00:00
transform: translate3d(0, 0, 0);
2022-09-30 13:48:25 +00:00
}
/* End - Pusher */
.ui.visible.overlay.flyout ~ .fixed,
.ui.visible.overlay.flyout ~ .pusher {
2023-08-17 09:47:40 +00:00
transform: none !important;
2022-09-30 13:48:25 +00:00
}
/*******************************
Theme Overrides
*******************************/
2023-08-17 09:47:40 +00:00
/*******************************
User Overrides
*******************************/