Files
trpic/web/styles/gallery/gallery.css

101 lines
1.5 KiB
CSS

#gallery {
display: flex;
flex-wrap: wrap;
}
#gallery::after {
content: '';
flex-grow: 999999999;
min-width: 200px;
height: 0;
}
#gallery div {
position: relative;
margin: .1em;
}
#gallery i {
display: block;
}
#gallery img {
position: absolute;
top: 0;
height: 100%;
width: 100%;
vertical-align: bottom;
background-color: rgb(50, 50, 50);
}
#gallery i span {
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 1.8em);
position: absolute;
pointer-events: none;
width: 100%;
height: 100%;
z-index: 1;
padding: .05em;
}
#gallery i p {
position: absolute;
bottom: 0;
right: 0;
padding: .4em;
margin: 0;
font-size: .8em;
font-style: normal;
line-height: 1em;
overflow: hidden;
color: white;
}
@media (prefers-color-scheme: dark) {
html {
color: white;
}
#gallery img {
mask-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}
}
#info-box {
padding: 1em;
flex-grow: 999999999;
align-items: center;
background-color: rgb(30, 30, 30);
color: white;
transition: background-color 0.5s ease-in-out;
}
#info-box p {
margin: 0;
line-break: anywhere;
}
#info-box a {
color: aquamarine;
text-decoration: none;
}
#sort-select {
color: white;
background-color: rgb(50, 50, 50);
border-radius: .2em;
border: none;
font-weight: bold;
width: fit-content;
padding: .1em 0;
}
#sort-select option {
background-color: rgb(50, 50, 50);
border: none;
}
#gallery span#deleted {
position: absolute;
top: 0;
}