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

593 lines
13 KiB
CSS
Raw Normal View History

2022-09-30 13:48:25 +00:00
/*!
2022-10-10 08:26:02 +00:00
* # Fomantic-UI 2.9.0 - Flyout
2022-09-30 13:48:25 +00:00
* http://github.com/fomantic/Fomantic-UI/
*
*
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Flyout
*******************************/
/* Flyout Menu */
.ui.flyout {
position: fixed;
top: 0;
left: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition: none;
transition: none;
will-change: transform;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
visibility: hidden;
-webkit-overflow-scrolling: touch;
height: 100%;
max-height: 100%;
max-width: 100%;
border-radius: 0;
margin: 0;
overflow-y: hidden;
z-index: 102;
background: #FFFFFF;
}
/* GPU Layers for Child Elements */
.ui.flyout > * {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
/*--------------
Close
---------------*/
.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;
}
/*--------------
Header
---------------*/
.ui.flyout > .header {
display: block;
background: #FFFFFF;
margin: 0;
padding: 1.25rem 1.5rem;
-webkit-box-shadow: none;
box-shadow: none;
color: rgba(0, 0, 0, 0.85);
border-bottom: 1px solid rgba(34, 36, 38, 0.15);
}
/*--------------
Content
---------------*/
.ui.flyout > .content {
display: block;
width: 100%;
font-size: 1em;
line-height: 1.4;
padding: 1.5rem;
background: #FFFFFF;
}
.ui.flyout.left > .content,
.ui.flyout.right > .content {
min-height: calc(100vh - 9.1rem);
}
.ui.flyout.left > .scrolling.content,
.ui.flyout.right > .scrolling.content {
max-height: calc(100vh - 9.1rem);
overflow: auto;
}
.ui.flyout.top > .scrolling.content,
.ui.flyout.bottom > .scrolling.content {
max-height: calc(80vh - 9.1rem);
overflow: auto;
}
/*--------------
Actions
---------------*/
.ui.flyout > .actions {
background: #F9FAFB;
padding: 1rem 1rem;
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;
}
/*--------------
Direction
---------------*/
.ui.left.flyout {
right: auto;
left: 0;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
.ui.right.flyout {
right: 0;
left: auto;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.ui.top.flyout,
.ui.bottom.flyout {
width: 100%;
height: auto;
}
.ui.top.flyout {
top: 0;
bottom: auto;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
.ui.bottom.flyout {
top: auto;
bottom: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
/*--------------
Pushable
---------------*/
.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) {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
overflow-y: hidden;
}
.pushable:not(body) > .ui.flyout,
.pushable:not(body) > .fixed,
.pushable:not(body) > .pusher::after {
position: absolute;
}
/*--------------
Fixed
---------------*/
.pushable > .fixed {
position: fixed;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition: -webkit-transform 500ms ease;
transition: -webkit-transform 500ms ease;
transition: transform 500ms ease;
transition: transform 500ms ease, -webkit-transform 500ms ease;
will-change: transform;
z-index: 101;
}
/*--------------
Page
---------------*/
.pushable > .pusher {
position: relative;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
min-height: 100%;
-webkit-transition: -webkit-transform 500ms ease;
transition: -webkit-transform 500ms ease;
transition: transform 500ms ease;
transition: transform 500ms ease, -webkit-transform 500ms ease;
z-index: 2;
/* Pusher should inherit background from context */
background: inherit;
}
.pushable > .pusher:not(.overflowing) {
overflow: hidden;
}
body.pushable > .pusher {
background: #FFFFFF;
}
/*--------------
Dimmer
---------------*/
.pushable > .pusher::after {
position: fixed;
top: 0;
right: 0;
content: '';
background: rgba(0, 0, 0, 0.4);
overflow: hidden;
opacity: 0;
-webkit-transition: all 500ms;
transition: all 500ms;
will-change: opacity;
z-index: 1000;
}
/*--------------
Coupling
---------------*/
.ui.flyout.menu .item {
border-radius: 0 !important;
}
/*******************************
States
*******************************/
/*--------------
Dimmed
---------------*/
.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;
}
/*--------------
Animating
---------------*/
.ui.animating.flyout {
visibility: visible;
}
/*--------------
Visible
---------------*/
.ui.visible.flyout {
visibility: visible;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
/* Shadow Direction */
.ui.left.visible.flyout,
.ui.right.visible.flyout {
-webkit-box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
}
.ui.top.visible.flyout,
.ui.bottom.visible.flyout {
-webkit-box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
box-shadow: 0 0 20px rgba(34, 36, 38, 0.15);
}
/* Visible On Load */
.ui.visible.left.flyout ~ .fixed,
.ui.visible.left.flyout ~ .pusher {
-webkit-transform: translate3d(400px, 0, 0);
transform: translate3d(400px, 0, 0);
}
.ui.visible.right.flyout ~ .fixed,
.ui.visible.right.flyout ~ .pusher {
-webkit-transform: translate3d(-400px, 0, 0);
transform: translate3d(-400px, 0, 0);
}
.ui.visible.top.flyout ~ .fixed,
.ui.visible.top.flyout ~ .pusher {
-webkit-transform: translate3d(0, 36px, 0);
transform: translate3d(0, 36px, 0);
}
.ui.visible.bottom.flyout ~ .fixed,
.ui.visible.bottom.flyout ~ .pusher {
-webkit-transform: translate3d(0, -36px, 0);
transform: translate3d(0, -36px, 0);
}
/* 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 {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
/*--------------
Inverted
---------------*/
.ui.flyout.inverted {
background: #000000;
}
.ui.flyout.inverted > .close {
color: #FFFFFF;
}
.ui.flyout.inverted > .header,
.ui.flyout.inverted > .content {
background: #000000;
color: #FFFFFF;
}
.ui.flyout.inverted > .actions {
background: #191A1B;
border-top: 1px solid rgba(34, 36, 38, 0.85);
color: #FFFFFF;
}
/*******************************
Variations
*******************************/
/*--------------
Width
---------------*/
/* 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 {
-webkit-transform: translate3d(200px, 0, 0);
transform: translate3d(200px, 0, 0);
}
.ui.visible[class*="very thin"].left.flyout ~ .fixed,
.ui.visible[class*="very thin"].left.flyout ~ .pusher {
-webkit-transform: translate3d(120px, 0, 0);
transform: translate3d(120px, 0, 0);
}
.ui.visible.wide.left.flyout ~ .fixed,
.ui.visible.wide.left.flyout ~ .pusher {
-webkit-transform: translate3d(600px, 0, 0);
transform: translate3d(600px, 0, 0);
}
.ui.visible[class*="very wide"].left.flyout ~ .fixed,
.ui.visible[class*="very wide"].left.flyout ~ .pusher {
-webkit-transform: translate3d(800px, 0, 0);
transform: translate3d(800px, 0, 0);
}
/* Right Visible */
.ui.visible.thin.right.flyout ~ .fixed,
.ui.visible.thin.right.flyout ~ .pusher {
-webkit-transform: translate3d(-200px, 0, 0);
transform: translate3d(-200px, 0, 0);
}
.ui.visible[class*="very thin"].right.flyout ~ .fixed,
.ui.visible[class*="very thin"].right.flyout ~ .pusher {
-webkit-transform: translate3d(-120px, 0, 0);
transform: translate3d(-120px, 0, 0);
}
.ui.visible.wide.right.flyout ~ .fixed,
.ui.visible.wide.right.flyout ~ .pusher {
-webkit-transform: translate3d(-600px, 0, 0);
transform: translate3d(-600px, 0, 0);
}
.ui.visible[class*="very wide"].right.flyout ~ .fixed,
.ui.visible[class*="very wide"].right.flyout ~ .pusher {
-webkit-transform: translate3d(-800px, 0, 0);
transform: translate3d(-800px, 0, 0);
}
/* Fullscreen */
.ui.fullscreen.flyout {
width: 100%;
}
/*-------------------
Column Width
--------------------*/
/* 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
*******************************/
/*--------------
Overlay
---------------*/
/* Set-up */
.ui.overlay.flyout {
z-index: 102;
}
/* Initial */
.ui.left.overlay.flyout {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
.ui.right.overlay.flyout {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.ui.top.overlay.flyout {
-webkit-transform: translate3d(0%, -100%, 0);
transform: translate3d(0%, -100%, 0);
}
.ui.bottom.overlay.flyout {
-webkit-transform: translate3d(0%, 100%, 0);
transform: translate3d(0%, 100%, 0);
}
/* Animation */
.animating.ui.overlay.flyout,
.ui.visible.overlay.flyout {
-webkit-transition: -webkit-transform 500ms ease;
transition: -webkit-transform 500ms ease;
transition: transform 500ms ease;
transition: transform 500ms ease, -webkit-transform 500ms ease;
}
/* End - flyout */
.ui.visible.overlay.flyout {
-webkit-transform: translate3d(0%, 0, 0);
transform: translate3d(0%, 0, 0);
}
/* End - Pusher */
.ui.visible.overlay.flyout ~ .fixed,
.ui.visible.overlay.flyout ~ .pusher {
-webkit-transform: none !important;
transform: none !important;
}
/*******************************
Theme Overrides
*******************************/