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;
|
|
|
|
padding: $-xxs 0;
|
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
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
.links {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
.links a {
|
|
|
|
display: inline-block;
|
2018-05-28 03:32:06 +08:00
|
|
|
padding: $-m;
|
2015-09-03 23:51:10 +08:00
|
|
|
color: #FFF;
|
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;
|
2015-09-03 23:51:10 +08:00
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2015-10-19 00:29:26 +08:00
|
|
|
> * {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
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;
|
|
|
|
padding-top: $-xxs;
|
|
|
|
}
|
2018-02-18 03:49:00 +08:00
|
|
|
> svg {
|
2016-03-31 04:28:38 +08:00
|
|
|
padding-top: 4px;
|
|
|
|
font-size: 18px;
|
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;
|
2017-08-27 22:16:51 +08:00
|
|
|
margin-top: 10px;
|
2015-09-03 23:51:10 +08:00
|
|
|
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;
|
|
|
|
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
|
|
}
|
2015-09-03 23:51:10 +08:00
|
|
|
}
|
|
|
|
button {
|
2018-05-28 02:51:32 +08:00
|
|
|
z-index: 1;
|
2018-10-22 03:05:11 +08:00
|
|
|
left: 16px;
|
2020-04-12 03:02:07 +08:00
|
|
|
@include lightDark(color, rgba(255, 255, 255, 0.8), #AAA);
|
2020-04-05 20:07:19 +08:00
|
|
|
@include rtl {
|
|
|
|
left: auto;
|
|
|
|
right: 16px;
|
|
|
|
}
|
2018-05-28 02:51:32 +08:00
|
|
|
svg {
|
2020-04-05 20:07:19 +08:00
|
|
|
margin-block-end: 0;
|
2018-05-28 02:51:32 +08:00
|
|
|
}
|
2017-08-19 22:33:22 +08:00
|
|
|
}
|
|
|
|
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
|
|
|
color: #DDD;
|
|
|
|
}
|
|
|
|
::-moz-placeholder { /* Firefox 19+ */
|
|
|
|
color: #DDD;
|
|
|
|
}
|
2018-10-17 01:49:16 +08:00
|
|
|
@include between($l, $xl) {
|
2017-08-19 22:33:22 +08:00
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-09-03 23:51:10 +08:00
|
|
|
.logo {
|
2015-10-02 04:08:36 +08:00
|
|
|
display: inline-block;
|
|
|
|
&:hover {
|
|
|
|
color: #FFF;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.logo-text {
|
2015-09-03 23:51:10 +08:00
|
|
|
display: inline-block;
|
|
|
|
font-size: 1.8em;
|
|
|
|
color: #fff;
|
|
|
|
font-weight: 400;
|
2020-04-05 20:07:19 +08:00
|
|
|
@include padding(14px, $-l, 14px, 0);
|
2015-09-03 23:51:10 +08:00
|
|
|
vertical-align: top;
|
|
|
|
line-height: 1;
|
2015-10-02 04:08:36 +08:00
|
|
|
}
|
|
|
|
.logo-image {
|
2020-04-05 20:07:19 +08:00
|
|
|
@include margin($-xs, $-s, $-xs, 0);
|
2015-10-02 04:08:36 +08:00
|
|
|
vertical-align: top;
|
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;
|
|
|
|
margin-top: -$-xs;
|
|
|
|
&.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;
|
2018-10-17 01:49:16 +08:00
|
|
|
display: block;
|
|
|
|
padding: $-s $-m;
|
|
|
|
color: $text-dark;
|
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;
|
2018-10-17 01:49:16 +08:00
|
|
|
}
|
|
|
|
&:hover {
|
2020-04-13 02:06:34 +08:00
|
|
|
@include lightDark(background-color, #eee, #333);
|
|
|
|
@include lightDark(color, #000, #fff);
|
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
|
|
|
}
|