Skip to content

Commit 1b49765

Browse files
AmjadHDnarimiran
authored andcommitted
[Docs] Improve scrollbars (#24971)
Follow dark/light modes. (cherry picked from commit 9d0c0b8)
1 parent c55ee7a commit 1b49765

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

doc/nimdoc.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Modified by Boyd Greenfield and narimiran
1111
*/
1212

1313
:root {
14+
color-scheme: light;
1415
--primary-background: #fff;
1516
--secondary-background: ghostwhite;
1617
--third-background: #e8e8e8;
@@ -45,6 +46,7 @@ Modified by Boyd Greenfield and narimiran
4546
}
4647

4748
[data-theme="dark"] {
49+
color-scheme: dark;
4850
--primary-background: #171921;
4951
--secondary-background: #1e202a;
5052
--third-background: #2b2e3b;
@@ -80,6 +82,7 @@ Modified by Boyd Greenfield and narimiran
8082

8183
@media (prefers-color-scheme: dark) {
8284
[data-theme="auto"] {
85+
color-scheme: dark;
8386
--primary-background: #171921;
8487
--secondary-background: #1e202a;
8588
--third-background: #2b2e3b;

nimdoc/testproject/expected/nimdoc.out.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Modified by Boyd Greenfield and narimiran
1111
*/
1212

1313
:root {
14+
color-scheme: light;
1415
--primary-background: #fff;
1516
--secondary-background: ghostwhite;
1617
--third-background: #e8e8e8;
@@ -45,6 +46,7 @@ Modified by Boyd Greenfield and narimiran
4546
}
4647

4748
[data-theme="dark"] {
49+
color-scheme: dark;
4850
--primary-background: #171921;
4951
--secondary-background: #1e202a;
5052
--third-background: #2b2e3b;
@@ -80,6 +82,7 @@ Modified by Boyd Greenfield and narimiran
8082

8183
@media (prefers-color-scheme: dark) {
8284
[data-theme="auto"] {
85+
color-scheme: dark;
8386
--primary-background: #171921;
8487
--secondary-background: #1e202a;
8588
--third-background: #2b2e3b;

0 commit comments

Comments
 (0)