Skip to content

Commit

Permalink
Add custom.css
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz00 committed Aug 1, 2024
1 parent 4c3e6be commit 9ae669d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
27 changes: 27 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
:root {
/* Override primary and secondary theme colors */
--pst-color-primary: #4bb3fdff; /* Dodger Blue */
--pst-color-secondary: #6432bdff; /* Grape */

/* Override hover colors */
--pst-color-link-hover: #2a9df4; /* Lighter Dodger Blue for hover */
--pst-color-button-hover-bg: #3C1E71; /* Grape for button hover background */
--pst-color-button-hover-text: #ffffff; /* White text for button hover */

/* If buttons have a secondary hover color */
--pst-color-button-secondary-hover-bg: #3C1E71; /* Darker Grape for secondary button hover */
}

html[data-theme="light"] {
/* Custom colors for the light theme */
--pst-color-primary: #4bb3fdff; /* Dodger Blue */
--pst-color-secondary: #6432bdff; /* Grape */
--pst-color-link-hover: #2a9df4; /* Lighter Dodger Blue */
}

html[data-theme="dark"] {
/* Custom colors for the dark theme */
--pst-color-primary: #4bb3fdff; /* Dodger Blue */
--pst-color-secondary: #9d7eea; /* Lighter Grape */
--pst-color-link-hover: #2a9df4; /* Lighter Dodger Blue */
}
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
html_static_path = ["_static"]
html_title = "Patcher"

html_css_files = ["css/custom.css"]

html_theme_options = {
"navbar_align": "left",
"announcement": "https://raw.githubusercontent.com/liquidz00/Patcher/main/docs/_templates/custom-template.html",
Expand Down Expand Up @@ -98,7 +100,9 @@
}

# Remove ethical ads from the sidebar
html_sidebars = {"**": ["sidebar-nav-bs"], "contributing/index": []}
html_sidebars = {
"contributing/index": [],
}

html_context = {
"default_mode": "auto",
Expand Down

0 comments on commit 9ae669d

Please # to comment.