naive-ui/styles/Breadcrumb.scss
2019-12-06 16:23:10 +08:00

55 lines
1.5 KiB
SCSS

@import './mixins/mixins.scss';
@include themes-mixin {
@include b(breadcrumb) {
@include b(breadcrumb-item) {
@include once {
transition: color .3s $default-cubic-bezier;
@include b(icon) {
font-size: 16px;
vertical-align: -.2em;
}
}
@include b(icon) {
transition: fill .3s $default-cubic-bezier;
fill: map-get($--breadcrumb-link-text-color, 'default');
}
@include e(link) {
@include once {
transition: color .3s $default-cubic-bezier;
cursor: pointer;
}
color: map-get($--breadcrumb-link-text-color, 'default');
}
@include e(seperator) {
@include once {
transition: color .3s $default-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;
}
}
}
}
}
}