PERF: eliminate some slow CSS selectors (#25392)

This commit is contained in:
Kris
2024-01-26 13:10:45 -05:00
committed by GitHub
parent 4e72b06a54
commit 6b185f8655
11 changed files with 23 additions and 35 deletions

View File

@@ -1,8 +1,7 @@
.color-picker {
display: flex;
* {
height: 35px;
}
align-items: stretch;
.add-on {
@include form-item-sizing;
background-color: var(--primary-low);
@@ -12,13 +11,14 @@
padding-right: 0.5em;
}
.hex-input {
margin-right: 0;
margin: 0;
}
.picker {
padding: 0;
border-left: none;
cursor: pointer;
margin-bottom: 0;
height: unset;
}
// Reset webkit/blink default style
input[type="color"]::-webkit-color-swatch-wrapper {