Skip to content

Commit

Permalink
Complete modifier classnames support
Browse files Browse the repository at this point in the history
  • Loading branch information
Oyelowo committed Oct 10, 2023
1 parent 4c29468 commit 00b1830
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
22 changes: 21 additions & 1 deletion tailwind/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,29 @@ aria-[sort=ascending]:bg-[url('/img/down-arrow.svg')] aria-[sort=descending]:bg-
lg:[&:nth-child(3)]:hover:underline
min-[320px]:text-center max-[600px]:bg-sky-300
min-[320rem]:text-center max-[600px]:bg-sky-300
top-[117px] lg:top-[344px]
bg-[#bada55] text-[22px] before:content-['Festivus']
grid grid-cols-[fit-content(theme(spacing.32))]
bg-[--my-color]
[mask-type:luminance] hover:[mask-type:alpha]
[--scroll-offset:56px] lg:[--scroll-offset:44px]
lg:[&:nth-child(3)]:hover:underline
bg-[url('/what_a_rush.png')]
before:content-['hello\_world']
text-[22px]
text-[#bada55]
text-[var(--my-var)]
text-[length:var(--my-var)]
text-[color:var(--my-var)]
"#
);
// let test =
Expand Down
17 changes: 0 additions & 17 deletions tw-macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,23 +1026,6 @@ fn min_max_arbitrary_modifier(input: &str) -> IResult<&str, ()> {
Ok((input, ()))
}

//
//
// top-[117px] lg:top-[344px]
// bg-[#bada55] text-[22px] before:content-['Festivus']
// grid grid-cols-[fit-content(theme(spacing.32))]
// bg-[--my-color]
// [mask-type:luminance] hover:[mask-type:alpha]
// [--scroll-offset:56px] lg:[--scroll-offset:44px]
// lg:[&:nth-child(3)]:hover:underline
// bg-[url('/what_a_rush.png')]
// before:content-['hello\_world']
// text-[22px]
// text-[#bada55]
// text-[var(--my-var)]
// text-[length:var(--my-var)]
// text-[color:var(--my-var)]

fn all_consuming_segment<'a, F, O>(parser: F) -> impl Fn(&'a str) -> IResult<&'a str, O>
where
F: Fn(&'a str) -> IResult<&'a str, O>,
Expand Down

0 comments on commit 00b1830

Please sign in to comment.