move lightbox
This commit is contained in:
parent
c969e6e90f
commit
5caca9d532
2 changed files with 39 additions and 36 deletions
|
@ -2,39 +2,5 @@
|
||||||
@import "tailwindcss/components";
|
@import "tailwindcss/components";
|
||||||
@import "tailwindcss/utilities";
|
@import "tailwindcss/utilities";
|
||||||
|
|
||||||
/* Lightbox Image */
|
@import "./lolight.css";
|
||||||
.lightbox {
|
@import "./lightbox.css";
|
||||||
/* Default to hidden */
|
|
||||||
display: none;
|
|
||||||
|
|
||||||
/* Overlay entire screen */
|
|
||||||
position: fixed;
|
|
||||||
z-index: 999;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
|
|
||||||
/* A bit of padding around image */
|
|
||||||
padding: 1em;
|
|
||||||
|
|
||||||
/* Translucent background */
|
|
||||||
background: rgba(0, 0, 0, 0.8);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Unhide the lightbox when it's the target */
|
|
||||||
.lightbox:target {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.lightbox span {
|
|
||||||
/* Full width and height */
|
|
||||||
display: block;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
/* Size and position background image */
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: contain;
|
|
||||||
}
|
|
37
assets/css/lightbox.css
Normal file
37
assets/css/lightbox.css
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
/* Lightbox Image */
|
||||||
|
.lightbox {
|
||||||
|
/* Default to hidden */
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
/* Overlay entire screen */
|
||||||
|
position: fixed;
|
||||||
|
z-index: 999;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
|
||||||
|
/* A bit of padding around image */
|
||||||
|
padding: 1em;
|
||||||
|
|
||||||
|
/* Translucent background */
|
||||||
|
background: rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Unhide the lightbox when it's the target */
|
||||||
|
.lightbox:target {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lightbox span {
|
||||||
|
/* Full width and height */
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
/* Size and position background image */
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue