From f6c2e2c20d978a33233940612de32b8ba7ed4110 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 7 May 2024 15:44:06 +1000 Subject: [PATCH] Fix #4530. Fix various styling issues on docs. --- src/blenderbim/docs/_static/custom.css | 4 ++++ src/blenderbim/docs/conf.py | 6 ++++++ src/ifcopenshell-python/docs/_static/custom.css | 4 ++++ src/ifcopenshell-python/docs/conf.py | 6 ++++++ 4 files changed, 20 insertions(+) diff --git a/src/blenderbim/docs/_static/custom.css b/src/blenderbim/docs/_static/custom.css index 03f5b9016f..f6939f3ac5 100644 --- a/src/blenderbim/docs/_static/custom.css +++ b/src/blenderbim/docs/_static/custom.css @@ -8,6 +8,9 @@ h1, h2, h3, h4 { -webkit-background-clip: text; -webkit-text-fill-color: transparent; } +h1 code.literal { + background: none; +} a { text-decoration: none; } @@ -16,6 +19,7 @@ a { } .sidebar-brand-text { font-size: 1rem; + text-align: center; } .blockbutton { max-width: 500px; diff --git a/src/blenderbim/docs/conf.py b/src/blenderbim/docs/conf.py index 69afbca790..aaf5908bf0 100644 --- a/src/blenderbim/docs/conf.py +++ b/src/blenderbim/docs/conf.py @@ -95,7 +95,10 @@ html_theme_options = { "color-background-border": "#cfd0cb", "color-foreground-primary": "#2e3436", "color-sidebar-item-background--hover": "#f7f7f6", + "color-link": "#39b54a", + "color-link--visited": "#39b54a", "color-link--hover": "#d98014", + "color-link--visited--hover": "#d98014", "font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" }, "dark_css_variables": { @@ -106,7 +109,10 @@ html_theme_options = { "color-background-border": "#2e3436", "color-foreground-primary": "#eeeeec", "color-sidebar-item-background--hover": "#2e3436", + "color-link": "#39b54a", + "color-link--visited": "#39b54a", "color-link--hover": "#d98014", + "color-link--visited--hover": "#d98014", "font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" }, diff --git a/src/ifcopenshell-python/docs/_static/custom.css b/src/ifcopenshell-python/docs/_static/custom.css index c1e237ec6c..a32a849707 100644 --- a/src/ifcopenshell-python/docs/_static/custom.css +++ b/src/ifcopenshell-python/docs/_static/custom.css @@ -8,6 +8,9 @@ h1, h2, h3, h4 { -webkit-background-clip: text; -webkit-text-fill-color: transparent; } +h1 code.literal { + background: none; +} a { text-decoration: none; } @@ -16,6 +19,7 @@ a { } .sidebar-brand-text { font-size: 1rem; + text-align: center; } .blockbutton { max-width: 500px; diff --git a/src/ifcopenshell-python/docs/conf.py b/src/ifcopenshell-python/docs/conf.py index 23b45563c1..6537ba29f8 100644 --- a/src/ifcopenshell-python/docs/conf.py +++ b/src/ifcopenshell-python/docs/conf.py @@ -130,7 +130,10 @@ html_theme_options = { "color-background-border": "#cfd0cb", "color-foreground-primary": "#2e3436", "color-sidebar-item-background--hover": "#f7f7f6", + "color-link": "#39b54a", + "color-link--visited": "#39b54a", "color-link--hover": "#d98014", + "color-link--visited--hover": "#d98014", "font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" }, "dark_css_variables": { @@ -141,7 +144,10 @@ html_theme_options = { "color-background-border": "#2e3436", "color-foreground-primary": "#eeeeec", "color-sidebar-item-background--hover": "#2e3436", + "color-link": "#39b54a", + "color-link--visited": "#39b54a", "color-link--hover": "#d98014", + "color-link--visited--hover": "#d98014", "font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" },