2024-05-29 10:20:55 +08:00
|
|
|
@mixin bordered-horizontal-nav($border-width) {
|
|
|
|
li {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
margin: 0;
|
|
|
|
display: flex;
|
2022-10-25 07:22:02 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
a {
|
|
|
|
box-sizing: border-box;
|
2022-10-07 12:20:39 +08:00
|
|
|
width: 100%;
|
2024-05-29 10:20:55 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
position: relative;
|
|
|
|
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;
|
2022-10-12 05:15:58 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
@include breakpoint(extra-large) {
|
|
|
|
font-size: var(--font-0);
|
2022-10-12 05:15:58 +08:00
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
span {
|
|
|
|
line-height: normal;
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: transparent;
|
|
|
|
color: var(--quaternary);
|
|
|
|
border-bottom: var(--user-navigation__border-width) solid
|
|
|
|
var(--quaternary-low);
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
&.active {
|
|
|
|
color: var(--quaternary);
|
|
|
|
background: transparent;
|
|
|
|
border-bottom: var(--user-navigation__border-width) solid
|
|
|
|
var(--quaternary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
@mixin bordered-nav-pills {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
&.main-nav {
|
|
|
|
@include breakpoint(medium) {
|
|
|
|
li {
|
|
|
|
.d-icon {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
2024-05-29 10:20:55 +08:00
|
|
|
.has-sidebar-page & {
|
|
|
|
@include breakpoint(large) {
|
|
|
|
span {
|
|
|
|
display: none;
|
2022-10-07 12:20:39 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-29 10:20:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.new-user-wrapper {
|
|
|
|
.user-navigation {
|
|
|
|
--user-navigation__border-width: 4px;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
|
|
|
|
.nav-pills {
|
|
|
|
@include bordered-nav-pills;
|
|
|
|
@include bordered-horizontal-nav(var(--user-navigation__border-width));
|
|
|
|
}
|
|
|
|
}
|
2022-10-07 12:20:39 +08:00
|
|
|
|
2022-10-25 07:22:02 +08:00
|
|
|
.user-navigation-primary {
|
|
|
|
[class*="horizontal-overflow-nav__scroll"] {
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
.d-icon {
|
|
|
|
margin-top: 0.15em; // minor alignment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-12 05:15:58 +08:00
|
|
|
.user-navigation-secondary {
|
|
|
|
--user-navigation__border-width: 2px;
|
2022-11-16 06:05:43 +08:00
|
|
|
--navigation-secondary-padding-top: 0.5em;
|
2022-10-14 21:32:02 +08:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2022-10-12 05:15:58 +08:00
|
|
|
min-width: 0;
|
2022-11-16 06:05:43 +08:00
|
|
|
margin: 0;
|
2022-10-12 05:15:58 +08:00
|
|
|
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
|
|
|
|
|
|
|
.select-kit .select-kit-header {
|
|
|
|
height: 100%;
|
|
|
|
padding: 0.5em 1em;
|
2022-10-20 09:05:51 +08:00
|
|
|
}
|
|
|
|
|
2022-12-08 08:51:26 +08:00
|
|
|
.user-nav-messages-dropdown {
|
|
|
|
// manage long group names
|
|
|
|
max-width: 20vw;
|
|
|
|
min-width: 7em;
|
|
|
|
.select-kit-selected-name,
|
|
|
|
.name {
|
|
|
|
@include ellipsis;
|
|
|
|
}
|
|
|
|
.name {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-20 09:05:51 +08:00
|
|
|
.category-breadcrumb {
|
2022-12-08 08:51:26 +08:00
|
|
|
width: auto;
|
2022-11-18 01:33:17 +08:00
|
|
|
padding-top: var(--navigation-secondary-padding-top);
|
2022-12-08 08:51:26 +08:00
|
|
|
@include breakpoint(extra-large) {
|
2022-10-12 05:15:58 +08:00
|
|
|
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 {
|
2022-11-18 01:33:17 +08:00
|
|
|
padding-top: var(--navigation-secondary-padding-top);
|
2022-10-12 05:15:58 +08:00
|
|
|
flex-wrap: nowrap;
|
2022-12-08 08:51:26 +08:00
|
|
|
@include breakpoint(extra-large) {
|
2022-10-12 05:15:58 +08:00
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
2023-06-07 06:22:50 +08:00
|
|
|
|
|
|
|
span {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
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-11-16 06:05:43 +08:00
|
|
|
padding-top: var(--navigation-secondary-padding-top);
|
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-11-16 06:05:43 +08:00
|
|
|
|
|
|
|
[class*="horizontal-overflow-nav__scroll"] {
|
|
|
|
padding-top: var(--navigation-secondary-padding-top);
|
|
|
|
}
|
2022-10-12 05:15:58 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.empty-state {
|
|
|
|
padding: 0;
|
|
|
|
margin: 1em 0;
|
|
|
|
}
|
2023-04-07 20:55:32 +08:00
|
|
|
|
|
|
|
.solo-preference {
|
|
|
|
grid-column-start: 1;
|
|
|
|
grid-column-end: -1;
|
|
|
|
}
|
2022-09-21 12:32:47 +08:00
|
|
|
}
|
2022-11-18 09:09:04 +08:00
|
|
|
|
|
|
|
.user-preferences-tracking-page {
|
|
|
|
.user-preferences .form-vertical {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-21 14:48:47 +08:00
|
|
|
.user-preferences__tracking-topics-wrapper {
|
2022-11-18 09:09:04 +08:00
|
|
|
margin-bottom: 3em;
|
|
|
|
.control-label {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-21 14:48:47 +08:00
|
|
|
.user-preferences__tracking-categories-tags-wrapper {
|
2022-11-18 09:09:04 +08:00
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
|
|
|
|
gap: 2em;
|
|
|
|
.control-group {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 16em;
|
|
|
|
}
|
|
|
|
}
|