Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 22 additions & 45 deletions assets/styles/essential.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,21 @@ global CSS variables
themes
--------------------------------------------------------------*/

:root,
:root.scheme--light,
.scheme--light {
--page-color: 221, 238, 255;
--text-color: 34, 34, 50;
--hyperlink-color: 34, 34, 50;
--accent-color: 0, 0, 255;
--text-color-inverted: 255, 255, 255;

--blend-mode: multiply;
--blend-filter: none;
}

:root.scheme--dark,
.scheme--dark {
--page-color: 34, 34, 34;
--text-color: 204, 204, 204;
--hyperlink-color: 204, 204, 204;
--accent-color: 205, 35, 185;
--text-color-inverted: 20, 20, 20;

--blend-filter: invert(100);
--blend-mode: screen;
}

@media (prefers-color-scheme: dark) {
:root {
--page-color: 34, 34, 34;
--text-color: 204, 204, 204;
--hyperlink-color: 204, 204, 204;
--accent-color: 205, 35, 185;
--text-color-inverted: 20, 20, 20;

--blend-filter: invert(100);
--blend-mode: screen;
}
:root {
color-scheme: light dark;
--page-color: light-dark(210 100% 93%, 0 0% 13%);
--text-color: light-dark(240 19% 16%, 0 0% 80%);
--hyperlink-color: light-dark(240 19% 16%, 0 0% 80%);
--accent-color: light-dark(240 100% 50%, 307 71% 47%);
--text-color-inverted: light-dark(0 0% 100%, 0 0% 8%);

--blend-mode: light-dark(multiply, screen);
--blend-filter: light-dark(none, invert(100));
}

.scheme--light { color-scheme: light; }
.scheme--dark { color-scheme: dark; }


/*--------------------------------------------------------------
reset styles
Expand Down Expand Up @@ -116,10 +93,10 @@ html {

body {
padding: var(--baseline);
background: rgb(var(--page-color));
background: hsl(var(--page-color));
font-family: var(--font-serif);
font-size: 1.1rem;
color: rgb(var(--text-color));
color: hsl(var(--text-color));
}

body > header,
Expand All @@ -130,7 +107,7 @@ body > footer {
}

a {
color: rgb(var(--hyperlink-color));
color: hsl(var(--hyperlink-color));
text-decoration: underline;
}

Expand Down Expand Up @@ -195,13 +172,13 @@ a:active {

a,
a:visited {
color: rgb(var(--hyperlink-color));
outline-color: rgb(var(--accent-color));
color: hsl(var(--hyperlink-color));
outline-color: hsl(var(--accent-color));
}

a:hover,
a:active {
color: rgb(var(--accent-color));
color: hsl(var(--accent-color));
}


Expand Down Expand Up @@ -274,7 +251,7 @@ language selector
.languages ul li {
display: inline-block;
margin: 0;
padding-left: 0.5rem;
padding-inline-start: 0.5rem;

text-align: right;
}
Expand Down Expand Up @@ -303,12 +280,12 @@ article {
}

article:focus-within {
outline: 0.5px solid rgb(var(--accent-color));
outline: 0.5px solid hsl(var(--accent-color));
}

article:hover > *,
article:focus-within * {
color: rgb(var(--accent-color));
color: hsl(var(--accent-color));
outline: none;
}

Expand Down
Loading
Loading