Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability To @apply md:pr-sm lg:pr-lg #1440

Closed
sadeghbarati opened this issue Mar 12, 2020 · 3 comments
Closed

Ability To @apply md:pr-sm lg:pr-lg #1440

sadeghbarati opened this issue Mar 12, 2020 · 3 comments

Comments

@sadeghbarati
Copy link

sadeghbarati commented Mar 12, 2020

@adamwathan @tailwindcss

thanks for your great utils
how to use apply with separator

.selector {
   @apply md:pr-sm lg:pr-md md:rtl:text-right md:ltr:text-left lg:flex sm:block hover:bg-black
   @apply md\:pr-sm lg\:pr-md md\:rtl\:text-right md\:ltr\:text-left lg\:flex sm\:block hover\:bg-black
}

I getting error with : separator

I test both codes above

can we use this kinda @apply ?

#1044

@sadeghbarati
Copy link
Author

or with tailwindcss-dir

.selector {
   @apply rtl:text-right ltr:text-left
}

@sadeghbarati
Copy link
Author

https://tailwindcss.com/course/composing-utilities-with-apply/#app

ok I got it

but that was cool stuff if that's work tho ✋

@adamwathan
Copy link
Member

Duplicate of #313

@adamwathan adamwathan marked this as a duplicate of #313 Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants