From 9ae669d9c32a7cb8f2ff174eb058631ed93c593a Mon Sep 17 00:00:00 2001 From: "Andrew Speciale (@liquidz00)" Date: Thu, 1 Aug 2024 19:38:59 -0400 Subject: [PATCH] Add custom.css --- docs/_static/css/custom.css | 27 +++++++++++++++++++++++++++ docs/conf.py | 6 +++++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 docs/_static/css/custom.css diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css new file mode 100644 index 0000000..1a1280a --- /dev/null +++ b/docs/_static/css/custom.css @@ -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 */ +} diff --git a/docs/conf.py b/docs/conf.py index b5e0330..f7ea00e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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", @@ -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",