2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}AsideNav {
|
2019-12-06 09:58:08 +08:00
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
&-label {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLabel-color);
|
|
|
|
margin-top: var(--gap-base);
|
|
|
|
margin-bottom: var(--gap-sm);
|
|
|
|
font-size: var(--fontSizeXs);
|
|
|
|
padding-left: var(--gap-base);
|
|
|
|
padding-right: var(--gap-base);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-list {
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-itemArrow {
|
|
|
|
float: right;
|
|
|
|
display: block;
|
|
|
|
width: px2rem(20px);
|
|
|
|
text-align: center;
|
|
|
|
line-height: px2rem(17px);
|
2020-06-08 17:28:08 +08:00
|
|
|
margin-top: px2rem(2px);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2020-06-15 14:50:45 +08:00
|
|
|
&:empty:before {
|
2020-06-08 17:28:08 +08:00
|
|
|
content: '';
|
2019-12-06 09:58:08 +08:00
|
|
|
display: inline-block;
|
|
|
|
transform-origin: center;
|
2021-01-04 16:45:43 +08:00
|
|
|
transition: transform var(--animation-duration) ease;
|
2020-06-08 17:28:08 +08:00
|
|
|
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgNTEzIDEwMjEiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+Cgk8ZyBpZD0icmlnaHQtYXJyb3ciIGZpbGw9IiNmZmZmZmYiIGZpbGwtcnVsZT0ibm9uemVybyI+CgkJPHBhdGggZD0iTTU2LjU1OTA1NCwxMDEzLjc3MzY5IEw1MTIuOTA4MTE2LDUxMi42ODQ1MjQgTDU2LjU1OTA1NCwxMi4yMzQ1MDEgQzQ5LjQxMTQ2NzgsMi45MzQ1NTkxMiAzNy42NjY0MjM4LC0xLjU5MTg4MTc2IDI2LjEyNjIzMjQsMC41MDU5NDgyNDYgQzE0LjU4NjA0MSwyLjYwMzc3ODI1IDUuMTg1NDQ0MDksMTAuOTc0MTcyNyAxLjc2ODE1NTE2LDIyLjE5NDY0NzEgQy0xLjY0OTEzMzc3LDMzLjQxNTEyMTQgMS40ODk4MDIyOCw0NS42MDQ1MzUxIDkuOTAxNTE2LDUzLjc3ODg4NCBMNDI0LjcwNjE5Nyw1MTIuNjg0NTI0IEwxMi40NTgwOTQsOTY5LjY3MjczMSBDMi40NTgyMDU5Niw5ODIuNTUxNDk4IDQuMDEyOTc3MzcsMTAwMC45NDgzIDE2LjAzMjQ0MjIsMTAxMS45NjYxNSBDMjguMDUxOTA3MSwxMDIyLjk4Mzk5IDQ2LjUxNDIzNDYsMTAyMi45MzYxOSA1OC40NzY0ODcsMTAxMS44NTYyNiBMNTYuNTU5MDU0LDEwMTMuNzczNjkgWiIgaWQ9Iui3r+W+hCI+CgkJPC9wYXRoPgoJPC9nPgo8L3N2Zz4K);
|
|
|
|
width: px2rem(10px);
|
|
|
|
height: px2rem(10px);
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2020-06-15 14:50:45 +08:00
|
|
|
.#{$ns}AsideNav-item.is-open > a > &:empty:before {
|
2019-12-06 09:58:08 +08:00
|
|
|
transform: rotate(90deg);
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-onActive-arrowColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2020-06-15 14:50:45 +08:00
|
|
|
|
|
|
|
> svg {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-color);
|
2020-06-15 14:50:45 +08:00
|
|
|
width: px2rem(10px);
|
|
|
|
height: px2rem(10px);
|
|
|
|
transform-origin: center;
|
2021-01-04 16:45:43 +08:00
|
|
|
transition: transform var(--animation-duration) ease;
|
2020-06-15 14:50:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.#{$ns}AsideNav-item.is-open > a > & > svg {
|
|
|
|
transform: rotate(90deg);
|
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-itemBadge {
|
|
|
|
padding: px2rem(2px) px2rem(5px);
|
|
|
|
margin-top: px2rem(2px);
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--fontSizeXs);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-shadow: 0 px2rem(1px) 0 rgba(0, 0, 0, 0.2);
|
|
|
|
float: right;
|
|
|
|
min-width: px2rem(1px);
|
|
|
|
line-height: 1;
|
2020-12-21 10:08:40 +08:00
|
|
|
font-weight: var(--fontWeightBold);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
|
|
|
vertical-align: baseline;
|
|
|
|
border-radius: px2rem(10px);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-itemIcon {
|
2020-12-24 20:08:51 +08:00
|
|
|
// margin: ($Layout-nav-height - $lineHeightBase * $Layout-asideLink-fontSize)/-2
|
|
|
|
// px2rem(-10px);
|
2020-12-21 10:08:40 +08:00
|
|
|
margin: calc(
|
|
|
|
(
|
2020-12-24 20:08:51 +08:00
|
|
|
var(--Layout-nav-height) - var(--lineHeightBase) *
|
|
|
|
var(--Layout-asideLink-fontSize)
|
|
|
|
) / -2
|
2020-12-21 10:08:40 +08:00
|
|
|
)
|
2019-12-06 09:58:08 +08:00
|
|
|
px2rem(-10px);
|
2020-12-21 10:08:40 +08:00
|
|
|
line-height: var(--Layout-nav-height);
|
|
|
|
width: var(--Layout-nav-height);
|
2019-12-06 09:58:08 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
float: left;
|
|
|
|
margin-right: 0;
|
|
|
|
text-align: center;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-iconColor);
|
|
|
|
font-size: var(--Layout-asideLink-onHover-iconSize);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-subList {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
opacity: 0;
|
|
|
|
height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-left: px2rem(-20px);
|
2021-01-04 16:45:43 +08:00
|
|
|
transition: all var(--animation-duration) ease-in-out 0s;
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Layout-aside-subList-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
2020-10-10 12:50:53 +08:00
|
|
|
.#{$ns}Layout--folded .#{$ns}AsideNav-item > & {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.is-open > &,
|
2020-10-10 12:50:53 +08:00
|
|
|
.#{$ns}Layout--folded .#{$ns}AsideNav-item .#{$ns}AsideNav-item.is-open > &,
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}Layout--folded .#{$ns}AsideNav-item:hover > &,
|
|
|
|
.#{$ns}Layout--folded .#{$ns}AsideNav-item:focus > &,
|
|
|
|
.#{$ns}Layout--folded .#{$ns}AsideNav-item:active > & {
|
|
|
|
opacity: 1;
|
|
|
|
margin-left: 0;
|
|
|
|
height: auto !important;
|
|
|
|
overflow: visible;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-item {
|
|
|
|
position: relative;
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
a {
|
|
|
|
font-weight: normal;
|
|
|
|
cursor: pointer;
|
|
|
|
text-transform: none;
|
|
|
|
display: block;
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Layout-asideLink-fontSize);
|
|
|
|
|
|
|
|
padding: calc(
|
|
|
|
(
|
|
|
|
var(--Layout-nav-height) - var(--lineHeightBase) *
|
|
|
|
var(--Layout-asideLink-fontSize)
|
|
|
|
) / 2
|
|
|
|
)
|
|
|
|
px2rem(15px);
|
2019-12-06 09:58:08 +08:00
|
|
|
position: relative;
|
2021-01-04 16:45:43 +08:00
|
|
|
transition: background-color var(--animation-duration) ease-in-out 0s;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-decoration: none;
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-onHover-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-decoration: none;
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Layout-aside-onHover-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
.#{$ns}AsideNav-itemIcon {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-onHover-iconColor);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-active {
|
|
|
|
> a {
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Layout-aside-onAcitve-bg);
|
|
|
|
color: var(--Layout-asideLink-onActive-color);
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&:hover {
|
2021-01-22 11:29:04 +08:00
|
|
|
background: var(--Layout-aside-onAcitve-onHover-bg);
|
2019-09-03 20:11:29 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-03 20:11:29 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-lg {
|
|
|
|
> a {
|
2020-12-21 10:08:40 +08:00
|
|
|
padding: calc(
|
|
|
|
(
|
|
|
|
var(--Layout-nav-lgHeight) - var(--lineHeightBase) *
|
|
|
|
var(--Layout-asideLink-fontSize)
|
|
|
|
) / 2
|
|
|
|
)
|
|
|
|
px2rem(15px);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-item {
|
|
|
|
a {
|
2020-12-21 10:08:40 +08:00
|
|
|
padding-left: calc(var(--Layout-nav-height) + #{px2rem(5px)});
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-item a {
|
2020-12-21 10:08:40 +08:00
|
|
|
padding-left: calc(var(--Layout-nav-height) + #{px2rem(35px)});
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-item .#{$ns}AsideNav-item a {
|
2020-12-21 10:08:40 +08:00
|
|
|
padding-left: calc(var(--Layout-nav-height) + #{px2rem(65px)});
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-subList {
|
2019-04-30 11:11:25 +08:00
|
|
|
display: none;
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.is-open .#{$ns}AsideNav-subList {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-subHeader {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
a {
|
|
|
|
cursor: default;
|
|
|
|
background: transparent;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-color);
|
|
|
|
|
|
|
|
padding: calc(
|
|
|
|
(
|
|
|
|
var(--Layout-nav--folded-height) - var(--lineHeightBase) *
|
|
|
|
var(--Layout-asideLink-fontSize)
|
|
|
|
) / 2
|
|
|
|
)
|
|
|
|
px2rem(20px);
|
2019-12-06 09:58:08 +08:00
|
|
|
|
|
|
|
&:hover {
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Layout-asideLink-onHover-color);
|
2019-12-06 09:58:08 +08:00
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-tooltip {
|
|
|
|
pointer-events: none;
|
|
|
|
left: 0;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
position: absolute;
|
2020-12-21 10:08:40 +08:00
|
|
|
font-size: var(--Tooltip--attr-fontSize);
|
|
|
|
line-height: var(--Tooltip--attr-lineHeigt);
|
2019-12-06 09:58:08 +08:00
|
|
|
text-align: left;
|
|
|
|
white-space: nowrap;
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Tooltip--attr-bg);
|
|
|
|
border: var(--Tooltip--attr-borderWidth) solid
|
|
|
|
var(--Tooltip--attr-borderColor);
|
|
|
|
border-radius: var(--Tooltip--attr-borderRadius);
|
|
|
|
box-shadow: var(--Tooltip--attr-boxShadow);
|
2019-12-06 09:58:08 +08:00
|
|
|
left: 100%;
|
2020-12-21 10:08:40 +08:00
|
|
|
color: var(--Tooltip--attr-color);
|
|
|
|
padding: var(--Tooltip--attr-paddingY) var(--Tooltip--attr-paddingX);
|
2019-12-06 09:58:08 +08:00
|
|
|
opacity: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
transition: var(--Tooltip--attr-transition);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-divider {
|
|
|
|
width: auto;
|
|
|
|
height: px2rem(1px);
|
2020-12-21 10:08:40 +08:00
|
|
|
margin: var(--Layout-asideDivider-margin);
|
2019-12-06 09:58:08 +08:00
|
|
|
overflow: hidden;
|
|
|
|
font-size: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
background: var(--Layout-asideDivider-bg);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2021-01-28 16:30:38 +08:00
|
|
|
// 图片 icon
|
|
|
|
img.#{$ns}AsideNav-itemIcon {
|
|
|
|
float: none;
|
|
|
|
height: var(--Layout-asideLink-fontSize);
|
|
|
|
width: auto;
|
|
|
|
margin-right: var(--gap-xs);
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2020-11-24 23:08:04 +08:00
|
|
|
// @include media-device('mobile') {
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
.#{$ns}Layout--folded {
|
|
|
|
.#{$ns}AsideNav-label {
|
|
|
|
display: none;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-subHeader {
|
|
|
|
display: block;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-item:hover > .#{$ns}AsideNav-tooltip {
|
|
|
|
opacity: 1;
|
|
|
|
z-index: $zindex-tooltip;
|
2020-12-21 10:08:40 +08:00
|
|
|
margin: 0 0 0 var(--Tooltip--attr-gap);
|
2019-12-06 09:58:08 +08:00
|
|
|
opacity: 1;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-list > .#{$ns}AsideNav-item > a {
|
|
|
|
text-align: center;
|
|
|
|
position: relative;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
2020-12-21 10:08:40 +08:00
|
|
|
height: var(--Layout-nav--folded-height);
|
2019-12-06 09:58:08 +08:00
|
|
|
border: none;
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-itemArrow,
|
|
|
|
.#{$ns}AsideNav-itemLabel {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-itemIcon {
|
|
|
|
width: auto;
|
|
|
|
float: none !important;
|
|
|
|
display: block;
|
|
|
|
font-size: px2rem(16px);
|
|
|
|
margin: 0;
|
2020-12-21 10:08:40 +08:00
|
|
|
line-height: var(--Layout-nav--folded-height);
|
2019-12-06 09:58:08 +08:00
|
|
|
border: none !important;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-itemBadge {
|
|
|
|
position: absolute;
|
|
|
|
right: px2rem(12px);
|
|
|
|
top: px2rem(8px);
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-list > .#{$ns}AsideNav-item.is-lg > a {
|
2020-12-21 10:08:40 +08:00
|
|
|
height: var(--Layout-nav-lgHeight);
|
2019-09-03 20:11:29 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-itemIcon {
|
2020-12-21 10:08:40 +08:00
|
|
|
line-height: var(--Layout-nav-lgHeight);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
|
|
|
}
|
2019-09-03 20:11:29 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-item .#{$ns}AsideNav-item a {
|
|
|
|
padding-left: px2rem(20px) !important;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
.#{$ns}AsideNav-subList {
|
|
|
|
height: 0 !important;
|
|
|
|
position: absolute;
|
|
|
|
left: 100%;
|
|
|
|
top: 0 !important;
|
|
|
|
z-index: 1050;
|
2020-12-21 10:08:40 +08:00
|
|
|
width: var(--Layout-aside-width);
|
2019-12-06 09:58:08 +08:00
|
|
|
box-shadow: 0 px2rem(2px) px2rem(6px) rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.#{$ns}Layout--sm .#{$ns}AsideNav-subList {
|
2020-12-21 10:08:40 +08:00
|
|
|
width: var(--Layout-aside--sm-width);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.#{$ns}Layout--md .#{$ns}AsideNav-subList {
|
2020-12-21 10:08:40 +08:00
|
|
|
width: var(--Layout-aside--md-width);
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-06 09:58:08 +08:00
|
|
|
&.#{$ns}Layout--lg .#{$ns}AsideNav-subList {
|
2020-12-21 10:08:40 +08:00
|
|
|
width: var(--Layout-aside--lg-width);
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-06 09:58:08 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|