Can somebody help translate bracket usage in Tailwind.css?
In Example 1: - what does [&_*] mean?
In Example 2: what does the nested bracket combined with _& mean?
Example 1:
document.documentElement.classList.add('[&_*]:!transition-none')
Example 2:
<LightIcon className="hidden h-4 w-4 fill-slate-400 [:not(.dark)[data-theme=system]_&]:block" />
The closest I can get is the [] refers to attribute selection (in general) for .css and the Ampersand in is used by PostCSS processing in "normal" SASS nesting rules (as defined by tailwind's default nesting declaration support provided by postcss-nested).