Skip to content

Commit

Permalink
Merge pull request #40 from andrewgryan/docs/color
Browse files Browse the repository at this point in the history
Docs/color
  • Loading branch information
andrewgryan authored Jul 31, 2024
2 parents e84888f + ba02b77 commit e3f5922
Showing 1 changed file with 73 additions and 7 deletions.
80 changes: 73 additions & 7 deletions docs/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,55 @@
@import url("https://fonts.googleapis.com/css2?family=Saira+Stencil+One&display=swap");

:root {
--accent: hsl(160deg 70% 50%);
--font-family: "Saira Stencil One", system-ui;
}

:root {
--surface-table: var(--gray-2);
--surface-table-head: var(--gray-9);
--text-table-head: var(--gray-1);
}

@media (prefers-color-scheme: light) {
:root {
--text: var(--gray-9);
--surface: white;
--text-negative: var(--surface);
--surface-negative: var(--text);
}
}

@media (prefers-color-scheme: dark) {
:root {
--text: white;
--surface: var(--gray-9);
--text-negative: var(--surface);
--surface-negative: var(--text);
--surface-table: var(--gray-9);
--surface-table-head: var(--gray-9);
--text-table-head: var(--accent);
}

.leaflet-tile-pane {
filter: grayscale();
}

pre {
color: var(--text) !important;
background-color: var(--surface) !important;
font-size: 1rem;
}

code {
filter: brightness(1.5);
}

a {
color: var(--accent);
}
}

l-map {
display: block;
block-size: 40ch;
Expand All @@ -27,6 +73,8 @@ body {
grid-template-columns: 1fr;
grid-template-rows: auto 1fr auto;
row-gap: 1ch;
color: var(--text);
background-color: var(--surface);
}

h1,
Expand All @@ -38,6 +86,18 @@ th {
font-style: normal;
}

@keyframes gentleColors {
0% {
background-position: 100% 50%;
}
50% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}

h1 {
--angle: 160deg;
--color-1: hsl(var(--angle) 70% 50%);
Expand All @@ -61,10 +121,15 @@ h1 {
var(--color-2) 75%,
var(--color-3) 75%
);
background-size: 200% 100%;
background-clip: text;
-webkit-background-clip: text;

animation: 30s gentleColors ease infinite;
}



pre {
padding-inline: 0.75rem;
padding-block: 0.5rem;
Expand All @@ -80,7 +145,7 @@ main {

nav {
z-index: 2;
background-color: white;
background-color: var(--surface);
position: sticky;
top: 0;
display: flex;
Expand All @@ -95,35 +160,36 @@ nav {
display: flex;
align-items: center;
gap: var(--size-1);
color: var(--gray-9);
color: var(--text);
}
}

footer {
margin-block-start: auto;
min-height: 15ch;
background-color: var(--gray-9);
background-color: var(--surface-negative);
padding: var(--size-3);

& .logo {
color: white;
color: var(--text-negative);
font-size: var(--font-size-0);
text-transform: uppercase;
font-family: var(--font-family);
}
}


table {
inline-size: 100%;
background-color: var(--gray-2);
background-color: var(--surface-table);
border-radius: var(--size-1);
border-collapse: collapse;
overflow: hidden;
}

th {
background-color: var(--gray-9);
color: var(--gray-1);
background-color: var(--surface-table-head);
color: var(--text-table-head);
}

td,
Expand Down

0 comments on commit e3f5922

Please sign in to comment.