• falseWhite@programming.dev
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    4 months ago

    Haven’t found a use case for it yet.

    If you’ve used it, please give me some examples of how you used it to solve a styling problem that otherwise would have been difficult or messy with other css rules.

    • bytepursuits@programming.devOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      4 months ago

      I think it really helps if you dont like !important:

      @layer base, toggles;
      @layer toggles {
          .wprm-print-hide-recipe-nutrition .wprm-recipe-nutrition-label-section {
              display: none;
          }
      }
      
      

      instead of

      .wprm-print-hide-recipe-nutrition .wprm-recipe-nutrition-label-section {
          display: none !important;
      }
      

      I guess I answered my own question - I think its a neat feature and ill use it.