gallery/style/tum/index.css
2021-04-16 23:48:55 +02:00

113 lines
1.5 KiB
CSS

@import url(base.css);
body {
width: 40em;
}
.list {
display: grid;
align-items: center;
--gap: 0.05em;
grid-gap: var(--gap);
background: var(--text);
margin: 0;
padding: 0;
font-size: 150%;
font-weight: 600;
}
#gallery-list {
grid-template-columns: repeat(2, 50%);
}
#link-list {
grid-template-columns: 100%;
}
#gallery-list + #link-list {
padding-top: var(--gap);
}
.list a {
display: block;
font-weight: inherit;
color: var(--text);
padding: 0.5em;
}
.list a:hover {
text-decoration: none;
}
.list li {
list-style: none;
text-align: center;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
#gallery-list li {
background: var(--green);
}
li.nsfw {
background: var(--red);
}
.link-list li {
background: var(--yellow);
}
@media screen {
.nsfw a::after {
content: url(../18_plus.svg);
display: inline-block;
width: 1em; height: 1em;
padding-left: 0.15em;
vertical-align: -0.1em;
}
}
@media speech {
.nsfw::after {
content: ' (nsfw)';
}
}
footer {
margin: 1.5em auto 0;
font-style: italic;
}
#mutstd-note {
display: flex;
align-items: center;
justify-content: center;
}
#peace-sign {
display: block;
height: 2em;
padding-left: 0.5em;
transform: rotate(20deg);
}
@media (hover) and (prefers-reduced-motion: no-preference) {
main a:hover {
transform: scale(110%);
transition: transform 0.25s ease-in-out;
}
}
@media (pointer: coarse) {
main {
font-size: 300%;
}
.nsfw a::after {
vertical-align: baseline;
}
}