Skip to content

Commit

Permalink
feat(buttons): ensure social buttons are available even when orangeIc…
Browse files Browse the repository at this point in the history
…ons' missing
  • Loading branch information
ffoodd committed Oct 30, 2019
1 parent 75343ea commit cb33191
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
32 changes: 32 additions & 0 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,38 @@ fieldset:disabled a.btn {
// stylelint-disable-next-line declaration-no-important
line-height: .875 !important; // Ensure .btn-icon is squared
}

// Boosted mod: social buttons
@each $network in map-keys($o-networks) {
$icon: str-replace(icon-conf($network, "icon"), "#boosted#", $black);
$icon-inverse: str-replace(icon-conf($network, "icon"), "#boosted#", $white);
.btn-#{$network} {
&,
&.btn-inverse:active {
background-color: $white;
background-image: escape-svg(url("data:image/svg+xml,#{$icon}"));
}

&:hover,
&:focus,
&:active,
&.btn-inverse {
background-image: escape-svg(url("data:image/svg+xml,#{$icon-inverse}"));
border-color: $white;
}

&:hover,
&:focus {
background-color: icon-conf($network, "color");
border-color: icon-conf($network, "color");
}

&:active {
background-color: $black;
border-color: $black;
}
}
}
// end mod


Expand Down
32 changes: 0 additions & 32 deletions scss/orangeIcons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2823,35 +2823,3 @@
@include svg-buy(theme-color("primary"));
}
}

@each $network in map-keys($o-networks) {
$icon: str-replace(icon-conf($network, "icon"), "#boosted#", $black);
$icon-inverse: str-replace(icon-conf($network, "icon"), "#boosted#", $white);
.btn-#{$network} {
&,
&.btn-inverse:active {
background-color: $white;
background-image: escape-svg(url("data:image/svg+xml,#{$icon}"));
}

&:hover,
&:focus,
&:active,
&.btn-inverse {
background-image: escape-svg(url("data:image/svg+xml,#{$icon-inverse}"));
border-color: $white;
}

&:hover,
&:focus {
background-color: icon-conf($network, "color");
border-color: icon-conf($network, "color");
}

&:active {
background-color: $black;
border-color: $black;
}
}
}

0 comments on commit cb33191

Please sign in to comment.