better css (thank aki)

This commit is contained in:
Ada 2023-05-14 03:27:54 +02:00 committed by GitHub
parent aab411b7a1
commit 90a141c6c9

40
ui.css
View file

@ -1,14 +1,16 @@
:root { :root {
--main-width: 85vw; --main-width: 85vw;
--text-color: #C71585; --title-color: #C71585;
--bg-color: white; --bg-color: white;
--text-color: #212121;
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--bg-color: #212121; --bg-color: #212121;
--text-color: #FF69B4; --title-color: #FF69B4;
--text-color: white;
} }
} }
@ -21,7 +23,7 @@
html { html {
font-family: Noto Sans; font-family: system-ui;
scroll-behavior: smooth; scroll-behavior: smooth;
color: var(--text-color); color: var(--text-color);
} }
@ -31,18 +33,28 @@ body {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
background-color: var(--bg-color); background-color: var(--bg-color);
line-height: 1.65
}
h3 {
font-weight: normal;
color: var(--title-color)
}
a {
color: dodgerblue;
text-decoration: none;
transition: ease 250ms
}
a:hover {
color: var(--title-color);
text-decoration: underline;
}
h1, h2 {
font-weight: 600;
color: var(--title-color)
} }
h1 { h1 {
padding-bottom: 0; line-height: 2;
}
a {
color: var(--text-color);
text-decoration: none;
}
a:hover {
color: var(--bg-color);
text-decoration: underline;
text-decoration-color: var(--text-color);
} }