improve styling, pave way for easier theming

pull/7/head
cblgh 2022-02-16 10:43:19 +01:00
rodzic b9387d3b04
commit 1505b23624
1 zmienionych plików z 13 dodań i 6 usunięć

Wyświetl plik

@ -3,6 +3,7 @@
:root { :root {
--primary: #fefefe; --primary: #fefefe;
--secondary: #000; --secondary: #000;
--link: #fefefe;
/* alt colorscheme: 1 */ /* alt colorscheme: 1 */
/* --primary: red; */ /* --primary: red; */
/* --secondary: #fefefe; */ /* --secondary: #fefefe; */
@ -16,6 +17,11 @@ html {
font-size: 62.5%; font-size: 62.5%;
} }
body {
/* defaults for old browsers */
color: white;
background: black;
}
body { body {
font-family: "Inter UI", sans-serif; font-family: "Inter UI", sans-serif;
@ -26,9 +32,9 @@ body {
a { a {
cursor: pointer; cursor: pointer;
color: var(--primary); color: var(--link);
text-decoration: none; text-decoration: none;
border-bottom: 0.1rem solid var(--primary); border-bottom: 0.1rem solid var(--link);
word-wrap: break-word; word-wrap: break-word;
} }
@ -59,8 +65,9 @@ input[type="search"] {
border-radius: 0.16rem; border-radius: 0.16rem;
padding: 0.8rem 0.8rem 0.8rem 1.2rem; padding: 0.8rem 0.8rem 0.8rem 1.2rem;
border: 0; border: 0;
color: var(--secondary); color: var(--primary);
background: var(--primary); background: var(--secondary);
border: var(--primary) solid 0.1rem;
width: 100%; width: 100%;
max-width: 30rem; max-width: 30rem;
} }
@ -154,6 +161,7 @@ nav li {
.result__current { .result__current {
/* font-weight: bold; */ /* font-weight: bold; */
color: var(--link);
text-decoration-line: underline; text-decoration-line: underline;
} }
@ -168,7 +176,7 @@ nav li {
} }
.entry>*+* { .entry>*+* {
margin-top: 1.6rem; margin-top: 0.8rem;
} }
.entry__link { .entry__link {
@ -177,7 +185,6 @@ nav li {
.entry__text { .entry__text {
color: var(--primary); color: var(--primary);
opacity: 0.55;
line-height: 1.2; line-height: 1.2;
} }