Skip to content

Why is the nuxt-content style not working? #21

Answered by anakais
anakais asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, i just found out why: Was the purgeCSS.

I had to ignore a block like this and the style appeared:

/*! purgecss start ignore */
    & > ol {
      @apply list-decimal grid gap-y-2 my-4 ml-4;
      & ol {
        @apply list-decimal grid gap-y-1 ml-8 mt-2;
      }
    }
    & code,
    & kbd,
    & samp {
      color: var(--text-secondary);
      background-color: var(--bg-secondary);
      @apply p-1 rounded transition-colors duration-200 ease-in-out;
    }
/*! purgecss end ignore */

I believe there are other selectors that are being purged. I don't know much about PurgeCSS or PostCSS so I'll leave it here until I find a more general solution (or someone more knowledgeable).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Knogobert
Comment options

@Knogobert
Comment options

Answer selected by Knogobert
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