refactor: reduce duplicate scss

This commit is contained in:
Cotes Chung
2024-10-20 13:47:54 +08:00
parent 6f461132c0
commit c1bd9eb9ee
6 changed files with 45 additions and 38 deletions

View File

@@ -112,6 +112,16 @@
-webkit-box-orient: vertical;
}
@mixin text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
%text-ellipsis {
@include text-ellipsis;
}
%text-highlight {
color: var(--text-muted-highlight-color);
font-weight: 600;
@@ -158,9 +168,14 @@
padding-bottom: $val;
}
@mixin pl-pr($val) {
padding-left: $val;
padding-right: $val;
@mixin pl-pr($val, $important: false) {
@if $important {
padding-left: $val !important;
padding-right: $val !important;
} @else {
padding-left: $val;
padding-right: $val;
}
}
@mixin placeholder {