Propagate CSS variables.

CSS variables are used for the prefers-dark, propagate them to component
CSS as well.
pull/1/head
supakeen 2 years ago
parent 0f46a4abc9
commit 3bdbde1c2f

@ -1,6 +1,8 @@
:root { :root {
--color-background: #f9f9f9; --color-background: #f9f9f9;
--color-background-attention: #ffffff;
--color-text: #000000; --color-text: #000000;
--color-text-inverted: #ffffff;
--color-text-subdued: #4f4e4e; --color-text-subdued: #4f4e4e;
--color-text-attention: teal; --color-text-attention: teal;
--color-text-warning: rgb(218, 13, 13); --color-text-warning: rgb(218, 13, 13);
@ -10,8 +12,10 @@
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--color-background: #222222; --color-background: #222222;
--color-background-attention: #000000;
--color-text: #f9f9f9; --color-text: #f9f9f9;
--color-text-subdued: #cccccc; --color-text-inverted: #ffffff;
--color-text-subdued: #f1f1f1;
--color-text-warning: rgb(218, 13, 13); --color-text-warning: rgb(218, 13, 13);
--invert: 1; --invert: 1;
} }

@ -1,6 +1,8 @@
:root { :root {
--color-background: #f9f9f9; --color-background: #f9f9f9;
--color-background-attention: #ffffff;
--color-text: #000000; --color-text: #000000;
--color-text-inverted: #ffffff;
--color-text-subdued: #4f4e4e; --color-text-subdued: #4f4e4e;
--color-text-attention: teal; --color-text-attention: teal;
--color-text-warning: rgb(218, 13, 13); --color-text-warning: rgb(218, 13, 13);
@ -10,8 +12,10 @@
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--color-background: #222222; --color-background: #222222;
--color-background-attention: #000000;
--color-text: #f9f9f9; --color-text: #f9f9f9;
--color-text-subdued: #cccccc; --color-text-inverted: #ffffff;
--color-text-subdued: #f1f1f1;
--color-text-warning: rgb(218, 13, 13); --color-text-warning: rgb(218, 13, 13);
--invert: 1; --invert: 1;
} }

@ -1,39 +1,38 @@
.query { .query {
font-size: 1.3em; font-size: 1.3rem;
background-color: white; background-color: var(--color-background-autention);
color: black; color: var(--color-text);
border: 1px solid teal; border: 1px solid var(--color-text-attention);
border-radius: 5px; border-radius: 5px;
padding: .4em .8em; padding: .4rem .8rem;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
} }
.noResults { .noResults {
padding: .6em 1em; padding: .6rem 1rem;
} }
.results { .results {
border: 1px solid teal; border: 1px solid var(--color-text-attention);
border-radius: 5px; border-radius: 5px;
/* margin-top: 1em; */
.result { .result {
border-top: 1px solid teal; border-top: 1px solid var(--color-text-attention);
padding: .6em 1em; padding: .6rem 1rem;
font-size: .8em; font-size: .8rem;
&.first { &.first {
border-top: 0; border-top: 0;
font-size: 1em font-size: 1rem
} }
.name { .name {
font-size: 1.3em; font-size: 1.3rem;
.manufacturer { .manufacturer {
color: #4f4e4e; color: var(--color-text-subdued);
margin-right: .3em; margin-right: .3rem;
} }
.model { .model {
@ -42,7 +41,7 @@
} }
.description { .description {
color: #4f4e4e; color: var(--color-text-subdued);
margin-top: .2em; margin-top: .2em;
} }
@ -55,9 +54,9 @@
margin-top: -.3em; margin-top: -.3em;
margin-right: -.7em; margin-right: -.7em;
border: 1px solid #006262; border: 1px solid var(--color-text);
background-color: #039f9f; background-color: var(--color-text-attention);
color: white; color: var(--color-text-inverted);
} }
} }
} }

Loading…
Cancel
Save