naive-ui/styles/Breadcrumb.scss

56 lines
1.5 KiB
SCSS
Raw Normal View History

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