Use '::' for pseudo-classes & ::marker #301
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request encompasses three closely related changes.
See the changes live here https://tailwind-nextjs-starter-blog-alexanderzeilmann.vercel.app/blog/github-markdown-guide
::beforeinstead of:beforeIn CSS both
::beforeand:beforework, but::beforeis preferred.Tailwind, however, accepts only the double-colon syntax, i.e.
'code:before': {content: 'none', }has no effect at all in
tailwind.config.js, but'code::before': {content: 'none', }does.Changes: Replace
:beforeand:afterby::beforeand::afterRendering before the change:


Rendering after the change:
::markeradditional to::beforein lists in CSSUsing the
before-pseudo element to style the list-items seems to be not working in current browsers.The new way is using the
::markerpseudo element.Changes: Add the following in
tailwind.cssRendering before the change (note the gray bullet-points):

Rendering after the change:

::markerin TailwindTailwind uses the
::markerpseudo-element for styling lists.Using
in
tailwind.config.jsdoes not overwrite the::markeruse by tailwind. For this we need:Changes: replace
ol li:beforeandul li:beforebyol li::markerandul li::markerintailwind.config.js