From a19c09a57ecb450beb25bd553062544c001eaa9f Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:21:59 -0400 Subject: [PATCH] DOC: Fix logos and dark mode --- docs/_static/jdaviz.css | 62 +---------------------------------------- docs/conf.py | 1 + docs/index.rst | 5 ++-- 3 files changed, 4 insertions(+), 64 deletions(-) diff --git a/docs/_static/jdaviz.css b/docs/_static/jdaviz.css index 94ff946b6f..da4df3cf8d 100644 --- a/docs/_static/jdaviz.css +++ b/docs/_static/jdaviz.css @@ -1,74 +1,14 @@ /* Main page overview cards */ -.sd-card { - background: #fff; - border-radius: 0; - padding: 30px 10px 20px 10px; - margin: 10px 0px; -} - -.sd-card .sd-card-header { - text-align: center; -} - -.sd-card .sd-card-header .sd-card-text { - margin: 0px; -} - .sd-card .sd-card-img-top { height: 52px; width: 52px; margin-left: auto; margin-right: auto; -} - -.sd-card .sd-card-header { - border: none; - background-color: white; - color: #150458 !important; - font-size: var(--pst-font-size-h5); - font-weight: bold; - padding: 2.5rem 0rem 0.5rem 0rem; -} - -.sd-card .sd-card-footer { - border: none; - background-color: white; -} - -.sd-card .sd-card-footer .sd-card-text { - max-width: 220px; - margin-left: auto; - margin-right: auto; + margin-top: 10px; } /* Dark theme tweaking */ html[data-theme=dark] .sd-card img[src*='.svg'] { filter: invert(0.82) brightness(0.8) contrast(1.2); } - -/* Main index page overview cards */ -html[data-theme=dark] .sd-card { - background-color:var(--pst-color-background); -} - -html[data-theme=dark] .sd-shadow-sm { - box-shadow: 0 .1rem 1rem rgba(250, 250, 250, .6) !important -} - -html[data-theme=dark] .sd-card .sd-card-header { - background-color:var(--pst-color-background); - color: #150458 !important; -} - -html[data-theme=dark] .sd-card .sd-card-footer { - background-color:var(--pst-color-background); -} - -html[data-theme=dark] h1 { - color: var(--pst-color-primary); -} - -html[data-theme=dark] h3 { - color: #0a6774; -} diff --git a/docs/conf.py b/docs/conf.py index 8fb6b72d00..ef97c8a0c9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -173,6 +173,7 @@ # variables set in the global configuration. The variables set in the # global configuration are listed below, commented out. +html_static_path = ["_static"] html_css_files = ["jdaviz.css"] html_copy_source = False diff --git a/docs/index.rst b/docs/index.rst index a40b7b711b..9acd8bb211 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -56,10 +56,9 @@ Jdaviz Jump to Mosviz .. grid-item-card:: + :text-align: center - .. note:: - - New and in development. Logo coming soon! + New and in development. Logo coming soon! .. button-ref:: rampviz/index :expand: