gallery/style/tum/index.css

114 lines
1.6 KiB
CSS
Raw Normal View History

2020-07-17 06:29:13 -04:00
@import url(base.css);
body {
width: 40em;
}
2020-07-20 16:40:34 -04:00
.list {
2020-07-17 06:29:13 -04:00
display: grid;
2020-07-17 09:52:13 -04:00
align-items: center;
2020-07-19 06:22:02 -04:00
--gap: 0.05em;
grid-gap: var(--gap);
background: var(--text);
2020-07-17 06:29:13 -04:00
margin: 0;
padding: 0;
font-size: 150%;
font-weight: 600;
}
2020-07-20 16:40:34 -04:00
#gallery-list {
2020-07-19 06:22:02 -04:00
grid-template-columns: repeat(2, 50%);
}
2020-07-20 16:40:34 -04:00
#link-list {
2020-07-19 06:22:02 -04:00
grid-template-columns: 100%;
}
2020-07-20 16:40:34 -04:00
#gallery-list + #link-list {
2020-07-19 06:22:02 -04:00
padding-top: var(--gap);
}
2020-07-20 16:40:34 -04:00
.list a {
2020-07-17 06:29:13 -04:00
display: block;
font-weight: inherit;
color: var(--text);
padding: 0.5em;
}
2020-07-20 16:40:34 -04:00
.list a:hover {
2020-07-17 06:29:13 -04:00
text-decoration: none;
}
2020-07-20 16:40:34 -04:00
.list li {
2020-07-17 06:29:13 -04:00
list-style: none;
text-align: center;
2020-07-17 09:52:13 -04:00
height: 100%;
display: flex;
align-items: center;
justify-content: center;
2020-07-17 06:29:13 -04:00
}
2020-07-20 16:40:34 -04:00
#gallery-list li {
2020-07-19 06:22:02 -04:00
background: var(--green);
2020-07-17 06:29:13 -04:00
}
2020-07-19 06:22:02 -04:00
li.nsfw {
background: var(--red);
2020-07-17 06:29:13 -04:00
}
2020-07-19 06:22:02 -04:00
.link-list li {
background: var(--yellow);
2020-07-17 06:29:13 -04:00
}
2020-07-20 16:40:34 -04:00
@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 {
2020-07-21 04:57:05 -04:00
content: ' (some nsfw)';
2020-07-20 16:40:34 -04:00
}
2020-07-18 05:47:50 -04:00
}
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);
2020-07-17 09:52:13 -04:00
}
@media (hover) and (prefers-reduced-motion: no-preference) {
2020-07-19 06:22:02 -04:00
main a:hover {
2020-07-17 09:52:13 -04:00
transform: scale(110%);
transition: transform 0.25s ease-in-out;
}
}
@media (pointer: coarse) {
2020-07-19 06:22:02 -04:00
main {
2020-07-17 09:52:13 -04:00
font-size: 300%;
}
.nsfw a::after {
vertical-align: baseline;
}
2020-07-17 06:29:13 -04:00
}