You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
169 lines
2.8 KiB
169 lines
2.8 KiB
/*
|
|
* # Semantic - Dimmer
|
|
* http://github.com/jlukic/semantic-ui/
|
|
*
|
|
*
|
|
* Copyright 2013 Contributors
|
|
* Released under the MIT license
|
|
* http://opensource.org/licenses/MIT
|
|
*
|
|
*/
|
|
|
|
/*******************************
|
|
Dimmer
|
|
*******************************/
|
|
|
|
.ui.dimmable {
|
|
position: relative;
|
|
}
|
|
|
|
.ui.dimmer {
|
|
display: none;
|
|
position: absolute;
|
|
top: 0em !important;
|
|
right: 0em !important;
|
|
|
|
width: 0%;
|
|
height: 0%;
|
|
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
|
|
background-color: rgba(0, 0, 0, 0.85);
|
|
opacity: 0;
|
|
line-height: 1;
|
|
|
|
animation-fill-mode: both;
|
|
animation-duration: 0.5s;
|
|
|
|
transition:
|
|
background-color 0.5s linear
|
|
;
|
|
|
|
user-select: none;
|
|
box-sizing: border-box;
|
|
|
|
z-index: 1000;
|
|
}
|
|
|
|
/* Dimmer Content */;
|
|
.ui.dimmer > .content {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: table;
|
|
user-select: text;
|
|
}
|
|
.ui.dimmer > .content > div {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
color: #FFFFFF;
|
|
}
|
|
|
|
|
|
/* Loose Coupling */
|
|
.ui.segment > .ui.dimmer {
|
|
border-radius: 5px;
|
|
}
|
|
.ui.horizontal.segment > .ui.dimmer,
|
|
.ui.vertical.segment > .ui.dimmer {
|
|
border-radius: 5px;
|
|
}
|
|
|
|
/*******************************
|
|
States
|
|
*******************************/
|
|
|
|
.ui.dimmed.dimmable:not(body) {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ui.dimmed.dimmable > .ui.animating.dimmer,
|
|
.ui.dimmed.dimmable > .ui.visible.dimmer,
|
|
.ui.active.dimmer {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 1;
|
|
}
|
|
|
|
.ui.disabled.dimmer {
|
|
width: 0em !important;
|
|
height: 0em !important;
|
|
}
|
|
|
|
/*******************************
|
|
Variations
|
|
*******************************/
|
|
|
|
/*--------------
|
|
Page
|
|
---------------*/
|
|
|
|
.ui.page.dimmer {
|
|
position: fixed;
|
|
|
|
transform-style: preserve-3d;
|
|
perspective: 2000px;
|
|
transform-origin: center center;
|
|
}
|
|
|
|
.ui.scrolling.dimmable > .dimmer,
|
|
.ui.scrolling.page.dimmer {
|
|
position: absolute;
|
|
}
|
|
|
|
/* Blurred Background
|
|
body.ui.dimmed.dimmable > :not(.dimmer){
|
|
filter: ~"blur(15px) grayscale(0.7)";
|
|
}
|
|
*/
|
|
|
|
/*--------------
|
|
Aligned
|
|
---------------*/
|
|
|
|
.ui.dimmer > .top.aligned.content > * {
|
|
vertical-align: top;
|
|
}
|
|
.ui.dimmer > .bottom.aligned.content > * {
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
/*--------------
|
|
Inverted
|
|
---------------*/
|
|
|
|
.ui.inverted.dimmer {
|
|
background-color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
.ui.inverted.dimmer > .content > * {
|
|
color: rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
/*--------------
|
|
Simple
|
|
---------------*/
|
|
/* Displays without javascript */
|
|
|
|
.ui.simple.dimmer {
|
|
display: block;
|
|
overflow: hidden;
|
|
opacity: 1;
|
|
z-index: -100;
|
|
background-color: rgba(0, 0, 0, 0);
|
|
}
|
|
.ui.dimmed.dimmable > .ui.simple.dimmer {
|
|
overflow: visible;
|
|
opacity: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.85);
|
|
z-index: 1;
|
|
}
|
|
|
|
.ui.simple.inverted.dimmer {
|
|
background-color: rgba(255, 255, 255, 0);
|
|
}
|
|
.ui.dimmed.dimmable > .ui.simple.inverted.dimmer {
|
|
background-color: rgba(255, 255, 255, 0.85)
|
|
}
|