Skip to content

Instantly share code, notes, and snippets.

@hellobrian
Last active November 13, 2015 06:28
Show Gist options
  • Select an option

  • Save hellobrian/eb5320d998ddd51b78e8 to your computer and use it in GitHub Desktop.

Select an option

Save hellobrian/eb5320d998ddd51b78e8 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<body class="bx-theme">
<h1 class="h1--base">Header</h1>
</body>
// ----
// libsass (v3.2.5)
// ----
$bluemix__font-family: 'Helvetica', sans-serif;
$bluemix__text-color: #ccc;
$bluemix__text-color--light: black;
%type--base {
font-family: $bluemix__font-family;
}
@mixin type($color, $size, $weight) {
@extend %type--base;
color: $color;
font-size: $size;
font-weight: $weight;
}
%h1 {
&--base {
@include type(red, 2rem, bold);
}
&--light-ui {
@include type(blue, 2rem, bold);
}
}
.bx-theme {
.h1--base {
@extend %h1--base;
}
&--light-ui {
.h1--base {
@extend %h1--light-ui
}
}
}
.bx-theme .h1--base, .bx-theme--light-ui .h1--base {
font-family: "Helvetica", sans-serif;
}
.bx-theme .h1--base {
color: red;
font-size: 2rem;
font-weight: bold;
}
.bx-theme--light-ui .h1--base {
color: blue;
font-size: 2rem;
font-weight: bold;
}
<body class="bx-theme">
<h1 class="h1--base">Header</h1>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment