[Docs] Improve scrollbars (#24971)

Follow dark/light modes.

(cherry picked from commit 9d0c0b89f2)
This commit is contained in:
Amjad Ben Hedhili
2025-06-06 14:08:47 +01:00
committed by narimiran
parent c55ee7a191
commit 1b49765122
2 changed files with 6 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ Modified by Boyd Greenfield and narimiran
*/
:root {
color-scheme: light;
--primary-background: #fff;
--secondary-background: ghostwhite;
--third-background: #e8e8e8;
@@ -45,6 +46,7 @@ Modified by Boyd Greenfield and narimiran
}
[data-theme="dark"] {
color-scheme: dark;
--primary-background: #171921;
--secondary-background: #1e202a;
--third-background: #2b2e3b;
@@ -80,6 +82,7 @@ Modified by Boyd Greenfield and narimiran
@media (prefers-color-scheme: dark) {
[data-theme="auto"] {
color-scheme: dark;
--primary-background: #171921;
--secondary-background: #1e202a;
--third-background: #2b2e3b;

View File

@@ -11,6 +11,7 @@ Modified by Boyd Greenfield and narimiran
*/
:root {
color-scheme: light;
--primary-background: #fff;
--secondary-background: ghostwhite;
--third-background: #e8e8e8;
@@ -45,6 +46,7 @@ Modified by Boyd Greenfield and narimiran
}
[data-theme="dark"] {
color-scheme: dark;
--primary-background: #171921;
--secondary-background: #1e202a;
--third-background: #2b2e3b;
@@ -80,6 +82,7 @@ Modified by Boyd Greenfield and narimiran
@media (prefers-color-scheme: dark) {
[data-theme="auto"] {
color-scheme: dark;
--primary-background: #171921;
--secondary-background: #1e202a;
--third-background: #2b2e3b;