2015-09-03 23:51:10 +08:00
|
|
|
/**
|
|
|
|
* Includes the main navigation header and the faded toolbar.
|
|
|
|
*/
|
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
header .grid {
|
2021-02-05 07:11:55 +08:00
|
|
|
grid-template-columns: minmax(max-content, 2fr) 1fr minmax(max-content, 2fr);
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
|
2019-04-07 16:57:48 +08:00
|
|
|
@include smaller-than($l) {
|
|
|
|
header .grid {
|
|
|
|
grid-template-columns: 1fr;
|
2019-04-14 00:36:27 +08:00
|
|
|
grid-row-gap: 0;
|
2019-04-07 16:57:48 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-03 23:51:10 +08:00
|
|
|
header {
|
2018-10-17 01:49:16 +08:00
|
|
|
position: relative;
|
2015-09-03 23:51:10 +08:00
|
|
|
display: block;
|
2019-08-04 23:21:16 +08:00
|
|
|
z-index: 11;
|
2015-09-03 23:51:10 +08:00
|
|
|
top: 0;
|
2020-04-11 05:38:29 +08:00
|
|
|
color: rgb(250, 250, 250);
|
2015-09-03 23:51:10 +08:00
|
|
|
border-bottom: 1px solid #DDD;
|
2018-10-22 03:05:11 +08:00
|
|
|
box-shadow: $bs-card;
|
2020-04-11 05:38:29 +08:00
|
|
|
@include lightDark(border-bottom-color, #DDD, #000);
|
|
|
|
@include whenDark {
|
2020-07-26 23:36:15 +08:00
|
|
|
filter: saturate(0.8) brightness(0.8);
|
2020-04-11 05:38:29 +08:00
|
|
|
}
|
2022-05-17 21:16:43 +08:00
|
|
|
.header-links {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: end;
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
.links {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.links a {
|
|
|
|
display: inline-block;
|
2022-05-17 21:16:43 +08:00
|
|
|
padding: 10px $-m;
|
2015-09-03 23:51:10 +08:00
|
|
|
color: #FFF;
|
2022-05-17 21:16:43 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
.links a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
background-color: rgba(255, 255, 255, .15);
|
2018-05-28 03:32:06 +08:00
|
|
|
}
|
|
|
|
.dropdown-container {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: $-m;
|
|
|
|
padding-inline-end: 0;
|
2018-05-28 03:32:06 +08:00
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
.avatar, .user-name {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.avatar {
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
.user-name {
|
|
|
|
vertical-align: top;
|
2017-08-19 22:33:22 +08:00
|
|
|
position: relative;
|
2022-05-17 21:16:43 +08:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2015-09-03 23:51:10 +08:00
|
|
|
cursor: pointer;
|
2022-05-17 21:16:43 +08:00
|
|
|
padding: $-s;
|
|
|
|
margin: 0 (-$-s);
|
|
|
|
border-radius: 3px;
|
|
|
|
gap: $-xs;
|
2018-02-18 03:49:00 +08:00
|
|
|
> span {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: $-xs;
|
2015-10-19 00:29:26 +08:00
|
|
|
display: inline-block;
|
2022-05-17 21:16:43 +08:00
|
|
|
line-height: 1;
|
2015-10-19 00:29:26 +08:00
|
|
|
}
|
2018-02-18 03:49:00 +08:00
|
|
|
> svg {
|
2016-03-31 04:28:38 +08:00
|
|
|
font-size: 18px;
|
2022-05-17 21:16:43 +08:00
|
|
|
margin-top: -2px;
|
|
|
|
margin-inline-end: 0;
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
background-color: rgba(255, 255, 255, 0.15);
|
2015-10-19 00:29:26 +08:00
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
@include between($l, $xl) {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: $-xs;
|
2015-10-19 00:29:26 +08:00
|
|
|
.name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
|
2019-08-25 01:26:28 +08:00
|
|
|
.header *, .primary-background * {
|
|
|
|
outline-color: #FFF;
|
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
|
|
|
|
|
2017-08-19 22:33:22 +08:00
|
|
|
header .search-box {
|
2015-09-03 23:51:10 +08:00
|
|
|
display: inline-block;
|
|
|
|
input {
|
2017-08-19 22:33:22 +08:00
|
|
|
background-color: rgba(0, 0, 0, 0.2);
|
2018-10-22 03:05:11 +08:00
|
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
|
|
border-radius: 40px;
|
2015-09-03 23:51:10 +08:00
|
|
|
color: #EEE;
|
2018-05-28 02:51:32 +08:00
|
|
|
z-index: 2;
|
2022-05-14 23:05:29 +08:00
|
|
|
height: auto;
|
|
|
|
padding: $-xs*1.5;
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: 40px;
|
2019-08-25 01:26:28 +08:00
|
|
|
&:focus {
|
|
|
|
outline: none;
|
2022-05-17 21:16:43 +08:00
|
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
2019-08-25 01:26:28 +08:00
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2022-05-17 21:16:43 +08:00
|
|
|
input::placeholder {
|
|
|
|
color: #FFF;
|
|
|
|
opacity: 0.6;
|
2017-08-19 22:33:22 +08:00
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
@include between($l, $xl) {
|
2017-08-19 22:33:22 +08:00
|
|
|
max-width: 200px;
|
|
|
|
}
|
2022-11-14 18:24:14 +08:00
|
|
|
&:focus-within #header-search-box-button {
|
2022-05-17 21:16:43 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2017-08-19 22:33:22 +08:00
|
|
|
}
|
2022-11-14 18:24:14 +08:00
|
|
|
#header-search-box-button {
|
|
|
|
z-index: 1;
|
2022-11-23 08:05:24 +08:00
|
|
|
inset-inline-start: 16px;
|
2022-11-14 18:24:14 +08:00
|
|
|
top: 10px;
|
|
|
|
color: #FFF;
|
|
|
|
opacity: 0.6;
|
|
|
|
@include lightDark(color, rgba(255, 255, 255, 0.8), #AAA);
|
|
|
|
svg {
|
2022-11-21 06:20:31 +08:00
|
|
|
margin-inline-end: 0;
|
2022-11-14 18:24:14 +08:00
|
|
|
}
|
|
|
|
}
|
2017-08-19 22:33:22 +08:00
|
|
|
|
2022-11-21 05:50:59 +08:00
|
|
|
.global-search-suggestions {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
top: -$-s;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: -1;
|
|
|
|
margin-left: -$-xxl;
|
|
|
|
margin-right: -$-xxl;
|
|
|
|
padding-top: 56px;
|
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: $bs-hover;
|
|
|
|
transform-origin: top center;
|
|
|
|
opacity: .5;
|
|
|
|
transform: scale(0.9);
|
|
|
|
.entity-item-snippet p {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.entity-item-snippet {
|
|
|
|
font-size: .8rem;
|
|
|
|
}
|
|
|
|
.entity-list-item-name {
|
|
|
|
font-size: .9rem;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2022-11-21 06:20:31 +08:00
|
|
|
.global-search-loading {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-11-21 05:50:59 +08:00
|
|
|
}
|
2022-11-21 06:20:31 +08:00
|
|
|
header .search-box.search-active:focus-within {
|
|
|
|
.global-search-suggestions {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
input {
|
2022-11-23 08:05:24 +08:00
|
|
|
@include lightDark(background-color, #EEE, #333);
|
|
|
|
@include lightDark(border-color, #DDD, #111);
|
2022-11-21 06:20:31 +08:00
|
|
|
}
|
2022-11-23 08:05:24 +08:00
|
|
|
#header-search-box-button, input {
|
|
|
|
@include lightDark(color, #444, #AAA);
|
2022-11-21 06:20:31 +08:00
|
|
|
}
|
2022-11-21 05:50:59 +08:00
|
|
|
}
|
|
|
|
|
2015-09-03 23:51:10 +08:00
|
|
|
.logo {
|
2022-05-17 21:16:43 +08:00
|
|
|
display: inline-flex;
|
|
|
|
padding: ($-s - 6px) $-s;
|
|
|
|
margin: 6px (-$-s);
|
|
|
|
gap: $-s;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 4px;
|
2015-10-02 04:08:36 +08:00
|
|
|
&:hover {
|
|
|
|
color: #FFF;
|
|
|
|
text-decoration: none;
|
2022-05-17 21:16:43 +08:00
|
|
|
background-color: rgba(255, 255, 255, .15);
|
2015-10-02 04:08:36 +08:00
|
|
|
}
|
|
|
|
}
|
2022-05-17 21:16:43 +08:00
|
|
|
|
2015-10-02 04:08:36 +08:00
|
|
|
.logo-text {
|
2015-09-03 23:51:10 +08:00
|
|
|
font-size: 1.8em;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: 400;
|
|
|
|
line-height: 1;
|
2015-10-02 04:08:36 +08:00
|
|
|
}
|
|
|
|
.logo-image {
|
2015-10-08 06:17:48 +08:00
|
|
|
height: 43px;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
.mobile-menu-toggle {
|
|
|
|
color: #FFF;
|
|
|
|
fill: #FFF;
|
|
|
|
font-size: 2em;
|
|
|
|
border: 2px solid rgba(255, 255, 255, 0.8);
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 0 $-xs;
|
|
|
|
position: absolute;
|
|
|
|
right: $-m;
|
2019-04-14 19:04:20 +08:00
|
|
|
top: 13px;
|
2018-10-17 01:49:16 +08:00
|
|
|
line-height: 1;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
svg {
|
|
|
|
margin: 0;
|
2019-04-14 19:04:20 +08:00
|
|
|
bottom: -2px;
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
2020-04-05 20:07:19 +08:00
|
|
|
@include rtl() {
|
|
|
|
left: $-m;
|
|
|
|
right: auto;
|
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
|
2020-04-05 20:07:19 +08:00
|
|
|
|
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
@include smaller-than($l) {
|
|
|
|
header .header-links {
|
2020-04-13 02:06:34 +08:00
|
|
|
@include lightDark(background-color, #fff, #333);
|
2018-10-17 01:49:16 +08:00
|
|
|
display: none;
|
|
|
|
z-index: 10;
|
|
|
|
right: $-m;
|
|
|
|
border-radius: 4px;
|
|
|
|
overflow: hidden;
|
|
|
|
position: absolute;
|
|
|
|
box-shadow: $bs-hover;
|
2022-05-17 21:27:58 +08:00
|
|
|
margin-top: $-m;
|
|
|
|
padding: $-xs 0;
|
2018-10-17 01:49:16 +08:00
|
|
|
&.show {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2020-04-13 02:06:34 +08:00
|
|
|
header .links a, header .dropdown-container ul li a, header .dropdown-container ul li button {
|
2020-04-05 20:07:19 +08:00
|
|
|
text-align: start;
|
2022-05-17 21:27:58 +08:00
|
|
|
display: grid;
|
|
|
|
align-items: center;
|
|
|
|
padding: 8px $-m;
|
|
|
|
gap: $-m;
|
2018-10-17 01:49:16 +08:00
|
|
|
color: $text-dark;
|
2022-05-17 21:27:58 +08:00
|
|
|
grid-template-columns: 16px auto;
|
|
|
|
line-height: 1.4;
|
2020-04-13 02:06:34 +08:00
|
|
|
@include lightDark(color, $text-dark, #eee);
|
2018-10-17 01:49:16 +08:00
|
|
|
svg {
|
2020-04-05 20:07:19 +08:00
|
|
|
margin-inline-end: $-s;
|
2022-05-17 21:27:58 +08:00
|
|
|
width: 16px;
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
&:hover {
|
2022-05-17 21:27:58 +08:00
|
|
|
background-color: var(--color-primary-light);
|
|
|
|
color: var(--color-primary);
|
2018-10-17 01:49:16 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-04-20 04:41:13 +08:00
|
|
|
&:focus {
|
|
|
|
@include lightDark(background-color, #eee, #333);
|
|
|
|
outline-color: var(--color-primary);
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
header .dropdown-container {
|
|
|
|
display: block;
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: 0;
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
header .links {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
header .dropdown-container ul {
|
|
|
|
display: block !important;
|
|
|
|
position: relative;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-04-14 00:36:27 +08:00
|
|
|
.tri-layout-mobile-tabs {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 5;
|
|
|
|
background-color: #FFF;
|
|
|
|
border-bottom: 1px solid #DDD;
|
2021-04-28 04:55:33 +08:00
|
|
|
@include lightDark(border-bottom-color, #DDD, #333);
|
2019-04-14 00:36:27 +08:00
|
|
|
box-shadow: $bs-card;
|
|
|
|
}
|
|
|
|
.tri-layout-mobile-tab {
|
|
|
|
text-align: center;
|
|
|
|
border-bottom: 3px solid #BBB;
|
2019-05-06 23:08:08 +08:00
|
|
|
cursor: pointer;
|
2021-05-04 05:28:25 +08:00
|
|
|
margin: 0;
|
2021-04-28 04:55:33 +08:00
|
|
|
@include lightDark(background-color, #FFF, #222);
|
|
|
|
@include lightDark(border-bottom-color, #BBB, #333);
|
2019-04-14 00:36:27 +08:00
|
|
|
&:first-child {
|
2020-04-05 20:07:19 +08:00
|
|
|
border-inline-end: 1px solid #DDD;
|
2021-04-28 04:55:33 +08:00
|
|
|
@include lightDark(border-inline-end-color, #DDD, #000);
|
2019-04-14 00:36:27 +08:00
|
|
|
}
|
2021-04-20 04:41:13 +08:00
|
|
|
&[aria-selected="true"] {
|
2021-04-28 04:55:33 +08:00
|
|
|
border-bottom-color: currentColor !important;
|
2019-04-14 00:36:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-22 03:05:11 +08:00
|
|
|
.breadcrumbs {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2019-02-18 01:52:42 +08:00
|
|
|
justify-content: flex-start;
|
|
|
|
flex-wrap: wrap;
|
2019-03-30 22:27:00 +08:00
|
|
|
opacity: 0.7;
|
2019-02-18 01:52:42 +08:00
|
|
|
.icon-list-item {
|
|
|
|
width: auto;
|
|
|
|
padding-top: $-xs;
|
|
|
|
padding-bottom: $-xs;
|
|
|
|
}
|
|
|
|
.separator {
|
|
|
|
display: inline-block;
|
|
|
|
fill: #aaa;
|
|
|
|
font-size: 1.6em;
|
|
|
|
line-height: 0.8;
|
|
|
|
margin: -2px 0 0;
|
|
|
|
}
|
2019-08-25 01:26:28 +08:00
|
|
|
&:hover, &:focus-within {
|
2019-03-30 22:27:00 +08:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2021-11-23 23:48:55 +08:00
|
|
|
@media (prefers-contrast: more) {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2018-10-22 03:05:11 +08:00
|
|
|
|
2019-04-14 00:36:27 +08:00
|
|
|
@include smaller-than($l) {
|
|
|
|
.breadcrumbs .icon-list-item {
|
|
|
|
padding: $-xs;
|
|
|
|
> span + span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
> span:first-child {
|
2020-04-12 03:02:07 +08:00
|
|
|
margin-inline-end: 0;
|
2019-04-14 00:36:27 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-03 23:51:10 +08:00
|
|
|
.faded {
|
2016-01-21 06:13:13 +08:00
|
|
|
a, button, span, span > div {
|
2015-09-03 23:51:10 +08:00
|
|
|
color: #666;
|
2018-02-17 21:30:52 +08:00
|
|
|
fill: #666;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
.text-button {
|
|
|
|
opacity: 0.5;
|
|
|
|
transition: all ease-in-out 120ms;
|
|
|
|
&:hover {
|
|
|
|
opacity: 1;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-13 00:31:02 +08:00
|
|
|
.faded span.faded-text {
|
2016-03-12 23:52:19 +08:00
|
|
|
display: inline-block;
|
|
|
|
padding: $-s;
|
|
|
|
}
|
|
|
|
|
2018-10-22 03:05:11 +08:00
|
|
|
.action-buttons .text-button {
|
2015-09-03 23:51:10 +08:00
|
|
|
display: inline-block;
|
2018-10-22 03:05:11 +08:00
|
|
|
padding: $-xs $-s;
|
2015-09-03 23:51:10 +08:00
|
|
|
&:last-child {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-end: 0;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
2017-07-03 03:33:32 +08:00
|
|
|
&:first-child {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: 0;
|
2017-07-03 03:33:32 +08:00
|
|
|
}
|
|
|
|
}
|
2017-07-22 22:20:36 +08:00
|
|
|
|
|
|
|
|
2017-07-03 03:33:32 +08:00
|
|
|
.action-buttons .dropdown-container:last-child a {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-end: 0;
|
|
|
|
padding-inline-start: $-s;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
.action-buttons {
|
2020-04-05 20:07:19 +08:00
|
|
|
text-align: end;
|
2015-09-03 23:51:10 +08:00
|
|
|
&.text-left {
|
2020-04-05 20:07:19 +08:00
|
|
|
text-align: start;
|
2015-09-03 23:51:10 +08:00
|
|
|
.text-button {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-end: $-m;
|
|
|
|
padding-inline-start: 0;
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
}
|
2016-03-13 00:31:02 +08:00
|
|
|
&.text-center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
|
2017-07-22 22:20:36 +08:00
|
|
|
@include smaller-than($m) {
|
2018-10-22 03:05:11 +08:00
|
|
|
.action-buttons .text-button {
|
2018-03-18 20:23:48 +08:00
|
|
|
padding: $-xs $-xs;
|
2017-07-22 22:20:36 +08:00
|
|
|
}
|
|
|
|
.action-buttons .dropdown-container:last-child a {
|
2020-04-05 20:07:19 +08:00
|
|
|
padding-inline-start: $-xs;
|
2017-07-22 22:20:36 +08:00
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|