Skip to content

Commit 11e7df3

Browse files
committed
variant: set browser scrollbar color to dark for dark variants matcornic#471
1 parent d62e2f7 commit 11e7df3

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

static/css/theme-blue.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- remove the following `@import` of the self-defined chroma stylesheet */
66
@import "chroma-learn.css";
77

8+
:root {
9+
color-scheme: only light; /* set browser scrollbar color */
10+
}
11+
812
:root {
913
--MAIN-TEXT-color: #323232; /* Color of text by default */
1014
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5-h6 */

static/css/theme-green.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- remove the following `@import` of the self-defined chroma stylesheet */
66
@import "chroma-learn.css";
77

8+
:root {
9+
color-scheme: only light; /* set browser scrollbar color */
10+
}
11+
812
:root {
913
--MAIN-TEXT-color: #323232; /* Color of text by default */
1014
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5-h6 */

static/css/theme-learn.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- remove the following `@import` of the self-defined chroma stylesheet */
66
@import "chroma-learn.css";
77

8+
:root {
9+
color-scheme: only light; /* set browser scrollbar color */
10+
}
11+
812
:root {
913
--MAIN-TEXT-color: #323232; /* Color of text by default */
1014
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5-h6 */

static/css/theme-neon.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
ignore this variant in IE completely */
1010
@supports not (-ms-high-contrast:none) {
1111

12+
:root {
13+
color-scheme: only dark; /* set browser scrollbar color */
14+
}
15+
1216
:root {
1317
--PRIMARY-color: #f300b2; /* brand primary color */
1418
--SECONDARY-color: #1c90f3; /* brand secondary color */

static/css/theme-red.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- remove the following `@import` of the self-defined chroma stylesheet */
66
@import "chroma-learn.css";
77

8+
:root {
9+
color-scheme: only light; /* set browser scrollbar color */
10+
}
11+
812
:root {
913
--MAIN-TEXT-color: #323232; /* Color of text by default */
1014
--MAIN-TITLES-TEXT-color: #5e5e5e; /* Color of titles h2-h3-h4-h5-h6 */

static/css/theme-relearn-dark.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- remove the following `@import` of the self-defined chroma stylesheet */
66
@import "chroma-relearn-dark.css";
77

8+
:root {
9+
color-scheme: only dark; /* set browser scrollbar color */
10+
}
11+
812
:root {
913
--PRIMARY-color: #7dc903; /* brand primary color */
1014
--SECONDARY-color: #6c8ce3; /* brand secondary color */

static/css/theme-relearn-light.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
- remove the following `@import` of the self-defined chroma stylesheet */
66
@import "chroma-relearn-light.css";
77

8+
:root {
9+
color-scheme: only light; /* set browser scrollbar color */
10+
}
11+
812
:root {
913
--PRIMARY-color: #7dc903; /* brand primary color */
1014
--SECONDARY-color: #486ac9; /* brand secondary color */

0 commit comments

Comments
 (0)