mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-15 04:42:23 +08:00
95 lines
2.5 KiB
SCSS
95 lines
2.5 KiB
SCSS
@import './mixins/mixins.scss';
|
|
|
|
@include themes-mixin {
|
|
@include b(anchor) {
|
|
@include once {
|
|
padding-left: 4px;
|
|
position: relative;
|
|
}
|
|
@include b(anchor-link-background) {
|
|
@include once {
|
|
position: absolute;
|
|
left: 2px;
|
|
width: 100%;
|
|
max-width: 0;
|
|
transition: top .15s $--n-ease-in-out-cubic-bezier, max-width .15s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier;
|
|
border-top-right-radius: 10.5px;
|
|
border-bottom-right-radius: 10.5px;
|
|
}
|
|
background-color: $--anchor-link-background-color;
|
|
}
|
|
@include b(anchor-rail) {
|
|
@include once {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 4px;
|
|
border-radius: 2px;
|
|
transition: background-color .3s $--n-ease-in-out-cubic-bezier;
|
|
overflow: hidden;
|
|
}
|
|
background-color: $--anchor-rail-background-color;
|
|
@include e(bar) {
|
|
@include once {
|
|
position: absolute;
|
|
left: 0;
|
|
transition: top .15s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier;
|
|
width: 4px;
|
|
height: 21px;
|
|
background-color: transparent;
|
|
}
|
|
@include m(active) {
|
|
background-color: $--n-primary-color;
|
|
}
|
|
}
|
|
@include once {
|
|
& + {
|
|
@include b(anchor-link) {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@include b(anchor-link) {
|
|
@include once {
|
|
margin-top: 10px;
|
|
padding-left: 16px;
|
|
position: relative;
|
|
min-height: 21px;
|
|
line-height: 21px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
& > {
|
|
@include b(anchor-link) {
|
|
padding-left: 16px;
|
|
}
|
|
}
|
|
}
|
|
@include e(title) {
|
|
@include once {
|
|
outline: none;
|
|
max-width: 100%;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
line-height: 21px;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
font-size: 14px;
|
|
padding-right: 16px;
|
|
transition: color .3s $--n-ease-in-out-cubic-bezier;
|
|
}
|
|
color: map-get($--anchor-link-title-text-color, 'default');
|
|
&:hover, &:focus {
|
|
color: map-get($--anchor-link-title-text-color, 'hover');
|
|
}
|
|
@include m(active) {
|
|
color: map-get($--anchor-link-title-text-color, 'active');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|