2021-03-14 16:10:07 +08:00
|
|
|
.#{$ns}Breadcrumb {
|
2022-02-23 15:39:53 +08:00
|
|
|
font-size: var(--Breadcrumb-item-fontSize);
|
|
|
|
font-weight: var(--fontWeightBase);
|
|
|
|
color: var(--Breadcrumb-item-default-color);
|
|
|
|
|
2021-03-14 16:10:07 +08:00
|
|
|
&-icon {
|
|
|
|
margin-right: px2rem(2px);
|
2022-02-23 15:39:53 +08:00
|
|
|
min-width: var(--gap-xs);
|
2021-03-14 16:10:07 +08:00
|
|
|
}
|
2022-02-23 15:39:53 +08:00
|
|
|
|
|
|
|
&-item {
|
|
|
|
position: relative;
|
2022-07-26 21:05:36 +08:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2022-02-23 15:39:53 +08:00
|
|
|
|
|
|
|
&-default {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--Breadcrumb-item-default-color);
|
2022-07-26 21:05:36 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--Breadcrumb-item-hover-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: var(--Breadcrumb-item-active-color);
|
|
|
|
}
|
2022-02-23 15:39:53 +08:00
|
|
|
}
|
|
|
|
&-dropdown {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--BreadcrumbDropdown-item-default-color);
|
|
|
|
}
|
|
|
|
a:hover {
|
|
|
|
color: var(--Breadcrumb-item-hover-color);
|
|
|
|
}
|
|
|
|
a:active {
|
|
|
|
color: var(--Breadcrumb-item-active-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-last &-default {
|
|
|
|
font-weight: var(--fontWeightMd);
|
|
|
|
color: var(--Breadcrumb-item-last-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-caret {
|
2022-07-26 21:05:36 +08:00
|
|
|
height: 16px;
|
|
|
|
margin: 0 2px;
|
2022-02-23 15:39:53 +08:00
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
transition: transform var(--animation-duration) ease;
|
2022-05-13 22:48:52 +08:00
|
|
|
|
2022-02-23 15:39:53 +08:00
|
|
|
> svg {
|
|
|
|
width: px2rem(10px);
|
|
|
|
height: px2rem(10px);
|
|
|
|
top: px2rem(1px);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-opened &-caret {
|
|
|
|
transform: translateY(px2rem(2px)) rotate(180deg);
|
|
|
|
color: var(--Breadcrumb-item-hover-color);
|
|
|
|
}
|
|
|
|
|
2022-05-13 22:48:52 +08:00
|
|
|
&.is-opened &-default{
|
2022-02-23 15:39:53 +08:00
|
|
|
color: var(--Breadcrumb-item-hover-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-03-14 16:10:07 +08:00
|
|
|
&-separator {
|
|
|
|
user-select: none;
|
2022-02-23 15:39:53 +08:00
|
|
|
margin: 0 var(--gap-sm);
|
|
|
|
text-align: center;
|
|
|
|
min-width: var(--gap-xs);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-dropdown {
|
|
|
|
position: absolute;
|
|
|
|
z-index: $zindex-dropdown;
|
|
|
|
top: 100%;
|
|
|
|
left: 0;
|
|
|
|
margin: px2rem(1px) 0;
|
|
|
|
background: var(--DropDown-menu-bg);
|
|
|
|
list-style: none;
|
|
|
|
padding: var(--DropDown-menu-paddingY) var(--DropDown-menu-paddingX);
|
2022-05-13 22:48:52 +08:00
|
|
|
border: var(--DropDown-menu-borderWidth) solid var(--DropDown-menu-borderColor);
|
2022-02-23 15:39:53 +08:00
|
|
|
border-radius: var(--DropDown-menu-borderRadius);
|
|
|
|
box-shadow: var(--DropDown-menu-boxShadow);
|
|
|
|
min-width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
font-size: var(--BreadcrumbDropdown-item-fontSize);
|
|
|
|
}
|
|
|
|
|
|
|
|
&-dropdown > li {
|
2022-05-13 22:48:52 +08:00
|
|
|
padding: var(--BreadcrumbDropdown-item-paddingX) var(--BreadcrumbDropdown-item-paddingY);
|
2022-02-23 15:39:53 +08:00
|
|
|
white-space: nowrap;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-left: px2rem(12px);
|
|
|
|
vertical-align: middle;
|
|
|
|
user-select: none;
|
|
|
|
color: var(--BreadcrumbDropdown-item-default-color);
|
|
|
|
background-color: var(--BreadcrumbDropdown-item-default-bg);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--BreadcrumbDropdown-item-hover-bg);
|
|
|
|
a {
|
|
|
|
color: var(--Breadcrumb-item-hover-color);
|
|
|
|
}
|
|
|
|
}
|
2021-03-14 16:10:07 +08:00
|
|
|
}
|
|
|
|
}
|