Created
July 4, 2018 15:57
-
-
Save klarstrup/4aee45675ced408c57b6f13d1b6fa00e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (vundefined) | |
// Compass (vundefined) | |
// dart-sass (v1.6.2) | |
// ---- | |
.foo { | |
color: blue; | |
& > .bar { color: red; } | |
} | |
/* equivalent to | |
.foo { color: blue; } | |
.foo > .bar { color: red; } | |
*/ | |
.foo { | |
color: blue; | |
&.bar { color: red; } | |
} | |
/* equivalent to | |
.foo { color: blue; } | |
.foo.bar { color: red; } | |
*/ | |
.foo, .bar { | |
color: blue; | |
& + .baz, &.qux { color: red; } | |
} | |
/* equivalent to | |
.foo, .bar { color: blue; } | |
:matches(.foo, .bar) + .baz, | |
:matches(.foo, .bar).qux { color: red; } | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.foo { | |
color: blue; | |
} | |
.foo > .bar { | |
color: red; | |
} | |
/* equivalent to | |
.foo { color: blue; } | |
.foo > .bar { color: red; } | |
*/ | |
.foo { | |
color: blue; | |
} | |
.foo.bar { | |
color: red; | |
} | |
/* equivalent to | |
.foo { color: blue; } | |
.foo.bar { color: red; } | |
*/ | |
.foo, .bar { | |
color: blue; | |
} | |
.foo + .baz, .foo.qux, .bar + .baz, .bar.qux { | |
color: red; | |
} | |
/* equivalent to | |
.foo, .bar { color: blue; } | |
:matches(.foo, .bar) + .baz, | |
:matches(.foo, .bar).qux { color: red; } | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment