1
0
Fork 0
yummy.cricket/style.css

256 lines
4.5 KiB
CSS
Raw 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
2020-07-03 11:27:26 -04:00
body {
--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%)
);
2021-05-24 05:40:56 -04:00
--bg-image: url(media/niss_uwu_bg.png);
--size: 1.75rem;
2020-08-18 09:07:11 -04:00
--weight: 600;
2020-06-28 20:21:02 -04:00
background:
var(--bg-image) top center fixed,
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 {
2021-05-24 03:53:45 -04:00
background: hsla(316deg, 100%, 95%, 45%);
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
}
main {
max-width: 35em;
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
#mlem {
2020-07-02 15:50:01 -04:00
margin: 36px auto -50px;
2020-06-28 20:21:02 -04:00
position: relative;
height: 219px;
width: 420px;
}
.mlem-text {
font-size: var(--size);
2020-06-28 20:21:02 -04:00
position: absolute;
font-weight: 700;
2020-07-02 14:30:38 -04:00
margin: 0;
2020-06-28 20:21:02 -04:00
}
2020-07-02 14:30:38 -04:00
.niss { bottom: 100%; left: 20px; }
.nisse { bottom: 85%; right: 0; }
#mlem picture {
2021-05-24 03:53:45 -04:00
filter: drop-shadow(0 0 30px var(--glow-col));
2020-06-28 20:21:02 -04:00
}
2020-07-02 14:30:38 -04:00
header {
2020-07-02 15:50:01 -04:00
margin: 0;
2020-06-28 20:21:02 -04:00
ruby-position: under;
}
2020-07-02 15:50:01 -04:00
header h1 {
margin-top: 0;
}
rt {
2020-06-28 20:21:02 -04:00
font-size: 60%;
font-style: italic;
}
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;
}
dl {
display: grid;
width: 30em;
margin: auto;
grid-template-columns: 1fr 2fr 1fr 2fr;
grid-row-gap: 6px;
}
dt {
text-align: right;
}
dd {
2020-08-18 09:07:11 -04:00
font-weight: 700;
2020-06-28 20:21:02 -04:00
text-align: left;
}
2020-07-11 00:14:39 -04:00
@media (hover) {
[title] {
text-decoration: dotted underline;
text-decoration-thickness: 2px;
}
[title]::after {
2021-05-24 05:40:56 -04:00
content: url(media/info.svg);
2020-08-09 23:10:33 -04:00
display: inline-block;
width: 0.75em; height: 0.75em;
vertical-align: text-top;
}
2020-07-11 00:14:39 -04:00
}
@media (hover: none) {
[title]::after {
content: attr(title);
font-size: 75%;
2020-07-11 12:24:17 -04:00
font-weight: var(--weight);
2020-07-11 00:14:39 -04:00
display: inline-block;
}
2020-06-28 20:21:02 -04:00
}
a {
2020-07-02 14:12:49 -04:00
color: hsl(196deg, 100%, 85%);
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;
}
a:hover {
color: hsl(50deg, 100%, 82%);
2020-06-28 20:21:02 -04:00
}
2020-07-02 14:30:38 -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
}
2021-05-24 05:40:56 -04:00
rt { --around-image: url(media/star.svg); }
h1, h2 { --around-image: url(media/sparkles.svg); }
2020-07-02 15:50:01 -04:00
.emojo {
vertical-align: middle;
2020-08-09 23:10:33 -04:00
height: 1.2em; width: 1.2em;
2020-07-02 15:50:01 -04:00
}
2020-12-16 12:39:55 -05:00
.ipa {
2021-05-24 05:36:23 -04:00
font-family: NotoSans;
font-weight: 900;
2020-12-16 12:39:55 -05:00
font-size: 90%;
}
2020-07-03 14:05:11 -04:00
2021-05-24 03:51:58 -04:00
#links ul {
display: flex;
justify-content: center;
align-items: center;
grid-column-gap: 2em;
margin: auto;
padding: 0;
font-size: 150%;
}
#links li { list-style: none; }
2020-07-03 14:05:11 -04:00
/* hacky fix for firefox mobile 68 freaking out at blend modes ☹ */
@media (-moz-touch-enabled) {
body {
background: var(--gradient) fixed;
background-blend-mode: initial;
}
}
/******************************/
/* actual accessibility stuff */
/******************************/
@media (prefers-reduced-motion: reduce) {
/* see also the alternate source in #mlem > picture */
.mlem-text {
display: none;
}
}
/* ~the "not actually supported by browsers yet" zone~ */
@media (prefers-contrast: high), (prefers-color-scheme: dark) {
body {
--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%)
);
2021-05-24 05:40:56 -04:00
--bg-image: url(media/niss_uwu_bg_dim.png);
}
main {
background: 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) {
body {
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;
}
}