Skip to content
Discussion options

You must be logged in to vote

Thanks, yeah, today I learned about @apply.

eg. in app/assets/tailwind/application.css

.pagy a:not([role="separator"]) { /* all but gaps */
  @apply rounded-md border border-slate-300 py-2 px-3;
}

It wasn't you, it was me. The one who tackles areas he doesn't really know about (CSS) at 2 AM. 😄

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@janosrusiczki
Comment options

@ddnexus
Comment options

@ddnexus
Comment options

@janosrusiczki
Comment options

Answer selected by janosrusiczki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants