Skip to content

Commit

Permalink
Merge pull request #61 from jamesmaa/add-gradient
Browse files Browse the repository at this point in the history
Change gradient
  • Loading branch information
jamesmaa authored Oct 20, 2024
2 parents 5ccbc93 + aa3188e commit a4bd8b6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hide:
- toc
- footer
---
# <p style="text-align: center; margin-bottom: 10px; margin-top: 10px; font-size: 200%;">**Yomitan**</p>
# <p id="homepage-title">**Yomitan**</p>
## <p style="text-align: center">Powerful and versatile pop-up dictionary for language learning used by 50,000+ language learners.</p>

<div class="grid" markdown>
Expand Down
4 changes: 4 additions & 0 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
--md-primary-fg-color: #8560f5;
}

p {
margin-block-start: 0.5em;
margin-block-end: 0.5em;
Expand Down
17 changes: 17 additions & 0 deletions docs/stylesheets/homepage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#homepage-title {
text-align: center;
margin-bottom: 10px;
margin-top: 10px;
font-size: 200%;
background: linear-gradient(to right, #bc00ff, #00eeff);
background-clip: text;
color: transparent;
}

[data-md-color-scheme="slate"] {
#homepage-title {
background: linear-gradient(to right, #c013ff, #00eeff);
background-clip: text;
color: transparent;
}
}
7 changes: 3 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -100,6 +98,7 @@ plugins:

extra_css:
- stylesheets/extra.css
- stylesheets/homepage.css

copyright: |
Copyright &copy; 2024 Yomitan Authors <br>
Expand Down

0 comments on commit a4bd8b6

Please sign in to comment.