Skip to content

Commit

Permalink
feat: add a number of peer modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed May 21, 2023
1 parent 08a2ea0 commit 13b3692
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions crates/tailwind-parse/src/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,26 @@ impl<'a> Expression<'a> {
"group-not-disabled" => ".group:not(:disabled) &",
"group-not-read-write" => ".group:not(:read-write) &",
"group-not-only-of-type" => ".group:not(:only-of-type) &",
"peer-target" => ".peer:target ~ &",
"peer-not-svg" => ".peer:not(svg) ~ &",
"peer-not-odd-of-type" => ".peer:not(:nth-of-type(odd)) ~ &",
"peer-not-link" => ".peer:not(:link) ~ &",
"peer-not-sibling" => ".peer:not(~ *) ~ &",
"peer-not-even-of-type" => ".peer:not(:nth-of-type(even)) ~ &",
"peer-not-all-child" => ".peer:not(> *) ~ &",
"peer-not-enabled" => ".peer:not(:enabled) ~ &",
"peer-not-all" => ".peer:not(*) ~ &",
"peer-not-disabled" => ".peer:not(:disabled) ~ &",
"peer-not-read-write" => ".peer:not(:read-write) ~ &",
"peer-not-active" => ".peer:not(:active) ~ &",
"peer-only-of-type" => ".peer:only-of-type ~ &",
"peer-visited" => ".peer:visited ~ &",
"peer-not-focus-visited" => ".peer:not(:focus:visited) ~ &",
"peer-not-open" => ".peer:not([open]) ~ &",
"peer-not-target" => ".peer:not(:target) ~ &",
"peer-not-first" => ".peer:not(:first-child) ~ &",
"peer-first-of-type" => ".peer:first-of-type ~ &",
"peer-off-of-type" => ".peer:only-of-type ~ &",
"rtl" => "[dir='rtl'] &",
"motion-safe" => "@media (prefers-reduced-motion: no-preference)",
"motion-reduce" => "@media (prefers-reduced-motion: reduce)",
Expand Down

0 comments on commit 13b3692

Please sign in to comment.