naive-ui/styles/Breadcrumb.scss

56 lines
1.5 KiB
SCSS

@import './mixins/mixins.scss';
@include themes-mixin {
@include b(breadcrumb) {
white-space: nowrap;
@include b(breadcrumb-item) {
@include once {
transition: color .3s $--n-ease-in-out-cubic-bezier;
@include b(icon) {
font-size: 16px;
vertical-align: -.2em;
}
}
@include b(icon) {
transition: fill .3s $--n-ease-in-out-cubic-bezier;
fill: map-get($--breadcrumb-link-text-color, 'default');
}
@include e(link) {
@include once {
transition: color .3s $--n-ease-in-out-cubic-bezier;
cursor: pointer;
}
color: map-get($--breadcrumb-link-text-color, 'default');
}
@include e(seperator) {
@include once {
transition: color .3s $--n-ease-in-out-cubic-bezier;
margin: 0 4px;
}
color: map-get($--breadcrumb-seperator-text-color, 'default');
}
&:hover {
@include b(icon) {
fill: map-get($--breadcrumb-link-text-color, 'hover');
}
@include e(link) {
color: map-get($--breadcrumb-link-text-color, 'hover');
}
}
&:last-child {
@include e(link) {
cursor: unset;
color: map-get($--breadcrumb-link-text-color, 'active');
}
@include b(icon) {
fill: map-get($--breadcrumb-link-text-color, 'active');
}
@include once {
@include e(seperator) {
display: none;
}
}
}
}
}
}