scss
@mixin scrollbar {
&::-webkit-scrollbar-track-piece {
background-color: #fdfefe;
}
&::-webkit-scrollbar {
height: 8px;
width: 8px;
transition: all 2s;
}
&::-webkit-scrollbar-thumb {
background-color: #aed6f1;
border-radius: 100px;
}
&::-webkit-scrollbar-thumb:hover {
background-color: #1890ff;
}
&::-webkit-scrollbar-corner {
background-color: rgba(255, 255, 255, 0);
}
}
scss
@mixin overflow($lines: 1) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@if $lines > 1 {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: $lines;
white-space: normal;
}
}
scss
@mixin gradient-bg($start-color, $end-color, $direction: to right) {
background: linear-gradient($direction, $start-color, $end-color);
}