Skip to content

Commit

Permalink
Compressed share icons (#36955)
Browse files Browse the repository at this point in the history
* Compressed share icons

* Removed google+ assets

* Simplify twitter share icon

* Not fail with gplus

* Not block space for gplus
  • Loading branch information
mszylkowski authored Nov 18, 2021
1 parent 6d78de5 commit a1d9baa
Show file tree
Hide file tree
Showing 76 changed files with 42 additions and 240 deletions.
24 changes: 22 additions & 2 deletions examples/amp-story/share.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,36 @@
<amp-story-page id="cover">
<amp-story-grid-layer template="vertical">
<h1>Check the share providers</h1>
<h2>Should show Facebook and Whatsapp</h2>
<h2>Should show:</h2>
<ol>
<li>Copy link</li>
<li>Twitter</li>
<li>Facebook</li>
<li>Pinterest</li>
<li>Linkedin</li>
<li>Tumblr</li>
<li>Email</li>
<li>Whataspp</li>
<li>Line</li>
<li>SMS</li>
</ol>
</amp-story-grid-layer>
</amp-story-page>

<amp-story-social-share layout="nodisplay">
<script type="application/json">
{
"shareProviders": [
"twitter",
"facebook",
"whatsapp"
"pinterest",
"linkedin",
"tumblr",
"gplus",
"email",
"whatsapp",
"line",
"sms"
]
}
</script>
Expand Down
5 changes: 0 additions & 5 deletions extensions/amp-social-share/0.1/amp-social-share.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ amp-social-share:focus {
background-color: #0077b5;
}

/* Google+ Styling */
.amp-social-share-gplus {
background-color: #dc4e41;
}

/* Tumblr Styling */
.amp-social-share-tumblr {
background-color: #3c5a77;
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Kry skakel"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/am.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "ፌስቡክ"
},
"8": {
"string": "Google+"
},
"9": {
"string": "ማስፈንጠሪያውን ያግኙ"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "الحصول على رابط"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Получаване на връзка"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "ফেসবুক"
},
"8": {
"string": "গুগল+"
},
"9": {
"string": "লিংক অর্জন করুন"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Preuzmi vezu"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Obtén l'enllaç"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Získat odkaz"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Hent link"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Link abrufen"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Λήψη συνδέσμου"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Get Link"
},
Expand Down
4 changes: 0 additions & 4 deletions extensions/amp-story/1.0/_locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@
"string": "Facebook",
"description": "Button label for the share target that shares a link via Facebook."
},
"8": {
"string": "Google+",
"description": "Button label for the share target that shares a link via Google+."
},
"9": {
"string": "Get Link",
"description": "Button label for the share target that shares a link via by copying it to the user's clipboard."
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/es-419.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Obtener enlace"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Obtener enlace"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Hangi link"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Lortu esteka"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "فیس‌بوک"
},
"8": {
"string": "گوگل پلاس"
},
"9": {
"string": "دریافت پیوند"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Hae linkki"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/fil.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Kunin ang Link"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Obtenir le lien"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Obter ligazón"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/gu.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "લિંક મેળવો"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "लिंक पाएं"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Nabavite poveznicu"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Link mutatása"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Dapatkan Tautan"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/is.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Fá tengil"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "Ottieni link"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/iw.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "+Google"
},
"9": {
"string": "קבל קישור"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "リンクを取得"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/ka.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "ბმულის მიღება"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/km.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "យក​តំណ"
},
Expand Down
3 changes: 0 additions & 3 deletions extensions/amp-story/1.0/_locales/kn.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
"7": {
"string": "Facebook"
},
"8": {
"string": "Google+"
},
"9": {
"string": "ಲಿಂಕ್ ಪಡೆಯಿರಿ"
},
Expand Down
Loading

0 comments on commit a1d9baa

Please sign in to comment.