mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
81 lines
1.7 KiB
SCSS
81 lines
1.7 KiB
SCSS
@import './mixins/mixins.scss';
|
|
@import './theme/default.scss';
|
|
|
|
@include b(cancel-mark) {
|
|
@include fade-in-transition(cancel-mark);
|
|
user-select: none;
|
|
display: inline-block;
|
|
position: relative;
|
|
height: 12px;
|
|
width: 12px;
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
@include b(cancel-mark-cross) {
|
|
@include fade-in-transition(cancel-mark);
|
|
position: absolute;
|
|
height: 12px;
|
|
width: 12px;
|
|
line-height: 12px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
.n-cancel-mark-cross__icon {
|
|
transition: fill .3s $default-cubic-bezier;
|
|
fill: rgba(255, 255, 255, .3);
|
|
}
|
|
&.n-cancel-mark-cross--arrow {
|
|
.n-cancel-mark-cross__icon {
|
|
fill: #63E2B7;
|
|
}
|
|
}
|
|
&:hover {
|
|
.n-cancel-mark-cross__icon {
|
|
fill: #63E2B7;
|
|
}
|
|
}
|
|
&:active {
|
|
.n-cancel-mark-cross__icon {
|
|
fill: #55be9b;
|
|
}
|
|
}
|
|
}
|
|
|
|
@include b(cancel-mark-arrow) {
|
|
@include fade-in-transition(cancel-mark);
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
&::after {
|
|
transition: transform .3s $default-cubic-bezier, border-color .3s $default-cubic-bezier;
|
|
position: absolute;
|
|
content: '';
|
|
box-sizing: border-box;
|
|
width: 7px;
|
|
height: 7px;
|
|
border-left: 1px solid rgba(255, 255, 255, .4);
|
|
border-bottom: 1px solid rgba(255, 255, 255, .4);
|
|
right: 1px;
|
|
top: calc(50% - 4.5px);
|
|
transform: rotate(-45deg);
|
|
transform-origin: 30% 70%;
|
|
}
|
|
&.n-cancel-mark-arrow--active {
|
|
&::after {
|
|
transform: rotate(135deg);
|
|
border-left: 1px solid #63E2B7FF;
|
|
border-bottom: 1px solid #63E2B7FF;
|
|
}
|
|
}
|
|
&.n-cancel-mark-arrow--disabled {
|
|
cursor: not-allowed;
|
|
&::after {
|
|
border-color: rgba(255, 255, 255, 0.20);
|
|
}
|
|
}
|
|
} |