Skip to content

Commit

Permalink
revert clickable title to Furo default
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Jun 12, 2024
1 parent 77c0d11 commit 41a8b33
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 63 deletions.
4 changes: 4 additions & 0 deletions src/qiskit_sphinx_theme/assets/styles/_left-sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
<div class="sidebar-brand">
<a href="https://qiskit.github.io/ecosystem/">
<div class="sidebar-logo-container">
<img class="sidebar-logo" src="{{ pathto('_static/images/ecosystem-logo.svg', 1) }}" alt="Qiskit Ecosystem logo"/>
</div>
</a>
{% if not theme_sidebar_hide_name %}
<span class="sidebar-brand-text">{{ docstitle if docstitle else project }}</span>
{%- endif %}
</div>

{#- 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. -#}
<a class="sidebar-brand" href="{{ pathto(master_doc) }}">
{% block brand_content %}
{%- if logo_url %}
Expand All @@ -36,4 +21,4 @@
{%- endif %}
{% endblock brand_content %}
</a>
{%- endif %}
<span class="sidebar-ecosystem-link">This project is part of the <a href="https://qiskit.github.io/ecosystem/">Qiskit ecosystem</a></span>

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 41a8b33

Please sign in to comment.