Skip to content

Commit

Permalink
Support more character types in arbitrary kv values
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Oct 11, 2023
1 parent 5294497 commit 3012b03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions tailwind/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ fn main() {
[--scroll-offset:56px] lg:[--scroll-offset:44px]
btn bg-[url('/img/down-arrow.svg')] ring-white/10 bg-black/25 bg-black/[80%] bg-black/[100] bg-black/[0.75] active:hover:collapse-arrow
[mask-image:linear-gradient(180deg,white,rgba(255,255,255,0))]
pt-8 text-base font-semibold leading-7
bg-[rgb(0,0,3)] absolute inset-0 bg-center
-mt-4
lg:[&:nth-child(3)]:hover:underline
Expand Down
2 changes: 1 addition & 1 deletion tw-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ fn kv_pair_classname(input: &str) -> IResult<&str, ()> {
let (input, _) = tag("[")(input)?;
let (input, _) = take_while1(is_ident_char)(input)?;
let (input, _) = tag(":")(input)?;
let (input, _) = take_while1(is_ident_char)(input)?;
let (input, _) = take_until("]")(input)?;
let (input, _) = tag("]")(input)?;
Ok((input, ()))
}
Expand Down

0 comments on commit 3012b03

Please sign in to comment.