style: reduce some css code (#36904)

This commit is contained in:
afc163 2022-08-05 11:37:55 +08:00 committed by GitHub
parent 30d60fc05c
commit 8ed18fc239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 8 deletions

View File

@ -29,7 +29,6 @@
&-button {
.operation-unit();
color: @page-header-back-color;
cursor: pointer;
}
}

View File

@ -1,6 +1,5 @@
.operation-unit() {
color: @link-color;
text-decoration: none;
outline: none;
cursor: pointer;
transition: color 0.3s;

View File

@ -509,7 +509,6 @@
background: @table-expand-icon-bg;
border: @border-width-base @border-style-base @table-border-color;
border-radius: @border-radius-base;
outline: none;
transform: scale((unit(@checkbox-size) / unit(@expand-icon-size)));
transition: all 0.3s;
user-select: none;

View File

@ -127,9 +127,14 @@
}
&-remove {
.operation-unit();
position: relative;
color: @border-color-base;
cursor: pointer;
transition: all 0.3s;
&:hover {
color: @link-hover-color;
}
&::after {
position: absolute;
@ -139,10 +144,6 @@
left: -50%;
content: '';
}
&:hover {
color: @link-hover-color;
}
}
}