1
0
Fork 0
yummy.cricket/comms.css

110 lines
1.9 KiB
CSS
Raw Normal View History

2022-05-18 08:29:00 -04:00
@import url(base.css);
2022-05-17 22:44:15 -04:00
:root {
--img-width: 1050px;
--img-height: 875px;
}
2022-06-07 07:33:05 -04:00
main {
max-width: calc(var(--img-width) + 150px);
}
2022-05-18 08:29:00 -04:00
h1 {
font-size: 250%;
--around-image: url(media/sparkles.svg);
2022-05-17 22:44:15 -04:00
}
2022-08-04 17:18:00 -04:00
#examples dt {
position: relative;
}
2022-08-04 17:30:46 -04:00
#examples dt i {
2022-08-04 17:18:00 -04:00
display: inline-block;
2022-06-07 07:33:05 -04:00
transform: rotate(-8deg);
2022-08-04 17:18:00 -04:00
margin-left: 0.5em;
padding: 0.25em 0.75em;
2022-06-07 07:33:05 -04:00
border-radius: 0.3em;
2022-08-04 17:18:00 -04:00
font-size: 1.2rem;
2022-08-04 17:30:46 -04:00
font-style: normal;
2022-06-07 07:33:05 -04:00
background: hsl(var(--hue), 80%, 80%);
border: 2px solid hsl(var(--hue), 80%, 35%);
2022-08-04 17:18:00 -04:00
box-shadow: 8px 6px 5px hsla(0deg, 0%, 0%, 30%);
2022-06-07 07:33:05 -04:00
color: black;
text-shadow: none;
}
2022-08-04 17:18:00 -04:00
.closed { --hue: 350deg; }
.soon { --hue: 55deg; }
.open { --hue: 110deg; }
2022-06-07 07:33:05 -04:00
@media (prefers-color-scheme: dark) {
2022-08-04 17:30:46 -04:00
#examples dt i {
2022-06-07 07:33:05 -04:00
background: hsl(var(--hue), 90%, 30%);
border: 2px solid hsl(var(--hue), 80%, 15%);
2022-08-04 17:30:46 -04:00
box-shadow: none;
2022-06-07 07:33:05 -04:00
color: white;
}
2022-08-04 17:30:46 -04:00
.soon { --hue: 50deg; }
2022-06-07 07:33:05 -04:00
}
2022-05-18 08:29:00 -04:00
#examples, #examples > * {
2022-05-17 22:44:15 -04:00
height: var(--img-height);
2022-05-18 08:29:00 -04:00
width: var(--img-width);
}
2022-05-17 22:44:15 -04:00
2022-05-18 08:29:00 -04:00
#examples {
overflow: hidden;
position: relative;
}
2022-05-17 22:44:15 -04:00
2022-05-18 08:29:00 -04:00
#examples > * {
position: absolute;
top: 0px; left: 0px;
margin: 0;
2022-05-17 22:44:15 -04:00
}
2022-08-04 17:18:00 -04:00
#examples {
2022-05-17 22:44:15 -04:00
width: var(--img-width);
box-sizing: border-box;
margin: 1em auto;
border: 3px solid var(--glow-col);
border-radius: 1em;
}
2022-06-07 07:33:05 -04:00
2022-05-18 08:29:00 -04:00
#examples dl {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
2022-05-17 22:44:15 -04:00
}
2022-05-18 08:29:00 -04:00
#examples dl > * {
2022-05-17 22:44:15 -04:00
background: hsla(320deg, 40%, 20%, 60%);
margin: 0;
2022-05-18 08:29:00 -04:00
padding: 0.125em 0 0.25em;
2022-05-17 22:44:15 -04:00
}
2022-06-07 07:33:05 -04:00
#examples :is(dt, dd) { text-align: center; }
2022-05-18 08:29:00 -04:00
2022-06-07 07:33:05 -04:00
#examples dt { grid-area: 1; align-self: start; font-size: 200%; }
#examples dd { grid-area: 2; align-self: end; font-size: 300%; }
#examples a { font-weight: 700; }
2022-05-18 08:29:00 -04:00
#examples dl { pointer-events: none; }
#examples a { pointer-events: auto; }
2022-05-17 22:44:15 -04:00
2022-06-07 07:33:05 -04:00
@media (prefers-reduced-transparency) {
#status {
box-shadow: none;
}
#examples dl > * {
background: hsl(20deg, 35%, 25%);
2022-05-18 08:29:00 -04:00
}
2022-05-17 22:44:15 -04:00
}