Gollum@feddit.org to Programmer Humor@programming.dev · 3 个月前Me waiting for the AI to close the tag for mefeddit.orgimagemessage-square41fedilinkarrow-up1349arrow-down18
arrow-up1341arrow-down1imageMe waiting for the AI to close the tag for mefeddit.orgGollum@feddit.org to Programmer Humor@programming.dev · 3 个月前message-square41fedilink
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up1·3 个月前 Learn CSS layers, use CSS layers. What are CSS layers? I’m legitimately curious.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up3·3 个月前They change the precedence rules so that you can import large frameworks at will and not have them disrupt your rules or each other. Basically, anything you apply in one layer has less precedence than what is applied on the next layers.
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up2·3 个月前So I’m clear, are you referring to the @layer CSS at-rule? Or, something else?
What are CSS layers? I’m legitimately curious.
They change the precedence rules so that you can import large frameworks at will and not have them disrupt your rules or each other.
Basically, anything you apply in one layer has less precedence than what is applied on the next layers.
So I’m clear, are you referring to the
@layerCSS at-rule? Or, something else?Yes, I’m referring to the @layer rule.