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,7 +1,4 @@
div.poll {
> * {
box-sizing: border-box;
}
margin: 1em 0;
border: 1px solid var(--primary-low);
display: grid;
@ -38,6 +35,7 @@ div.poll {
}
.poll-info {
box-sizing: border-box;
grid-area: info;
display: flex;
line-height: var(--line-height-medium);
@ -207,6 +205,7 @@ div.poll {
}
.poll-container {
box-sizing: border-box;
grid-area: poll;
padding: 1em;
width: 100%;
@ -230,6 +229,7 @@ div.poll {
}
.poll-buttons {
box-sizing: border-box;
grid-area: buttons;
display: flex;
flex-wrap: wrap;