wishthis/semantic/dist/components/dimmer.css

358 lines
7.1 KiB
CSS
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*!
2023-08-17 09:47:40 +00:00
* # Fomantic-UI 2.9.2 - Dimmer
* 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
*
*/
/*******************************
Dimmer
*******************************/
.dimmable:not(body) {
position: relative;
}
.ui.dimmer {
display: none;
position: absolute;
2022-09-15 12:58:37 +00:00
top: 0;
left: 0;
2022-01-13 13:00:31 +00:00
width: 100%;
height: 100%;
text-align: center;
vertical-align: middle;
padding: 1em;
background: rgba(0, 0, 0, 0.85);
opacity: 0;
line-height: 1;
2023-08-17 09:47:40 +00:00
animation-fill-mode: both;
animation-duration: 0.5s;
2022-08-05 09:25:53 +00:00
transition: all 0.5s linear;
2023-08-17 09:47:40 +00:00
flex-direction: column;
align-items: center;
justify-content: center;
2022-01-13 13:00:31 +00:00
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
will-change: opacity;
z-index: 1000;
}
/* Dimmer Content */
.ui.dimmer > .content {
-webkit-user-select: text;
-ms-user-select: text;
user-select: text;
2023-08-17 09:47:40 +00:00
color: #fff;
2022-01-13 13:00:31 +00:00
}
/* Loose Coupling */
.ui.segment > .ui.dimmer:not(.page) {
border-radius: inherit;
}
/* Scrollbars */
.ui.dimmer:not(.inverted)::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
}
.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.25);
}
.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:window-inactive {
background: rgba(255, 255, 255, 0.15);
}
.ui.dimmer:not(.inverted)::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.35);
}
2022-08-05 09:25:53 +00:00
.ui.dimmer:not(.inverted) {
2023-08-17 09:47:40 +00:00
/* firefox: first color thumb, second track */
2022-08-05 09:25:53 +00:00
scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.1);
}
2022-01-13 13:00:31 +00:00
/*******************************
States
*******************************/
/* Animating */
.animating.dimmable:not(body),
.dimmed.dimmable:not(body) {
overflow: hidden;
}
/* Animating / Active / Visible */
.dimmed.dimmable > .ui.animating.dimmer,
.dimmed.dimmable > .ui.visible.dimmer,
.ui.active.dimmer {
display: flex;
opacity: 1;
}
/* Disabled */
.ui.disabled.dimmer {
width: 0 !important;
height: 0 !important;
}
/*******************************
Variations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
Legacy
--------------- */
2022-01-13 13:00:31 +00:00
/* Animating / Active / Visible */
.dimmed.dimmable > .ui.animating.legacy.dimmer,
.dimmed.dimmable > .ui.visible.legacy.dimmer,
.ui.active.legacy.dimmer {
display: block;
}
2023-08-17 09:47:40 +00:00
/* --------------
Alignment
--------------- */
2022-01-13 13:00:31 +00:00
.ui[class*="top aligned"].dimmer {
2023-08-17 09:47:40 +00:00
justify-content: flex-start;
2022-01-13 13:00:31 +00:00
}
.ui[class*="bottom aligned"].dimmer {
2023-08-17 09:47:40 +00:00
justify-content: flex-end;
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Page
--------------- */
2022-01-13 13:00:31 +00:00
.ui.page.dimmer {
position: fixed;
2023-08-17 09:47:40 +00:00
transform-style: "";
perspective: 2000px;
transform-origin: center center;
2022-01-13 13:00:31 +00:00
}
.ui.page.dimmer.modals {
-moz-perspective: none;
}
body.animating.in.dimmable,
body.dimmed.dimmable {
overflow: hidden;
}
body.dimmable > .dimmer {
position: fixed;
}
2023-08-17 09:47:40 +00:00
/* --------------
Blurring
--------------- */
2022-08-05 09:25:53 +00:00
@supports (not (-webkit-backdrop-filter: none)) and (not ((-webkit-backdrop-filter: none) or (backdrop-filter: none))) {
.blurring.dimmable > :not(.dimmer) {
2023-08-17 09:47:40 +00:00
filter: initial;
2022-08-05 09:25:53 +00:00
transition: 800ms filter ease;
}
.blurring.dimmed.dimmable > :not(.dimmer):not(.popup) {
2023-08-17 09:47:40 +00:00
filter: blur(5px) grayscale(0.7);
2022-08-05 09:25:53 +00:00
}
2022-01-13 13:00:31 +00:00
}
/* Dimmer Color */
.blurring.dimmable > .dimmer {
background: rgba(0, 0, 0, 0.6);
2022-08-05 09:25:53 +00:00
-webkit-backdrop-filter: blur(5px) grayscale(0.7);
backdrop-filter: blur(5px) grayscale(0.7);
2022-01-13 13:00:31 +00:00
}
.blurring.dimmable > .inverted.dimmer {
background: rgba(255, 255, 255, 0.6);
}
2023-08-17 09:47:40 +00:00
/* --------------
Aligned
--------------- */
2022-01-13 13:00:31 +00:00
.ui.dimmer > .top.aligned.content > * {
vertical-align: top;
}
.ui.dimmer > .bottom.aligned.content > * {
vertical-align: bottom;
}
2023-08-17 09:47:40 +00:00
/* --------------
Shades
--------------- */
2022-01-13 13:00:31 +00:00
.medium.medium.medium.medium.medium.dimmer {
background: rgba(0, 0, 0, 0.65);
}
.light.light.light.light.light.dimmer {
background: rgba(0, 0, 0, 0.45);
}
.very.light.light.light.light.dimmer {
background: rgba(0, 0, 0, 0.25);
}
2023-08-17 09:47:40 +00:00
/* --------------
Inverted
--------------- */
2022-01-13 13:00:31 +00:00
.ui.inverted.dimmer {
background: rgba(255, 255, 255, 0.85);
}
.ui.inverted.dimmer > .content,
.ui.inverted.dimmer > .content > * {
2023-08-17 09:47:40 +00:00
color: #000;
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
Inverted Shades
--------------- */
2022-01-13 13:00:31 +00:00
.medium.medium.medium.medium.medium.inverted.dimmer {
background: rgba(255, 255, 255, 0.65);
}
.light.light.light.light.light.inverted.dimmer {
background: rgba(255, 255, 255, 0.45);
}
.very.light.light.light.light.inverted.dimmer {
background: rgba(255, 255, 255, 0.25);
}
2023-08-17 09:47:40 +00:00
/* --------------
Simple
--------------- */
2022-01-13 13:00:31 +00:00
/* Displays without javascript */
.ui.simple.dimmer {
display: block;
overflow: hidden;
opacity: 0;
width: 0;
height: 0;
z-index: -100;
background: rgba(0, 0, 0, 0);
}
.dimmed.dimmable > .ui.simple.dimmer {
overflow: visible;
opacity: 1;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 1;
}
.ui.simple.inverted.dimmer {
background: rgba(255, 255, 255, 0);
}
.dimmed.dimmable > .ui.simple.inverted.dimmer {
background: rgba(255, 255, 255, 0.85);
}
2023-08-17 09:47:40 +00:00
/* --------------
Partially
---------------- */
2022-01-13 13:00:31 +00:00
.ui[class*="top dimmer"],
.ui[class*="center dimmer"],
.ui[class*="bottom dimmer"] {
height: auto;
}
.ui[class*="bottom dimmer"] {
2022-09-15 12:58:37 +00:00
top: auto;
2022-01-13 13:00:31 +00:00
bottom: 0;
}
.ui[class*="center dimmer"] {
2022-09-15 12:58:37 +00:00
top: 50%;
2022-01-13 13:00:31 +00:00
transform: translateY(-50%);
}
.ui.segment > .ui.ui[class*="top dimmer"] {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.ui.segment > .ui.ui[class*="center dimmer"] {
border-radius: 0;
}
.ui.segment > .ui.ui[class*="bottom dimmer"] {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.ui[class*="center dimmer"].transition[class*="fade up"].in {
2023-08-17 09:47:40 +00:00
animation-name: fadeInUpCenter;
2022-01-13 13:00:31 +00:00
}
.ui[class*="center dimmer"].transition[class*="fade down"].in {
2023-08-17 09:47:40 +00:00
animation-name: fadeInDownCenter;
2022-01-13 13:00:31 +00:00
}
.ui[class*="center dimmer"].transition[class*="fade up"].out {
2023-08-17 09:47:40 +00:00
animation-name: fadeOutUpCenter;
2022-01-13 13:00:31 +00:00
}
.ui[class*="center dimmer"].transition[class*="fade down"].out {
2023-08-17 09:47:40 +00:00
animation-name: fadeOutDownCenter;
2022-01-13 13:00:31 +00:00
}
.ui[class*="center dimmer"].bounce.transition {
2023-08-17 09:47:40 +00:00
animation-name: bounceCenter;
2022-01-13 13:00:31 +00:00
}
@keyframes fadeInUpCenter {
0% {
opacity: 0;
transform: translateY(-40%);
}
100% {
opacity: 1;
transform: translateY(-50%);
}
}
@keyframes fadeInDownCenter {
0% {
opacity: 0;
transform: translateY(-60%);
}
100% {
opacity: 1;
transform: translateY(-50%);
}
}
@keyframes fadeOutUpCenter {
0% {
opacity: 1;
transform: translateY(-50%);
}
100% {
opacity: 0;
transform: translateY(-45%);
}
}
@keyframes fadeOutDownCenter {
0% {
opacity: 1;
transform: translateY(-50%);
}
100% {
opacity: 0;
transform: translateY(-55%);
}
}
@keyframes bounceCenter {
0%,
20%,
50%,
80%,
100% {
transform: translateY(-50%);
}
40% {
2023-08-17 09:47:40 +00:00
transform: translateY(calc(-50% - 30px));
2022-01-13 13:00:31 +00:00
}
60% {
2023-08-17 09:47:40 +00:00
transform: translateY(calc(-50% - 15px));
2022-01-13 13:00:31 +00:00
}
}
/*******************************
Theme Overrides
*******************************/
/*******************************
User Overrides
*******************************/