1
0
Fork 0
yummy.cricket/base.css

226 lines
4.3 KiB
CSS
Raw Permalink Normal View History

2020-06-28 20:21:02 -04:00
@import url(fonts/muller/muller.css);
2021-05-24 05:36:23 -04:00
@import url(fonts/noto/noto.css);
2020-06-28 20:21:02 -04:00
2022-05-18 08:29:00 -04:00
:root {
2023-12-28 07:10:33 -05:00
/*
--gradient:
2020-07-16 12:40:52 -04:00
linear-gradient(135deg,
2020-07-03 11:26:56 -04:00
hsl(42deg, 92%, 70%),
hsl(348deg, 92%, 70%),
hsl(334deg, 100%, 80%),
hsl(234deg, 100%, 76%),
2020-07-11 01:17:43 -04:00
hsl(195deg, 100%, 67%),
hsl(155deg, 70%, 62%)
);
2023-12-28 07:10:33 -05:00
*/
--gradient:
linear-gradient(135deg,
oklch(93% 0.16 86),
oklch(84% 0.17 15),
oklch(78% 0.18 304),
oklch(78% 0.18 233),
oklch(78% 0.18 162)
);
2022-06-07 07:31:45 -04:00
--size: 15pt;
2020-08-18 09:07:11 -04:00
--weight: 600;
2022-05-18 08:29:00 -04:00
--link-color: hsl(196deg, 100%, 85%);
--hover-color: hsl(50deg, 100%, 82%);
2020-06-28 20:21:02 -04:00
background:
image-set(url(media/bg.png) 1x,
url(media/bg_2x.png) 2x)
top center fixed,
2023-12-28 07:10:33 -05:00
var(--gradient) fixed;
background-blend-mode: overlay;
2020-06-28 20:21:02 -04:00
font-family: 'Muller';
font-size: var(--size);
2020-07-11 12:24:17 -04:00
font-weight: var(--weight);
2020-06-28 20:21:02 -04:00
color: white;
text-shadow:
1px 1px 0 black,
-1px 1px 0 black,
1px -1px 0 black,
-1px -1px 0 black,
2020-07-02 14:30:38 -04:00
4px 4px 4px hsla(0, 0%, 0%, 70%);
2020-06-28 20:21:02 -04:00
text-align: center;
2020-08-09 23:11:18 -04:00
margin: 2em 1em 0.5em;
2020-07-02 14:30:38 -04:00
}
main {
2023-12-28 07:10:33 -05:00
--default-bg: hsla(316deg, 100%, 95%, 45%);
background: var(--default-bg);
2020-07-02 14:30:38 -04:00
border-radius: 2em;
2021-05-24 03:53:45 -04:00
--glow-col: hsla(318deg, 100%, 98%, 100%);
border: 1px solid var(--glow-col);
box-shadow: 0 0 25px var(--glow-col) inset;
2020-08-09 23:11:18 -04:00
padding: 1em;
2020-07-02 14:30:38 -04:00
margin: 0 auto 1em;
2020-06-28 20:21:02 -04:00
}
header p, h1, h2, h3, h4, h5, h6 {
2020-08-18 09:07:11 -04:00
font-weight: 700;
2020-06-28 20:21:02 -04:00
margin-top: 0;
}
h1 {
font-size: 200%;
}
h2, header p {
font-size: 150%;
}
2020-08-18 09:07:11 -04:00
b {
font-weight: 800;
}
2020-06-28 20:21:02 -04:00
hr {
2021-03-31 00:57:25 -04:00
height: 4px;
2020-07-02 14:30:38 -04:00
width: 75%;
2021-05-24 03:54:30 -04:00
background-color: hsla(0, 0%, 100%, 85%);
box-shadow: 0 0 3px hsl(0, 0%, 100%, 50%);
2021-03-31 00:57:25 -04:00
border: none;
2020-06-28 20:21:02 -04:00
text-shadow: none;
margin: 20px auto;
}
2022-05-18 08:29:00 -04:00
.ipa {
font-family: NotoSans;
font-weight: 900;
font-size: 90%;
2020-06-28 20:21:02 -04:00
}
2021-05-25 10:03:05 -04:00
a[href] {
2022-05-18 08:29:00 -04:00
color: var(--link-color);
2020-08-18 09:07:11 -04:00
font-weight: 800;
2020-06-28 20:21:02 -04:00
text-decoration: none;
transition: color 0.2s ease-in-out;
}
2021-05-25 10:03:27 -04:00
a[href]:where(:hover,:focus) {
2022-05-18 08:29:00 -04:00
color: var(--hover-color);
2020-06-28 20:21:02 -04:00
}
2020-07-02 14:30:38 -04:00
2022-05-30 10:49:25 -04:00
dl {
display: grid;
grid-template-columns: repeat(4, auto);
grid-row-gap: 6px;
2022-08-14 21:51:49 -04:00
grid-column-gap: 1em;
justify-content: center;
2022-05-30 10:49:25 -04:00
}
dt {
text-align: right;
2022-12-30 13:37:17 -05:00
margin: 0;
2022-05-30 10:49:25 -04:00
}
dd {
font-weight: 700;
text-align: left;
2022-12-30 13:37:17 -05:00
margin: 0;
2022-05-30 10:49:25 -04:00
}
:is(rt, h1, h2)::before, :is(rt, h1, h2)::after {
2020-07-02 15:50:01 -04:00
padding: 0 0.25em;
vertical-align: middle;
2020-08-09 23:10:33 -04:00
display: inline-block;
height: 1em; width: 1em;
mix-blend-mode: overlay;
content: var(--around-image);
2020-07-02 15:50:01 -04:00
}
2022-06-07 07:31:45 -04:00
rt::before { margin-left: -1.25em; }
rt::after { margin-right: -1.25em; }
2021-05-24 03:51:58 -04:00
2020-07-03 14:05:11 -04:00
/* hacky fix for firefox mobile 68 freaking out at blend modes ☹ */
@media (-moz-touch-enabled) {
2022-06-07 07:31:45 -04:00
:root {
2020-07-03 14:05:11 -04:00
background: var(--gradient) fixed;
background-blend-mode: initial;
}
}
2022-05-30 10:49:25 -04:00
.emojo {
vertical-align: middle;
height: 1.2em; width: 1.2em;
}
2024-03-02 12:23:17 -05:00
.pixel {
/* firefox doesn't support "pixelated" but does treat "crisp-edges"
* to mean that */
image-rendering: crisp-edges;
image-rendering: pixelated;
}
/******************************/
/* actual accessibility stuff */
/******************************/
@media (prefers-reduced-motion: reduce) {
/* see also the alternate source in #mlem > picture */
.mlem-text {
display: none;
}
}
@media (prefers-contrast: high), (prefers-color-scheme: dark) {
2022-06-07 07:31:45 -04:00
:root {
2023-12-28 07:10:33 -05:00
/*
--gradient:
2020-08-09 23:10:45 -04:00
linear-gradient(135deg,
hsl(42deg, 56%, 55%),
hsl(348deg, 56%, 55%),
hsl(334deg, 60%, 43%),
hsl(234deg, 60%, 40%),
2020-07-11 01:17:43 -04:00
hsl(195deg, 60%, 44%),
hsl(155deg, 60%, 55%)
);
2023-12-28 07:10:33 -05:00
*/
--gradient:
linear-gradient(135deg,
/* oklch(33% 0.16 86), */
oklch(30% 0.17 15),
oklch(30% 0.18 304),
oklch(30% 0.18 233),
oklch(30% 0.18 162)
);
background:
2021-06-07 17:49:57 -04:00
image-set(url(media/bg_dim.png) 1x,
url(media/bg_2x_dim.png) 2x)
top center fixed,
2022-06-07 07:31:45 -04:00
var(--gradient) fixed;
2023-12-28 07:10:33 -05:00
background-blend-mode: multiply;
}
main {
2023-12-28 07:10:33 -05:00
--default-bg: hsla(0, 0%, 0%, 60%);
2021-05-24 03:53:45 -04:00
--glow-col: hsla(0, 0%, 0%, 60%);
}
:is(#links ul, rt, h1, h2)::before, :is(#links ul, rt, h1, h2)::after {
mix-blend-mode: screen;
}
hr {
background: white;
}
}
@media (prefers-reduced-transparency) {
2022-06-07 07:31:45 -04:00
:root {
background: var(--gradient) fixed;
background-blend-mode: initial;
}
:is(#links ul, rt, h1, h2)::before, :is(#links ul, rt, h1, h2)::after {
mix-blend-mode: initial;
}
}