search

Home  >  Q&A  >  body text

How to override the same class with scss.

The source file of a css library introduced reads:
.is-hidden {

display: none!important;

}

And I don’t want to set any style for this class. How should I do it without modifying the source file (I want to extract the personalized configuration)? Please give me some guidance~~

淡淡烟草味淡淡烟草味2753 days ago889

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-18 10:57:58

    .is-hidden {
      display: initial!important;
    }

    But if you do this and set this element somewhere else display 会有隐患。既然叫 is-hidden why not hide it.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-18 10:57:58

    After some research, there is really no good way.

    Maybe only display:inline-block has the best compatibility.

    reply
    0
  • Cancelreply