Skip to content

Instantly share code, notes, and snippets.

@Zodiase
Created May 17, 2020 08:41
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 Zodiase/e5de4809769e73d9482d6c411cdeed96 to your computer and use it in GitHub Desktop.
Save Zodiase/e5de4809769e73d9482d6c411cdeed96 to your computer and use it in GitHub Desktop.
.some-mixin (
@titleFont: '',
@bodyStyle: {},
) {
& > .title {
font: @titleFont;
}
& > .body {
@bodyStyle();
}
}
.some-component {
.some-mixin(
@titleFont: bold 1.5em Helvetica,
@bodyStyle: {
color: gray;
},
);
}
.some-component > .title {
font: bold 1.5em Helvetica;
}
.some-component > .body {
color: gray;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment