2013-02-06 03:16:51 +08:00
|
|
|
// --------------------------------------------------
|
|
|
|
// Navigation menus
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// Base
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
%nav {
|
|
|
|
margin-left: 0;
|
|
|
|
list-style: none;
|
2017-03-06 11:38:57 +08:00
|
|
|
li a {
|
2013-02-06 03:16:51 +08:00
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pill nav
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.nav-pills {
|
|
|
|
@extend %nav;
|
2017-08-25 10:39:14 +08:00
|
|
|
|
2021-12-02 22:45:33 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: stretch;
|
2024-06-24 21:54:34 +08:00
|
|
|
gap: 0.5em;
|
2021-12-02 22:45:33 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
> li {
|
2021-01-28 05:17:08 +08:00
|
|
|
display: flex;
|
2017-08-25 10:39:14 +08:00
|
|
|
|
2022-09-21 12:32:47 +08:00
|
|
|
> a,
|
|
|
|
button {
|
2024-06-24 21:54:34 +08:00
|
|
|
position: relative;
|
2022-11-17 00:35:09 +08:00
|
|
|
border-radius: var(--d-nav-pill-border-radius);
|
2024-06-24 21:54:34 +08:00
|
|
|
padding: 0.65em 0.75em;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-small);
|
2018-09-19 20:37:04 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
min-height: 30px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-06-24 21:54:34 +08:00
|
|
|
background-color: var(--d-nav-bg-color);
|
2024-06-21 01:51:20 +08:00
|
|
|
transition: var(--d-button-transition);
|
2017-08-25 10:39:14 +08:00
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
margin-right: 5px;
|
2024-06-24 21:54:34 +08:00
|
|
|
color: var(--primary-high);
|
|
|
|
transition: color 0.2s;
|
2017-08-25 10:39:14 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
&:hover {
|
2024-06-24 21:54:34 +08:00
|
|
|
color: var(--d-nav-color--hover);
|
|
|
|
background: var(--d-nav-bg-color--hover);
|
|
|
|
.d-icon {
|
|
|
|
color: var(--d-nav-color--hover);
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
2017-08-25 10:39:14 +08:00
|
|
|
|
2022-09-21 12:32:47 +08:00
|
|
|
a.active,
|
|
|
|
button.active {
|
2024-06-24 21:54:34 +08:00
|
|
|
@include nav-active();
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Stacked nav
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
.nav-stacked {
|
|
|
|
@extend %nav;
|
|
|
|
padding: 0;
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary-low);
|
2017-08-24 04:16:18 +08:00
|
|
|
|
2017-02-03 01:17:23 +08:00
|
|
|
li {
|
2024-02-17 05:28:25 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2017-08-24 04:16:18 +08:00
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
&:last-of-type {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2017-08-24 04:16:18 +08:00
|
|
|
|
|
|
|
&.indent {
|
|
|
|
padding-left: 15px;
|
|
|
|
}
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2017-08-24 04:16:18 +08:00
|
|
|
|
2017-08-30 23:01:01 +08:00
|
|
|
a {
|
|
|
|
margin: 0;
|
2021-08-10 14:53:22 +08:00
|
|
|
padding: 0.75em;
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-small);
|
2017-08-30 23:01:01 +08:00
|
|
|
cursor: pointer;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2021-08-02 12:41:41 +08:00
|
|
|
@include ellipsis;
|
2017-08-30 23:01:01 +08:00
|
|
|
|
|
|
|
&.active {
|
2021-08-10 14:53:22 +08:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
--arrow-thickness: 8px;
|
2017-08-30 23:01:01 +08:00
|
|
|
|
|
|
|
&::after {
|
|
|
|
position: absolute;
|
2021-08-10 14:53:22 +08:00
|
|
|
right: 0;
|
|
|
|
top: calc(50% - var(--arrow-thickness));
|
|
|
|
content: " ";
|
|
|
|
border: var(--arrow-thickness) solid transparent;
|
2020-08-04 10:57:10 +08:00
|
|
|
border-left-color: var(--secondary);
|
2017-08-30 23:01:01 +08:00
|
|
|
}
|
2017-08-24 04:16:18 +08:00
|
|
|
}
|
2014-11-14 16:10:46 +08:00
|
|
|
}
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
.count {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2013-02-06 03:16:51 +08:00
|
|
|
}
|
2013-07-10 14:35:06 +08:00
|
|
|
|
|
|
|
.glyph {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2017-08-24 04:16:18 +08:00
|
|
|
width: 1.25em;
|
2013-07-11 04:56:39 +08:00
|
|
|
text-align: center;
|
2018-11-09 01:49:29 +08:00
|
|
|
margin-right: 0.25em;
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-large);
|
2013-07-10 14:35:06 +08:00
|
|
|
}
|
|
|
|
}
|
2023-08-26 05:09:18 +08:00
|
|
|
|
|
|
|
.user-navigation .nav-pills > li {
|
|
|
|
a,
|
|
|
|
button {
|
|
|
|
border-radius: 0px;
|
|
|
|
}
|
|
|
|
}
|