Skip to content

Commit

Permalink
feat: add arbitrary w and h
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Nov 30, 2022
1 parent 3f69b75 commit 92dcc97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/tailwind-parse/src/eval/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ lookup_plugin!(fill, colors, "fill");
lookup_plugin!(left, width, "left");
lookup_plugin!(right, width, "right");
lookup_plugin!(tracking, letter_spacing, "letterSpacing");
lookup_plugin!(h, height, "height");
lookup_plugin_arbitrary!(h, height, "height");
lookup_plugin!(to, colors, "--tw-gradient-to");
lookup_plugin!(w, width, "width");
lookup_plugin_arbitrary!(w, width, "width");
lookup_plugin!(rotate, rotate, "--tw-rotate");
lookup_plugin!(p, padding, "padding");
lookup_plugin!(pl, padding, "paddingLeft");
Expand Down
4 changes: 2 additions & 2 deletions crates/tailwind-parse/src/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ impl<'a> Literal<'a> {
Ring => Optional(plugin::ring),
Sr => Required(plugin::sr),
Bg => Required(plugin::bg),
H => Required(plugin::h),
W => Required(plugin::w),
H => RequiredArbitrary(plugin::h),
W => RequiredArbitrary(plugin::w),
P => Required(plugin::p),
Px => Required(plugin::px),
Pl => Required(plugin::pl),
Expand Down

0 comments on commit 92dcc97

Please sign in to comment.