From cc2e6ea7c3a4cd7c40bf15692ffbadad907d07d5 Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Wed, 12 Jun 2024 09:45:46 -0400 Subject: [PATCH] revert clickable title to Furo default --- .../assets/styles/_left-sidebar.scss | 4 ++ .../custom_templates/sidebar_brand.html | 19 +------- .../static/images/ecosystem-logo.svg | 46 ------------------- 3 files changed, 6 insertions(+), 63 deletions(-) delete mode 100644 src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/images/ecosystem-logo.svg diff --git a/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss b/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss index 142eb953..9207ffab 100644 --- a/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss +++ b/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss @@ -48,6 +48,10 @@ body { .sidebar-logo { width: 100%; } +.sidebar-ecosystem-link { + padding: var(--sidebar-item-spacing-vertical) var(--sidebar-item-spacing-horizontal); + font-size: var(--sidebar-caption-font-size); +} // -------------------------------------------------------------------------------------- // Common config for Translations & Previous Releases diff --git a/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/custom_templates/sidebar_brand.html b/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/custom_templates/sidebar_brand.html index 820e1a81..b78654d2 100644 --- a/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/custom_templates/sidebar_brand.html +++ b/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/custom_templates/sidebar_brand.html @@ -2,22 +2,7 @@ This file is inspired by Furo (created by Pradyun Gedam) and used under the MIT license. -#} - -{#- We default to showing a Qiskit Ecosystem logo -#} -{%- if not logo_url and not theme_light_logo and not theme_dark_logo and not theme_disable_ecosystem_logo -%} - - -{#- Else, use Furo's sidebar code. But, we remove the `centered` class from the `a` element because Carbon left-aligns things. -#} -{%- else %} +{#- Use Furo's sidebar code. But, we remove the `centered` class from the `a` element because Carbon left-aligns things. -#} {% block brand_content %} {%- if logo_url %} @@ -36,4 +21,4 @@ {%- endif %} {% endblock brand_content %} -{%- endif %} +This project is part of the Qiskit ecosystem diff --git a/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/images/ecosystem-logo.svg b/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/images/ecosystem-logo.svg deleted file mode 100644 index 51b02dd2..00000000 --- a/src/qiskit_sphinx_theme/theme/qiskit-sphinx-theme/static/images/ecosystem-logo.svg +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -