UX: update navigation-container scaling & wrapping (#15372)

This commit is contained in:
Kris 2021-12-20 17:08:03 -05:00 committed by GitHub
parent 491f020771
commit 07436e9d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 29 deletions

View File

@ -1,16 +1,6 @@
// Topic list navigation & controls
.list-controls {
.btn {
&:not(:first-child) {
margin-left: 0.5em;
}
}
.notifications-button {
margin-left: 0.5em;
}
a.badge-category {
padding: 3px 12px;
font-size: $font-up-1;
@ -22,6 +12,7 @@
border: 1px solid var(--primary-medium);
font-size: $font-0;
transition: none;
height: 100%;
&:focus {
border-color: var(--tertiary);
}
@ -41,14 +32,15 @@
}
.category-breadcrumb {
display: block;
display: flex;
flex-wrap: wrap;
gap: var(--nav-space) 0; // used if the breadcrumb dropdowns wrap
list-style: none;
padding: 0;
margin: 0;
margin: 0 0 var(--nav-space) 0;
> li {
// only target the top-level li, not dropdowns
display: flex;
float: left;
margin-right: 0.5em;
margin-bottom: 0;
}
@ -64,10 +56,18 @@
.navigation-controls {
display: flex;
flex-wrap: wrap;
align-items: stretch;
margin-bottom: var(--nav-space);
gap: var(--nav-space) 0; // used if the buttons wrap
> * {
white-space: nowrap;
&:not(:last-child) {
margin-right: 0.5em;
}
}
.select-kit-header {
height: 100%;
}
@include breakpoint(mobile-large) {
.edit-category {

View File

@ -183,13 +183,9 @@ button.dismiss-read {
.category-breadcrumb {
// only target the top-level li, not dropdowns
> li {
height: 100%;
}
.select-kit {
align-self: stretch;
height: 100%;
margin-bottom: var(--nav-space);
}
}

View File

@ -88,19 +88,18 @@
margin-left: 0;
}
ol.category-breadcrumb {
margin: 0 -3px 5px -3px;
display: flex;
flex-wrap: wrap;
flex: 1 1 100%;
li.select-kit {
.category-breadcrumb {
width: 100%;
gap: 0.5em;
li {
flex: 1 1 33%;
margin: 0 3px 5px 3px;
.select-kit-header .selected-name {
max-width: 80vw;
.badge-wrapper {
max-width: 100%;
}
margin: 0;
details {
width: 100%;
}
.name,
.category-name {
@include ellipsis;
}
}
}