1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adopt docs color palette to lens styleguide + makes dark theme default (#2804)

Signed-off-by: Mario Sarcher <mario@sarcher.de>
This commit is contained in:
Mario Sarcher 2021-05-18 17:26:13 +02:00 committed by GitHub
parent 683e5926e0
commit eacf9399c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 5 deletions

View File

@ -5,13 +5,38 @@
:root > * {
/* Footer */
--md-footer-bg-color: #3d90ce;
--md-footer-bg-color: #e8e8e8;
--md-footer-bg-color--dark: #cccdcf;
--md-footer-fg-color: #3d90ce;
--md-footer-fg-color--light: #fff;
/* Background */
--md-default-bg-color: #f1f1f1;
}
[data-md-color-scheme="slate"] {
/* Footer */
--md-footer-bg-color: #2e3136;
--md-footer-bg-color--dark: #262b2f;
--md-footer-fg-color: #3d90ce;
--md-footer-fg-color--light: #fff;
/* Background */
--md-default-bg-color: #1e2124;
}
.md-version__list {
overflow: auto;
}
.md-header-nav__title {
margin-left: 0;
}
.md-header__title {
margin-left: 0;
}
ul.video-list {
counter-reset: section;
list-style: none;

View File

@ -59,13 +59,13 @@ theme:
favicon: img/favicon.ico
logo: img/lens-logo-icon.svg
palette:
- scheme: default
toggle:
icon: material/toggle-switch
name: Switch to light mode
- scheme: slate
toggle:
icon: material/toggle-switch-off-outline
name: Switch to light mode
- scheme: default
toggle:
icon: material/toggle-switch
name: Switch to dark mode
features:
- toc.autohide