2022-09-21 12:32:47 +08:00
|
|
|
.new-user-wrapper {
|
2022-10-12 05:15:58 +08:00
|
|
|
margin-top: -15px; // temp, can remove margin from sibling element after nav finalized
|
2022-10-07 12:20:39 +08:00
|
|
|
.user-navigation {
|
2022-10-12 05:15:58 +08:00
|
|
|
--user-navigation__border-width: 4px;
|
2022-10-14 21:32:02 +08:00
|
|
|
&.user-navigation-primary {
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
.nav-pills {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
2022-10-12 05:15:58 +08:00
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.main-nav {
|
|
|
|
@include breakpoint(medium) {
|
|
|
|
li {
|
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.has-sidebar-page & {
|
|
|
|
@include breakpoint(large) {
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
|
|
|
li {
|
2022-10-12 05:15:58 +08:00
|
|
|
flex: 1 1 auto;
|
2022-10-07 12:20:39 +08:00
|
|
|
margin: 0;
|
2022-10-12 05:15:58 +08:00
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
2022-10-07 12:20:39 +08:00
|
|
|
|
|
|
|
a {
|
2022-10-12 05:15:58 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
2022-10-07 12:20:39 +08:00
|
|
|
position: relative;
|
2022-10-12 05:15:58 +08:00
|
|
|
border-bottom: var(--user-navigation__border-width) solid transparent;
|
|
|
|
padding: calc(0.75em + var(--user-navigation__border-width)) 0.5em
|
|
|
|
0.75em;
|
|
|
|
transition: color 0.25s;
|
|
|
|
|
|
|
|
@include breakpoint(extra-large) {
|
|
|
|
font-size: var(--font-0);
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
line-height: normal;
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
2022-10-12 05:15:58 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
2022-10-07 12:20:39 +08:00
|
|
|
color: var(--quaternary);
|
2022-10-12 05:15:58 +08:00
|
|
|
border-bottom: var(--user-navigation__border-width) solid
|
|
|
|
var(--quaternary-low);
|
2022-10-07 12:20:39 +08:00
|
|
|
}
|
|
|
|
|
2022-10-12 05:15:58 +08:00
|
|
|
&.active {
|
|
|
|
color: var(--quaternary);
|
|
|
|
background: transparent;
|
|
|
|
border-bottom: var(--user-navigation__border-width) solid
|
|
|
|
var(--quaternary);
|
2022-10-07 12:20:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-12 05:15:58 +08:00
|
|
|
.user-navigation-secondary {
|
|
|
|
--user-navigation__border-width: 2px;
|
2022-10-14 21:32:02 +08:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2022-10-12 05:15:58 +08:00
|
|
|
min-width: 0;
|
|
|
|
margin: 0.5em 0;
|
|
|
|
gap: 0 0.5em;
|
2022-10-14 21:32:02 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2022-10-12 05:15:58 +08:00
|
|
|
|
2022-10-20 09:05:51 +08:00
|
|
|
.horizontal-overflow-nav {
|
|
|
|
position: relative;
|
|
|
|
min-width: 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-10-12 05:15:58 +08:00
|
|
|
.select-kit .select-kit-header {
|
|
|
|
height: 100%;
|
|
|
|
padding: 0.5em 1em;
|
2022-10-20 09:05:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.category-breadcrumb {
|
2022-10-12 05:15:58 +08:00
|
|
|
@include breakpoint(large) {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
2022-10-20 09:05:51 +08:00
|
|
|
> li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.navigation-controls {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
@include breakpoint(large) {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-14 21:32:02 +08:00
|
|
|
.nav-overflow__scroll-right,
|
|
|
|
.nav-overflow__scroll-left {
|
|
|
|
--fade-width: 20px;
|
|
|
|
opacity: 1;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 2;
|
|
|
|
background-color: var(--secondary);
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: opacity 0.25s;
|
|
|
|
.d-icon {
|
|
|
|
pointer-events: none;
|
|
|
|
margin-bottom: 0.2em;
|
2022-10-20 09:05:51 +08:00
|
|
|
color: var(--quaternary);
|
2022-10-14 21:32:02 +08:00
|
|
|
}
|
|
|
|
&.transparent {
|
|
|
|
// hiding with opacity so we can transition visibility
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-overflow__scroll-right {
|
|
|
|
right: 0;
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
margin-left: -1.5em;
|
|
|
|
height: 100%;
|
|
|
|
width: 1.5em;
|
|
|
|
background: linear-gradient(
|
|
|
|
to left,
|
|
|
|
rgba(var(--secondary-rgb), 1),
|
|
|
|
rgba(var(--secondary-rgb), 0)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-overflow__scroll-left {
|
|
|
|
left: 0;
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
margin-right: -1.5em;
|
|
|
|
height: 100%;
|
|
|
|
width: 1.5em;
|
|
|
|
background: linear-gradient(
|
|
|
|
to right,
|
|
|
|
rgba(var(--secondary-rgb), 1),
|
|
|
|
rgba(var(--secondary-rgb), 0)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-12 05:15:58 +08:00
|
|
|
.nav-pills {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
justify-content: flex-start;
|
2022-10-14 21:32:02 +08:00
|
|
|
overflow: auto;
|
|
|
|
position: relative;
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
|
|
|
|
// hides scrollbars, but allows mouse scrolling
|
|
|
|
scrollbar-width: none;
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
height: 0;
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
|
|
|
|
li {
|
2022-10-14 21:32:02 +08:00
|
|
|
flex: 1 0 auto;
|
2022-10-12 05:15:58 +08:00
|
|
|
|
|
|
|
a {
|
|
|
|
padding: 0.5em 0.5em
|
|
|
|
calc(0.5em + var(--user-navigation__border-width));
|
2022-10-14 21:32:02 +08:00
|
|
|
|
|
|
|
span {
|
|
|
|
text-overflow: unset;
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-21 12:32:47 +08:00
|
|
|
.user-nav-dropdown-button {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-nav-dropdown-submenu {
|
|
|
|
background: var(--secondary);
|
|
|
|
list-style-type: none;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
li a {
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
color: var(--primary);
|
2022-09-22 09:45:50 +08:00
|
|
|
|
2022-09-21 12:32:47 +08:00
|
|
|
.discourse-no-touch & {
|
|
|
|
&:hover {
|
|
|
|
background: var(--highlight-medium);
|
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
background: var(--tertiary-low);
|
|
|
|
color: currentColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
}
|
|
|
|
&:last-of-type {
|
|
|
|
padding-bottom: 0.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
padding: 0;
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2022-09-21 12:32:47 +08:00
|
|
|
}
|