Skip to content

Instantly share code, notes, and snippets.

@klarstrup
Created July 4, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klarstrup/4aee45675ced408c57b6f13d1b6fa00e to your computer and use it in GitHub Desktop.
Save klarstrup/4aee45675ced408c57b6f13d1b6fa00e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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; }
*/
.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