mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
42 lines
695 B
SCSS
42 lines
695 B
SCSS
// source: https://github.com/postare/bulma-modal-fx/blob/master/src/_scss/components/_modal-fx.scss
|
|
|
|
$transition-duration: 0.3s;
|
|
|
|
.modal {
|
|
display: flex;
|
|
visibility: hidden;
|
|
|
|
.modal-content {
|
|
max-width: 95%;
|
|
}
|
|
|
|
.modal-background {
|
|
transition: all $transition-duration;
|
|
opacity: 0;
|
|
}
|
|
|
|
&.is-active {
|
|
visibility: visible;
|
|
.modal-background {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&.modal-fx {
|
|
&-fadeInScale {
|
|
.modal-content {
|
|
transform: scale(0.7);
|
|
opacity: 0;
|
|
transition: all $transition-duration;
|
|
}
|
|
|
|
&.is-active {
|
|
.modal-content {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|