Last active
May 17, 2018 22:57
-
-
Save pascaliske/a6c393b2c1950d0949f6aaa557c4b809 to your computer and use it in GitHub Desktop.
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
// ---- | |
// libsass (v3.5.0.beta.2) | |
// ---- | |
// | |
// GLOBAL | |
// | |
@mixin cmp-base($component) { | |
.#{$component} { | |
@content; | |
} | |
} | |
@mixin cmp-modifier($component, $modifier) { | |
.#{$component}--#{$modifier} .#{$component} { | |
@content; | |
} | |
} | |
// -------------------------------------------------------------------------------- | |
// -------------------------------------------------------------------------------- | |
/** | |
* COMPONENT "f-radiobox" | |
*/ | |
$component: 'f-radiobox'; | |
@include cmp-base($component) { | |
background: grey; | |
&__field { | |
background: white; | |
} | |
&__label { | |
color: black; | |
} | |
} | |
@include cmp-modifier($component, 'coloured') { | |
background: green; | |
&__field { | |
background: red; | |
} | |
&__label { | |
color: green; | |
} | |
} |
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
/** | |
* COMPONENT "f-radiobox" | |
*/ | |
.f-radiobox { | |
background: grey; | |
} | |
.f-radiobox__field { | |
background: white; | |
} | |
.f-radiobox__label { | |
color: black; | |
} | |
.f-radiobox--coloured .f-radiobox { | |
background: green; | |
} | |
.f-radiobox--coloured .f-radiobox__field { | |
background: red; | |
} | |
.f-radiobox--coloured .f-radiobox__label { | |
color: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment