diff --git a/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss b/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss index 142eb953..3628bef7 100644 --- a/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss +++ b/src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss @@ -49,6 +49,21 @@ body { width: 100%; } +.sidebar-ecosystem-link { + padding-left: var(--sidebar-item-spacing-horizontal); + font-size: var(--sidebar-caption-font-size); + + // Based off of `.sidebar-tree .reference`. Just taking the external link logo. + .reference { + // Add a nice little "external-link" arrow here. + &.external::after { + content: url('data:image/svg+xml,'); + margin: 0 0.25rem; + vertical-align: middle; + } + } +} + // -------------------------------------------------------------------------------------- // 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..046d714a 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,7 @@ {%- endif %} {% endblock brand_content %} -{%- endif %} +{#- Add a link to the Qiskit ecosystem web page. -#} + 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 @@ - diff --git a/tests/js/tests.js-snapshots/left-side-bar-renders-correctly-1-linux.png b/tests/js/tests.js-snapshots/left-side-bar-renders-correctly-1-linux.png index c587251f..e1cfbb7a 100644 Binary files a/tests/js/tests.js-snapshots/left-side-bar-renders-correctly-1-linux.png and b/tests/js/tests.js-snapshots/left-side-bar-renders-correctly-1-linux.png differ