Finally fix styles

This commit is contained in:
Jan-Lukas Else 2021-11-15 22:47:00 +01:00
parent 2855c4724e
commit 19bb3e62ed
2 changed files with 9 additions and 6 deletions

View File

@ -53,12 +53,14 @@ body {
word-break: break-word;
overflow-wrap: break-word;
*:not([class*='c-']) {
@include color(color, primary);
}
* {
@include color(color, primary);
max-width: 100%;
}
[class*='c-'] {
// monokai is dark, so we need to use light color for text
color: #{map-get($colors, primary-dark)};
}
*::selection {
@include color(color, background);
@include color(background, primary);

View File

@ -30,13 +30,14 @@ body {
word-break: break-word;
overflow-wrap: break-word;
}
body *:not([class*=c-]) {
body * {
color: #000;
color: var(--primary, #000);
}
body * {
max-width: 100%;
}
body [class*=c-] {
color: #fff;
}
body *::selection {
color: #fff;
color: var(--background, #fff);