Skip to content

Instantly share code, notes, and snippets.

@takaya1992
Last active June 24, 2021 02:50
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 takaya1992/18ae14ff4241eb955a8a925551a7b844 to your computer and use it in GitHub Desktop.
Save takaya1992/18ae14ff4241eb955a8a925551a7b844 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$sns: (
"apple": (
"background": #ccc,
"color": #ccc,
),
"twitter": (
"background": #ccc,
"color": #ccc,
),
"facebook": (
"background": #ccc,
"color": #ccc,
),
"mixi": (
"background": #ccc,
"color": #ccc,
),
);
@mixin button-color($background, $color) {
background: $background;
color: $color;
}
.sns-button {
@each $name, $colors in $sns {
&.sns-button--#{$name} {
@include button-color(
$background: map-get($colors, "background"),
$color: map-get($colors, "color")
);
}
}
}
.sns-button.sns-button--apple {
background: #ccc;
color: #ccc;
}
.sns-button.sns-button--twitter {
background: #ccc;
color: #ccc;
}
.sns-button.sns-button--facebook {
background: #ccc;
color: #ccc;
}
.sns-button.sns-button--mixi {
background: #ccc;
color: #ccc;
}
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment