LoginSignup
0
0

More than 3 years have passed since last update.

Sass で毎回 &:active, &:hover, &.active を書くのがめんどくさい

Posted at

めっちゃ今更な気はするけど、いい加減めんどくさい。

monogu.sass
$hover: '&:active, &:hover, &.active'
a
  #{$hover}
    color: #06f
monogu.css
a:active, a:hover, a.active {
  color: #06f;
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0