Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.10] Update left navigation layout #6145

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@

{% assign collection_url_path = collection_key | append: "/" %}
{% assign category_comparison_url = "/" | append: collection_url_path %}
{%- if collection.size > 0 -%}
{%- if collection.size > 1 -%}
<a
role="treeitem"
aria-owns="{{ owned_tree_id }}"
Expand Down
25 changes: 15 additions & 10 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ nav#site-nav > .nav-list:nth-of-type(1) {
.nav-category {
text-align: start;
display: block;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

.nav-list-expander {
margin-right: 0.5rem;
}

.main-content {
Expand Down Expand Up @@ -905,10 +911,7 @@ main {
}

.site-nav.nav-open {
padding-top: .5rem;
@include mq(md) {
padding-top: 2rem;
}
padding-top: 0;
}

.label {
Expand Down Expand Up @@ -951,13 +954,13 @@ main {
top: 0;
z-index: 9999999;
background-color: $sidebar-color;
border-bottom: 1px solid #eeebee;
}

version-selector {
z-index: 1;
font-size: .9rem;
margin: 0.5rem 3px;

margin: 0.5rem 3px 1rem 3px;
--normal-bg: linear-gradient(#{lighten($blue-300, 5%)}, #{darken($blue-300, 2%)});
--hover-bg: linear-gradient(#{lighten($blue-300, 2%)}, #{darken($blue-300, 4%)});
--link-color: #{$blue-300};
Expand Down Expand Up @@ -992,16 +995,18 @@ body {
text-align: start;
display: block;
font-size: 0.9rem;
padding-right: 2rem;
padding-left: 2rem;
padding-top: 0.5rem;
margin-bottom: 1rem;
padding: 0.5rem 1rem;
margin-top: 1rem;
@include mq(md) {
padding: 0.5rem 2rem;
}
}

.site-category {
@extend .back-link;
padding-top: 1.5rem;
padding-bottom: 0.5rem;
margin-top: 0;
font-size: 0.8rem;
color: $blue-dk-300;
font-weight: 600;
Expand Down
Loading