Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tumblr type to <AwesomeButtonSocial/> #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

25 changes: 24 additions & 1 deletion dist/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
--button-youtube-color: #cc181e;
--button-youtube-color-dark: #881014;
--button-instagram-radial-color: radial-gradient(circle at 25% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
--button-instagram-radial-color-dark: radial-gradient(circle at 25% 110%, #b9a800 0%, #938500 5%, #b10f00 45%, #8c0061 60%, #002ca9 90%); }
--button-instagram-radial-color-dark: radial-gradient(circle at 25% 110%, #b9a800 0%, #938500 5%, #b10f00 45%, #8c0061 60%, #002ca9 90%);
--button-tumblr-color: #36465D;
--button-tumblr-color-dark: #1a222d; }

/**
button-color:
Expand Down Expand Up @@ -459,6 +461,27 @@ button.aws-btn .aws-btn__wrapper {
justify-content: center; }
.aws-btn--youtube.aws-btn--progress .aws-btn__progress:before, .aws-btn--youtube.aws-btn--progress .aws-btn__progress:after {
color: #FFFFFF; }
.aws-btn--tumblr .aws-btn__wrapper:before {
background: #1a222d; }
.aws-btn--tumblr .aws-btn__content {
background: #36465D;
color: #FFFFFF; }
.aws-btn--tumblr .aws-btn__content path {
fill: #FFFFFF; }
.aws-btn--tumblr.aws-btn--progress .aws-btn__content > span {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 100%;
width: 100%;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center; }
.aws-btn--tumblr.aws-btn--progress .aws-btn__progress:before, .aws-btn--tumblr.aws-btn--progress .aws-btn__progress:after {
color: #FFFFFF; }
.aws-btn--mail .aws-btn__wrapper:before {
background: #9c9c9c; }
.aws-btn--mail .aws-btn__content {
Expand Down
2 changes: 2 additions & 0 deletions src/components/AwesomeButtonSocial/icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/components/AwesomeButtonSocial/sharer.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ export default function Sharer({
args.url = url;
args.title = '_self';
break;
case 'tumblr':
args.url = url;
args.title = '_self';
break;
default:
return args;
}
Expand Down
2 changes: 2 additions & 0 deletions src/styles/base/custom-properties.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
--button-youtube-color-dark: #{$button-youtube-color-dark};
--button-instagram-radial-color: #{$button-instagram-radial-color};
--button-instagram-radial-color-dark: #{$button-instagram-radial-color-dark};
--button-tumblr-color: #{$button-tumblr-color};
--button-tumblr-color-dark: #{$button-tumblr-color-dark};
}

.#{$button-root} {
Expand Down
6 changes: 6 additions & 0 deletions src/styles/base/lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ $button-social-colors:
$button-youtube-color-dark,
#FFFFFF
),
(
"tumblr",
$button-tumblr-color,
$button-tumblr-color-dark,
#FFFFFF
),
(
"mail",
$button-mail-color,
Expand Down
4 changes: 4 additions & 0 deletions src/styles/base/variables/share.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ $button-gplus-color-dark: darken($button-gplus-color, 15%);
$button-youtube-color: #cc181e;
$button-youtube-color-dark: darken($button-youtube-color, 15%);

// Tumblr
$button-tumblr-color: #36465D;
$button-tumblr-color-dark: darken($button-tumblr-color, 15%);

// Instagram
$button-instagram-radial-color: radial-gradient(circle at 25% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
$button-instagram-radial-color-dark: radial-gradient(circle at 25% 110%, #b9a800 0%, #938500 5%, #b10f00 45%,#8c0061 60%,#002ca9 90%);