-
Notifications
You must be signed in to change notification settings - Fork 886
Social logos: prefix token names & use as dependency around the repo #50413
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
Changes from all commits
0282fe0
a83894d
e02b83e
bb3b66a
c332840
ba121fe
9d57ed6
93fa770
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: changed | ||
|
|
||
| Comment: Prefix --color-* variables into --jetpack-social-logo-color-* CSS variables to avoid name collisions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: changed | ||
|
|
||
| Comment: Prefix --color-* variables into --jetpack-social-logo-color-* CSS variables to avoid name collisions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: changed | ||
|
|
||
| Comment: Prefix --color-* variables into --jetpack-social-logo-color-* CSS variables to avoid name collisions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,26 @@ | ||
| :root { | ||
| --color-blogger: #ff5722; | ||
| --color-bluesky: #1185fe; | ||
| --color-eventbrite: #ff8000; | ||
| --color-facebook: #0866ff; | ||
| --color-godaddy: #5ea95a; | ||
| --color-google-plus: #df4a32; | ||
| --color-instagram: #d93174; | ||
| --color-linkedin: #0976b4; | ||
| --color-mastodon: #6364ff; | ||
| --color-medium: #12100e; | ||
| --color-nextdoor: #8ed500; | ||
| --color-pinterest: #cc2127; | ||
| --color-print: #f8f8f8; | ||
| --color-reddit: #ff4500; | ||
| --color-squarespace: #222; | ||
| --color-stumbleupon: #eb4924; | ||
| --color-substack: #ff6719; | ||
| --color-telegram: #08c; | ||
| --color-tumblr: #35465c; | ||
| --color-twitter: #55acee; | ||
| --color-threads: #000; | ||
| --color-whatsapp: #43d854; | ||
| --color-wix: #faad4d; | ||
| --color-x: #000; | ||
| --jetpack-social-logo-color-blogger: #ff5722; | ||
| --jetpack-social-logo-color-bluesky: #1185fe; | ||
| --jetpack-social-logo-color-eventbrite: #ff8000; | ||
| --jetpack-social-logo-color-facebook: #0866ff; | ||
| --jetpack-social-logo-color-godaddy: #5ea95a; | ||
| --jetpack-social-logo-color-google-plus: #df4a32; | ||
| --jetpack-social-logo-color-instagram: #d93174; | ||
| --jetpack-social-logo-color-linkedin: #0976b4; | ||
| --jetpack-social-logo-color-mastodon: #6364ff; | ||
| --jetpack-social-logo-color-medium: #12100e; | ||
| --jetpack-social-logo-color-nextdoor: #8ed500; | ||
| --jetpack-social-logo-color-pinterest: #cc2127; | ||
| --jetpack-social-logo-color-print: #f8f8f8; | ||
| --jetpack-social-logo-color-reddit: #ff4500; | ||
| --jetpack-social-logo-color-squarespace: #222; | ||
| --jetpack-social-logo-color-stumbleupon: #eb4924; | ||
| --jetpack-social-logo-color-substack: #ff6719; | ||
| --jetpack-social-logo-color-telegram: #08c; | ||
| --jetpack-social-logo-color-tumblr: #35465c; | ||
| --jetpack-social-logo-color-twitter: #55acee; | ||
| --jetpack-social-logo-color-threads: #000; | ||
| --jetpack-social-logo-color-whatsapp: #43d854; | ||
| --jetpack-social-logo-color-wix: #faad4d; | ||
| --jetpack-social-logo-color-x: #000; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| $whatsapp: #2ab318; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new value is
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The original variable was added in #33074, quite some time ago, so WhatsApp might have since then updated the colours. Furthermore, in the logos from their logo pack, it's To me, it looks like the |
||
| @use "social-logos/colors.css"; | ||
|
|
||
| .share-buttons { | ||
| display: flex; | ||
|
|
@@ -36,11 +36,11 @@ $whatsapp: #2ab318; | |
| } | ||
|
|
||
| .whatsapp { | ||
| background-color: $whatsapp; | ||
| background-color: var(--jetpack-social-logo-color-whatsapp); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using shared |
||
| } | ||
|
|
||
| .facebook { | ||
| background-color: var(--color-facebook); | ||
| background-color: var(--jetpack-social-logo-color-facebook); | ||
| // I hate !important, but social icon has it, so it needs to be overriden | ||
| border-radius: var(--jp-border-radius) !important; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: changed | ||
|
|
||
| Comment: Prefix --color-* variables into --jetpack-social-logo-color-* CSS variables to avoid name collisions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Significance: patch | ||
| Type: other | ||
|
|
||
| Comment: Prefix --color-* variables into --jetpack-social-logo-color-* CSS variables to avoid name collisions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| @use "social-logos/colors.css"; | ||
|
|
||
| a.jetpack-sharing-button__button { | ||
| color: inherit; | ||
| } | ||
|
|
@@ -50,63 +52,63 @@ a.jetpack-sharing-button__button { | |
| color: #fff; | ||
|
|
||
| &.share-bluesky { | ||
| background: var(--color-bluesky); | ||
| background: var(--jetpack-social-logo-color-bluesky); | ||
| } | ||
|
|
||
| &.share-x { | ||
| background: #000; | ||
| } | ||
|
Comment on lines
56
to
-58
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replaced |
||
|
|
||
| &.share-print { | ||
| background: #c5c2c2; | ||
| background: var(--jetpack-social-logo-color-x); | ||
| } | ||
|
|
||
| &.share-reddit { | ||
| background: var(--color-reddit); | ||
| background: var(--jetpack-social-logo-color-reddit); | ||
| } | ||
|
|
||
| &.share-facebook { | ||
| background: var(--color-facebook); | ||
| background: var(--jetpack-social-logo-color-facebook); | ||
| } | ||
|
|
||
| &.share-linkedin { | ||
| background: var(--color-linkedin); | ||
| } | ||
|
|
||
| &.share-mail { | ||
| background: #c5c2c2; | ||
| background: var(--jetpack-social-logo-color-linkedin); | ||
| } | ||
|
|
||
| &.share-twitter { | ||
| background: var(--color-twitter); | ||
| background: var(--jetpack-social-logo-color-twitter); | ||
| } | ||
|
|
||
| &.share-tumblr { | ||
| background: var(--color-tumblr); | ||
| background: var(--jetpack-social-logo-color-tumblr); | ||
| } | ||
|
|
||
| &.share-pinterest { | ||
| background: var(--color-pinterest); | ||
| background: var(--jetpack-social-logo-color-pinterest); | ||
| } | ||
|
|
||
| &.share-telegram { | ||
| background: var(--color-telegram); | ||
| background: var(--jetpack-social-logo-color-telegram); | ||
| } | ||
|
|
||
| &.share-threads { | ||
| background: var(--color-threads); | ||
| background: var(--jetpack-social-logo-color-threads); | ||
| } | ||
|
|
||
| &.share-whatsapp { | ||
| background: var(--color-whatsapp); | ||
| background: var(--jetpack-social-logo-color-whatsapp); | ||
| } | ||
|
|
||
| &.share-mastodon { | ||
| background: var(--color-mastodon); | ||
| background: var(--jetpack-social-logo-color-mastodon); | ||
| } | ||
|
|
||
| &.share-nextdoor { | ||
| background: var(--color-nextdoor); | ||
| background: var(--jetpack-social-logo-color-nextdoor); | ||
| } | ||
|
|
||
| &.share-print { | ||
| background: #c5c2c2; | ||
| } | ||
|
|
||
| &.share-mail { | ||
| background: #c5c2c2; | ||
|
Comment on lines
+106
to
+111
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simply moved these down to group selectors using tokens from the rest. |
||
| } | ||
|
|
||
| &.share-share { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, why do we still have Google+ around? The service was shut down in 2019.
https://en.wikipedia.org/wiki/Google%2B
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good question. We can create a task to retire it fully (altough I think most of the logic was retired already)