feat: optional parent selector

This commit is contained in:
Lucas Larroche 2024-01-25 01:42:54 +07:00
parent 9ea68c42e0
commit ef2100499b
32 changed files with 295 additions and 277 deletions

View file

@ -13,7 +13,7 @@
// 1. Add the correct display in Edge 18- and IE
// 2. Add the correct vertical alignment in Chrome, Edge, and Firefox
progress {
#{$parent-selector} progress {
display: inline-block; // 1
vertical-align: baseline; // 2
}
@ -21,7 +21,7 @@
// Pico
//
progress {
#{$parent-selector} progress {
// Reset the default appearance
-webkit-appearance: none;
-moz-appearance: none;
@ -84,7 +84,7 @@
[dir="rtl"] {
@media (prefers-reduced-motion: no-preference) {
progress:indeterminate {
#{$parent-selector} progress:indeterminate {
animation-direction: reverse;
}
}