101 lines
1.5 KiB
CSS
101 lines
1.5 KiB
CSS
#gallery {
|
|
display: flex;
|
|
gap: .2em;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
#gallery::after {
|
|
content: '';
|
|
flex-grow: 999999999;
|
|
min-width: 200px;
|
|
height: 0;
|
|
}
|
|
|
|
#gallery > div {
|
|
position: relative;
|
|
}
|
|
|
|
.imgs,
|
|
.imgs * {
|
|
display: block;
|
|
position: absolute;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: rgb(50, 50, 50);
|
|
transition: opacity ease-in-out .3s;
|
|
-webkit-user-drag: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.imgs {
|
|
mask-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
|
|
}
|
|
}
|
|
|
|
.imgs .nsfw {
|
|
z-index: 1;
|
|
color: transparent;
|
|
background: repeating-linear-gradient(45deg, #00000033, #00000033 .5em, #00000066 .5em, #00000066 1em);
|
|
}
|
|
|
|
.imgs .sensitive {
|
|
z-index: 1;
|
|
color: transparent;
|
|
background: repeating-linear-gradient(45deg, #ffcc0080, #ffcc0080 .5em, #00000066 .5em, #00000066 1em);
|
|
}
|
|
|
|
.imgs *:focus-visible,
|
|
.imgs *:focus-visible ~ a {
|
|
outline: .5em solid rgba(0, 0, 0, 0.5);
|
|
outline-offset: -.5em;
|
|
}
|
|
|
|
.info {
|
|
display: block;
|
|
}
|
|
|
|
.info p {
|
|
position: absolute;
|
|
padding: .4em;
|
|
margin: 0;
|
|
font-size: .8em;
|
|
font-style: normal;
|
|
overflow: hidden;
|
|
color: white;
|
|
max-width: 80%;
|
|
z-index: 2;
|
|
text-shadow: 0 0 8px black;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#gallery .thumbhash {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.top-left {
|
|
top: 0;
|
|
left: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.top-right {
|
|
top: 0;
|
|
right: 0;
|
|
text-align: right;
|
|
}
|
|
|
|
.bottom-left {
|
|
bottom: 0;
|
|
left: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.bottom-right {
|
|
bottom: 0;
|
|
right: 0;
|
|
text-align: right;
|
|
}
|