onders.org_zola_theme/sass/onders.org/_modal.scss
finga 4aff0378ac Deprecate bulma in favor of normalize and milligram
Deprecate the bulma css framework in favor of normalize and
milligram. Adapt the templates to work with the new css libraries.
2024-04-20 00:02:14 +02:00

47 lines
875 B
SCSS

div.modal-thumbnail {
margin-bottom: 2.5rem;
}
div.modal {
opacity: 0;
z-index: 900;
position: fixed;
transition: opacity 0.2s linear;
height: 100%;
width: 100%;
background-color: rgba($color-black, 0.5);
top: 0;
left: 0;
pointer-events: none;
text-align: center;
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
-webkit-backdrop-filter: blur(5px);
backdrop-filter: blur(5px);
}
}
div.modal a {
height: 100%;
width: 100%;
display: inline-block;
}
div.modal a img {
display: inline-block;
box-shadow: 0 0 20px $color-black;
max-width: 90%;
max-height: 90%;
vertical-align: middle;
}
span.spacer {
display: inline-block;
height: 100%;
vertical-align: middle;
}
div.modal:target {
opacity: 1;
pointer-events: auto;
}