forked from geonetwork/core-geonetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the twitter X icon and update the social icons and replace the fo…
…nt with svg icons.
- Loading branch information
1 parent
fb966e3
commit 547aa4a
Showing
5 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
37 changes: 21 additions & 16 deletions
37
web-ui/src/main/resources/catalog/components/search/mdview/partials/social.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,45 @@ | ||
<section class="gn-md-side-social"> | ||
<h2 data-translate="">shareOn</h2> | ||
<div class="btn-group"> | ||
<div> | ||
<a | ||
data-ng-href="https://twitter.com/share?url={{socialMediaLink | encodeURIComponent}}" | ||
title="{{'shareOnTwitter' | translate}}" | ||
target="_blank" | ||
class="btn btn-default" | ||
><i class="fa fa-fw fa-twitter"></i | ||
></a> | ||
class="btn btn-default btn-round" | ||
> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"/></svg> | ||
</a> | ||
<a | ||
data-ng-href="https://www.facebook.com/sharer.php?u={{socialMediaLink | encodeURIComponent}}" | ||
title="{{'shareOnFacebook' | translate}}" | ||
target="_blank" | ||
class="btn btn-default" | ||
><i class="fa fa-fw fa-facebook"></i | ||
></a> | ||
class="btn btn-default btn-round" | ||
> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"/></svg> | ||
</a> | ||
<a | ||
data-ng-href="http://www.linkedin.com/sharing/share-offsite/?url={{socialMediaLink | encodeURIComponent}}" | ||
title="{{'shareOnLinkedIn' | translate}}" | ||
target="_blank" | ||
class="btn btn-default" | ||
><i class="fa fa-fw fa-linkedin"></i | ||
></a> | ||
class="btn btn-default btn-round" | ||
> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M100.3 448H7.4V148.9h92.9zM53.8 108.1C24.1 108.1 0 83.5 0 53.8a53.8 53.8 0 0 1 107.6 0c0 29.7-24.1 54.3-53.8 54.3zM447.9 448h-92.7V302.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V448h-92.8V148.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V448z"/></svg> | ||
</a> | ||
<a | ||
data-ng-href="mailto:?subject={{md.resourceTitle}}&body={{socialMediaLink | encodeURIComponent}}" | ||
title="{{'shareByEmail' | translate}}" | ||
target="_blank" | ||
class="btn btn-default" | ||
><i class="fa fa-fw fa-envelope-o"></i | ||
></a> | ||
class="btn btn-default btn-round" | ||
> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M64 112c-8.8 0-16 7.2-16 16l0 22.1L220.5 291.7c20.7 17 50.4 17 71.1 0L464 150.1l0-22.1c0-8.8-7.2-16-16-16L64 112zM48 212.2L48 384c0 8.8 7.2 16 16 16l384 0c8.8 0 16-7.2 16-16l0-171.8L322 328.8c-38.4 31.5-93.7 31.5-132 0L48 212.2zM0 128C0 92.7 28.7 64 64 64l384 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128z"/></svg> | ||
</a> | ||
<a | ||
data-ng-click="mdService.getPermalink(md)" | ||
href="" | ||
title="{{'permalink' | translate}}" | ||
class="btn btn-default" | ||
><i class="fa fa-fw fa-link"></i | ||
></a> | ||
class="btn btn-default btn-round" | ||
> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"/></svg> | ||
</a> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,8 @@ | |
background-color: @gn-bottombar-background-hover !important; | ||
} | ||
} | ||
svg { | ||
height: 16px; | ||
margin-top: 2px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters