From 72127d6e5638c255c27ef02a0f2a19d1a713e9e0 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Sun, 20 Oct 2024 10:34:17 -0700 Subject: [PATCH 1/6] hange gradient --- docs/index.md | 2 +- docs/stylesheets/extra.css | 4 ++++ docs/stylesheets/homepage.css | 9 +++++++++ mkdocs.yml | 7 +++---- 4 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 docs/stylesheets/homepage.css diff --git a/docs/index.md b/docs/index.md index bdafae3..237c426 100644 --- a/docs/index.md +++ b/docs/index.md @@ -6,7 +6,7 @@ hide: - toc - footer --- -#

**Yomitan**

+#

**Yomitan**

##

Powerful and versatile pop-up dictionary for language learning used by 50,000+ language learners.

diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index c3a9f34..c1e3878 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,3 +1,7 @@ +:root { + --md-primary-fg-color: #8F2DFF; +} + p { margin-block-start: 0.5em; margin-block-end: 0.5em; diff --git a/docs/stylesheets/homepage.css b/docs/stylesheets/homepage.css new file mode 100644 index 0000000..ac7107c --- /dev/null +++ b/docs/stylesheets/homepage.css @@ -0,0 +1,9 @@ +#homepage-title { + text-align: center; + margin-bottom: 10px; + margin-top: 10px; + font-size: 200%; + background: linear-gradient(45deg, #BC00FF, #00B9FE); + background-clip: text; + color: transparent; +} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index a87b090..bba117f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -39,15 +39,13 @@ theme: toggle: icon: material/weather-night name: Switch to dark mode - primary: purple - accent: pink + primary: custom - media: "(prefers-color-scheme: dark)" scheme: slate toggle: icon: material/white-balance-sunny name: Switch to light mode - primary: deep purple - accent: indigo + primary: custom extra: social: @@ -100,6 +98,7 @@ plugins: extra_css: - stylesheets/extra.css + - stylesheets/homepage.css copyright: | Copyright © 2024 Yomitan Authors
From 725a64aed0cb7cc697624adbad0856934a5e67e9 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Sun, 20 Oct 2024 10:51:16 -0700 Subject: [PATCH 2/6] Add different gradient for dark mode --- docs/stylesheets/homepage.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/stylesheets/homepage.css b/docs/stylesheets/homepage.css index ac7107c..2cd3517 100644 --- a/docs/stylesheets/homepage.css +++ b/docs/stylesheets/homepage.css @@ -3,7 +3,15 @@ margin-bottom: 10px; margin-top: 10px; font-size: 200%; - background: linear-gradient(45deg, #BC00FF, #00B9FE); + background: linear-gradient(to right, #bc00ff, #00eeff); background-clip: text; color: transparent; +} + +[data-md-color-scheme="slate"] { + #homepage-title { + background: linear-gradient(to right, #bb00ff, #00d0ff); + background-clip: text; + color: transparent; + } } \ No newline at end of file From 53a19af7e5e28765c33ec122055fc0eadfa562b2 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Sun, 20 Oct 2024 10:53:30 -0700 Subject: [PATCH 3/6] Add different gradient for dark mode --- docs/stylesheets/homepage.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/stylesheets/homepage.css b/docs/stylesheets/homepage.css index 2cd3517..f7f53bd 100644 --- a/docs/stylesheets/homepage.css +++ b/docs/stylesheets/homepage.css @@ -10,7 +10,7 @@ [data-md-color-scheme="slate"] { #homepage-title { - background: linear-gradient(to right, #bb00ff, #00d0ff); + background: linear-gradient(to right, #c013ff, #00eeff); background-clip: text; color: transparent; } From bcb3ffb585aa5072601ec06f59ea2b3ca6c4518b Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Sun, 20 Oct 2024 10:58:28 -0700 Subject: [PATCH 4/6] Futz with color --- docs/stylesheets/extra.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index c1e3878..147b555 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,5 +1,5 @@ :root { - --md-primary-fg-color: #8F2DFF; + --md-primary-fg-color: #715fff; } p { From 34794fbbebc8261eedc784ee12974914ff6d9254 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Sun, 20 Oct 2024 11:01:03 -0700 Subject: [PATCH 5/6] Futz with color --- docs/stylesheets/extra.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 147b555..4cbb076 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,5 +1,5 @@ :root { - --md-primary-fg-color: #715fff; + --md-primary-fg-color: #734aee; } p { From aa3188e13da85c4fb18f8afa4b933d9884c031b4 Mon Sep 17 00:00:00 2001 From: jamesmaa Date: Sun, 20 Oct 2024 11:02:32 -0700 Subject: [PATCH 6/6] Color --- docs/stylesheets/extra.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 4cbb076..7ce2870 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -1,5 +1,5 @@ :root { - --md-primary-fg-color: #734aee; + --md-primary-fg-color: #8560f5; } p {