Replace '[dir=rtl] &' with CSS logical properties where it makes sense

This commit is contained in:
iBug
2024-06-25 22:49:22 +08:00
parent 97f0f35498
commit ded2d87b2b
6 changed files with 32 additions and 160 deletions

View File

@@ -115,13 +115,8 @@ body:hover .visually-hidden button {
}
.task-list-item-checkbox {
margin-right: 0.5em;
margin-inline-end: 0.5em;
opacity: 1;
[dir=rtl] & {
margin-left: .5em;
margin-right: 0;
}
}
}
@@ -187,12 +182,7 @@ body:hover .visually-hidden button {
.full {
@include breakpoint($large) {
margin-right: -1 * span(2.5 of 12) !important;
[dir=rtl] & {
margin-right: 0 !important;
margin-left: -1 * span(2.5 of 12) !important;
}
margin-inline-end: -1 * span(2.5 of 12) !important;
}
}