gallery/style/single.css

166 lines
2.4 KiB
CSS
Raw Normal View History

2020-07-17 06:29:13 -04:00
@import url(base.css);
body {
max-width: calc(var(--page-size) + 200px);
position: relative;
}
.date, .artist {
font-weight: 400;
position: absolute;
top: 0.1em;
margin: 0;
padding: 0;
font-size: 100%;
font-style: oblique;
}
.date { right: 0.1em; }
.artist { left: 0.1em; }
#mainfig {
justify-content: center;
border: 2px solid var(--text);
2020-07-17 09:52:13 -04:00
box-shadow: 0 0 30px var(--shadow);
2020-07-17 06:29:13 -04:00
margin: auto;
height: min-content;
width: min-content;
overflow: hidden;
position: relative;
}
#mainimg {
display: block;
}
#cw {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
font-size: 250%;
font-weight: 900;
color: white;
background: hsla(var(--text-hue), 35%, 15%, 80%);
mix-blend-mode: multiply;
display: flex;
justify-content: center;
align-items: center;
}
#cw::before {
content: 'cw:\A0'; /* nsbp */
font-weight: 600;
}
#cw + * img {
filter: blur(50px);
}
figcaption p {
margin: 0;
}
.info {
margin: 1em auto;
width: var(--page-size);
}
.info > section {
display: grid;
2020-07-17 09:52:13 -04:00
--grid-gap: 1em;
grid-gap: var(--grid-gap);
grid-template-columns:
calc(20% - var(--grid-gap) / 2) calc(80% - var(--grid-gap) / 2);
2020-07-17 06:29:13 -04:00
justify-content: center;
align-items: baseline;
margin: 1em;
}
.info h2 {
font-size: inherit;
font-weight: 500;
margin: 0;
justify-self: end;
}
.info ul, .alts ul {
display: flex;
align-items: center;
flex-wrap: wrap;
}
.alts ul {
justify-content: center;
}
.alts [type=checkbox], .alts [type=radio] {
display: none;
}
.alts :checked + label {
background: var(--yellow);
border-color: var(--text);
}
.alts .nsfw label::after {
content: url(18_plus_small.png);
vertical-align: middle;
padding-left: 0.15em;
}
.info ul {
padding: 0;
margin: 0;
}
.info li, .alts li {
list-style: none;
}
.info li, .alts label {
padding: 0 0.5em;
margin: 0 0.25em;
background: var(--light-tum);
border: 1px solid var(--dark-tum);
border-radius: 5px;
}
.info p:first-child {
margin-top: 0;
}
.info p {
margin: 0.25em 0;
}
footer {
font-size: 90%;
font-style: oblique;
text-align: center;
}
2020-07-17 09:52:13 -04:00
@media (pointer: coarse) {
.info, .alts {
font-size: 200%;
}
footer {
font-size: 150%;
}
.alts .nsfw label::after {
content: url(18_plus.png);
}
}
@media (prefers-reduced-motion: no-preference) {
#cw + * img {
transition: none;
}
}