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.
247 lines
4.7 KiB
247 lines
4.7 KiB
/*
|
|
* # Semantic Dimmer
|
|
* http://github.com/quirkyinc/semantic
|
|
*
|
|
*
|
|
* Copyright 2013 Contributors
|
|
* Released under the MIT license
|
|
* http://opensource.org/licenses/MIT
|
|
*
|
|
* Released: April 17 2013
|
|
*/
|
|
/*******************************
|
|
Dimmer
|
|
*******************************/
|
|
.ui.dimmable {
|
|
position: relative;
|
|
}
|
|
.ui.dimmer {
|
|
position: absolute;
|
|
top: 0em !important;
|
|
left: 0em !important;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
background-color: rgba(0, 0, 0, 0.85);
|
|
opacity: 0;
|
|
line-height: 1;
|
|
-webkit-animation-fill-mode: forwards;
|
|
-moz-animation-fill-mode: forwards;
|
|
-o-animation-fill-mode: forwards;
|
|
-ms-animation-fill-mode: forwards;
|
|
animation-fill-mode: forwards;
|
|
-webkit-transition: background-color 0.5s linear;
|
|
-moz-transition: background-color 0.5s linear;
|
|
-o-transition: background-color 0.5s linear;
|
|
-ms-transition: background-color 0.5s linear;
|
|
transition: background-color 0.5s linear;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
-ms-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
z-index: 1000;
|
|
}
|
|
.ui.dimmable.dimmed > :not(.dimmer) {
|
|
/*
|
|
-webkit-transition:
|
|
filter 0.5s ease
|
|
;
|
|
-moz-transition:
|
|
filter 0.5s ease
|
|
;
|
|
-o-transition:
|
|
filter 0.5s ease
|
|
;
|
|
-ms-transition:
|
|
filter 0.5s ease
|
|
;
|
|
transition:
|
|
filter 0.5s ease
|
|
;
|
|
*/
|
|
|
|
}
|
|
/* Dimmer Content */.ui.dimmer .content {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: table;
|
|
-webkit-user-select: text;
|
|
-moz-user-select: text;
|
|
-ms-user-select: text;
|
|
user-select: text;
|
|
}
|
|
.ui.dimmer .content > * {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
}
|
|
/* Loose Coupling */
|
|
.ui.segment > .ui.dimmer {
|
|
-webkit-border-radius: 5px;
|
|
-moz-border-radius: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
.ui.horizontal.segment > .ui.dimmer,
|
|
.ui.vertical.segment > .ui.dimmer {
|
|
-webkit-border-radius: 5px;
|
|
-moz-border-radius: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
/*******************************
|
|
States
|
|
*******************************/
|
|
.ui.dimmable.dimmed > :not(.dimmer) {
|
|
-webkit-filter: blur(5px) grayscale(0.7);
|
|
-moz-filter: blur(5px) grayscale(0.7);
|
|
}
|
|
body.dimmable.dimmed {
|
|
overflow: hidden;
|
|
}
|
|
.ui.dimmable.dimmed > .ui.dimmer,
|
|
.ui.dimmer.active {
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 1;
|
|
}
|
|
.ui.disabled.dimmer {
|
|
width: 0em !important;
|
|
height: 0em !important;
|
|
}
|
|
/*******************************
|
|
Variations
|
|
*******************************/
|
|
/*--------------
|
|
Page
|
|
---------------*/
|
|
.ui.page.dimmer {
|
|
position: fixed;
|
|
}
|
|
body.ui.dimmable.dimmed > :not(.dimmer) {
|
|
-webkit-filter: blur(15px) grayscale(0.7);
|
|
-moz-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);
|
|
}
|
|
/*--------------
|
|
Simple
|
|
---------------*/
|
|
/* Displays without javascript */
|
|
.ui.simple.dimmer {
|
|
display: block;
|
|
overflow: hidden;
|
|
opacity: 1;
|
|
z-index: -100;
|
|
background-color: rgba(0, 0, 0, 0);
|
|
}
|
|
.ui.dimmable.dimmed > .ui.simple.dimmer {
|
|
overflow: visible;
|
|
opacity: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.85);
|
|
}
|
|
.ui.simple.inverted.dimmer {
|
|
background-color: rgba(255, 255, 255, 0);
|
|
}
|
|
.ui.dimmable.dimmed > .ui.simple.inverted.dimmer {
|
|
background-color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
/*******************************
|
|
Animations
|
|
*******************************/
|
|
.ui.dimmer.show {
|
|
width: 100%;
|
|
height: 100%;
|
|
-webkit-animation: dimmer-show 0.5s;
|
|
-moz-animation: dimmer-show 0.5s;
|
|
animation: dimmer-show 0.5s;
|
|
}
|
|
@-webkit-keyframes dimmer-show {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@-moz-keyframes dimmer-show {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes dimmer-show {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
.ui.dimmer.hide {
|
|
-webkit-animation: dimmer-hide 0.5s;
|
|
-moz-animation: dimmer-hide 0.5s;
|
|
animation: dimmer-hide 0.5s;
|
|
}
|
|
@-webkit-keyframes dimmer-hide {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
99% {
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
height: 0em;
|
|
width: 0em;
|
|
}
|
|
}
|
|
@-moz-keyframes dimmer-hide {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
99% {
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
height: 0em;
|
|
width: 0em;
|
|
}
|
|
}
|
|
@keyframes dimmer-hide {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
99% {
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
height: 0em;
|
|
width: 0em;
|
|
}
|
|
}
|