naive-ui/styles/Breadcrumb.scss
songwanli2025@163.com fdf2af8eb5 merge
2020-02-24 16:25:02 +08:00

62 lines
1.7 KiB
SCSS

@import './mixins/mixins.scss';
@include themes-mixin {
@include b(breadcrumb) {
@include once {
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) {
fill: map-get($--breadcrumb-link-text-color, 'default');
stroke: 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');
stroke: map-get($--breadcrumb-link-text-color, 'hover');
}
@include e(link) {
color: map-get($--breadcrumb-link-text-color, 'hover');
}
}
&:last-child {
@include e(link) {
@include once {
cursor: unset;
}
color: map-get($--breadcrumb-link-text-color, 'active');
}
@include b(icon) {
fill: map-get($--breadcrumb-link-text-color, 'active');
stroke: map-get($--breadcrumb-link-text-color, 'active');
}
@include once {
@include e(seperator) {
display: none;
}
}
}
}
}
}