share icon outline and text deleted

This commit is contained in:
zzossig 2020-01-24 04:44:09 +09:00
parent f6c6469cd6
commit 96888c4bce
3 changed files with 17 additions and 37 deletions

View File

@ -27,7 +27,6 @@
&__item { &__item {
font-family: $title-font; font-family: $title-font;
font-size: 0.8rem; font-size: 0.8rem;
padding: 0.1rem 0.325rem 0.1rem 0.25rem;
cursor: pointer; cursor: pointer;
border-radius: 0.25rem; border-radius: 0.25rem;
margin: 0.25rem; margin: 0.25rem;
@ -35,17 +34,6 @@
@include flexbox(); @include flexbox();
@include align-items(center); @include align-items(center);
@include themify($themes) {
text-decoration: none;
color: themed('social-icon-color');
border: 1px solid themed('social-icon-color');
&:hover {
color: themed('social-icon-hover-color');
border: 1px solid themed('social-icon-hover-color');
@include transition(color, 0.2s, ease);
}
}
svg { svg {
margin-right: 0.25rem; margin-right: 0.25rem;

View File

@ -9,44 +9,36 @@
{{ $site := .Site }} {{ $site := .Site }}
{{ range $.Param "share.options" }} {{ range $.Param "share.options" }}
{{ if eq (lower .) "facebook" }} {{ if eq (lower .) "facebook" }}
<a href="https://www.facebook.com/sharer/sharer.php?u={{ $ctx.Permalink | absLangURL }}" title="{{ . }}" aria-label="{{ . }}" class="donation__item" target="_blank" rel="noreferrer"> <a href="https://www.facebook.com/sharer/sharer.php?u={{ $ctx.Permalink | absLangURL }}" title="{{ i18n "facebook" | default "Facebook" }}" aria-label="{{ . }}" class="donation__item" target="_blank" rel="noreferrer">
{{ partial "svgs/share/facebook.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/facebook.svg" (dict "width" 35 "height" 35) }}
{{ i18n "facebook" | default "Facebook" }}
</a> </a>
{{ else if eq (lower .) "twitter" }} {{ else if eq (lower .) "twitter" }}
<a href="https://twitter.com/intent/tweet?text={{ $ctx.Title }}&url={{ $ctx.Permalink | absLangURL }}{{ with $ctx.Params.tags }}&hashtags={{ delimit . "," }}{{ end }}{{ with $ctx.Params.author }}&via={{ . }}{{ end }}" title="{{ . }}" aria-label="{{ . }}" class="donation__item" target="_blank" rel="noreferrer"> <a href="https://twitter.com/intent/tweet?text={{ $ctx.Title }}&url={{ $ctx.Permalink | absLangURL }}{{ with $ctx.Params.tags }}&hashtags={{ delimit . "," }}{{ end }}{{ with $ctx.Params.author }}&via={{ . }}{{ end }}" title="{{ i18n "twitter" | default "Twitter" }}" aria-label="{{ . }}" class="donation__item" target="_blank" rel="noreferrer">
{{ partial "svgs/share/twitter.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/twitter.svg" (dict "width" 35 "height" 35) }}
{{ i18n "twitter" | default "Twitter" }}
</a> </a>
{{ else if eq (lower .) "reddit" }} {{ else if eq (lower .) "reddit" }}
<a href="https://www.reddit.com/submit?url={{ $ctx.Permalink | absLangURL }}&amp;title={{ $ctx.Title }}" target="_blank" rel="noreferer" title="{{ . }}" onclick="window.open('http://www.reddit.com/submit?url=' + encodeURIComponent(document.URL) + '&amp;title=' + encodeURIComponent(document.title)); return false;" class="donation__item"> <a href="https://www.reddit.com/submit?url={{ $ctx.Permalink | absLangURL }}&amp;title={{ $ctx.Title }}" target="_blank" rel="noreferer" title="{{ i18n "reddit" | default "Reddit" }}" aria-label="{{ . }}" onclick="window.open('http://www.reddit.com/submit?url=' + encodeURIComponent(document.URL) + '&amp;title=' + encodeURIComponent(document.title)); return false;" class="donation__item">
{{ partial "svgs/share/reddit.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/reddit.svg" (dict "width" 35 "height" 35) }}
{{ i18n "reddit" | default "Reddit" }}
</a> </a>
{{ else if eq (lower .) "linkedin" }} {{ else if eq (lower .) "linkedin" }}
<a href="https://www.linkedin.com/shareArticle?mini=true&url={{ $ctx.Permalink | absLangURL }}&title={{ $ctx.Title }} &summary={{ $ctx.Description }}&source={{ $site.Params.Description }}" target="_blank" rel="noreferer" title="{{ . }}" class="donation__item"> <a href="https://www.linkedin.com/shareArticle?mini=true&url={{ $ctx.Permalink | absLangURL }}&title={{ $ctx.Title }} &summary={{ $ctx.Description }}&source={{ $site.Params.Description }}" target="_blank" rel="noreferer" title="{{ i18n "linkedin" | default "LinkedIn" }}" aria-label="{{ . }}" class="donation__item">
{{ partial "svgs/share/linkedin.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/linkedin.svg" (dict "width" 35 "height" 35) }}
{{ i18n "linkedin" | default "LinkedIn" }}
</a> </a>
{{ else if eq (lower .) "tumblr" }} {{ else if eq (lower .) "tumblr" }}
<a href="http://tumblr.com/widgets/share/tool?canonicalUrl={{ $ctx.Permalink | absLangURL }}&data-title={{ $ctx.Title }}&data-content={{ $ctx.Description }}" class="donation__item" target="_blank" rel="noreferer"> <a href="http://tumblr.com/widgets/share/tool?canonicalUrl={{ $ctx.Permalink | absLangURL }}&data-title={{ $ctx.Title }}&data-content={{ $ctx.Description }}" class="donation__item" target="_blank" rel="noreferer" title="{{ i18n "tumblr" | default "Tumblr" }}" aria-label="{{ . }}">
{{ partial "svgs/share/tumblr.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/tumblr.svg" (dict "width" 35 "height" 35) }}
{{ i18n "tumblr" | default "Tumblr" }}
</a> </a>
{{ else if eq (lower .) "weibo" }} {{ else if eq (lower .) "weibo" }}
<a href="javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://service.weibo.com/share/share.php?url='+e(d.location.href)+'&title='+e(d.title),x=function(){if(!window.open(r,'weibo','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" class="donation__item" target="_blank" rel="noreferer"> <a href="javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='http://service.weibo.com/share/share.php?url='+e(d.location.href)+'&title='+e(d.title),x=function(){if(!window.open(r,'weibo','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" class="donation__item" target="_blank" rel="noreferer" title="{{ i18n "weibo" | default "Weibo" }}" aria-label="{{ . }}">
{{ partial "svgs/share/weibo.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/weibo.svg" (dict "width" 35 "height" 35) }}
{{ i18n "weibo" | default "Weibo" }}
</a> </a>
{{ else if eq (lower .) "douban" }} {{ else if eq (lower .) "douban" }}
<a href="javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='https://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',w=450,h=330,x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width='+w+',height='+h+',left='+(screen.width-w)/2+',top='+(screen.height-h)/2))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" class="donation__item" target="_blank" rel="noreferer"> <a href="javascript:void(function(){var d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:'',r='https://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',w=450,h=330,x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width='+w+',height='+h+',left='+(screen.width-w)/2+',top='+(screen.height-h)/2))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" class="donation__item" target="_blank" rel="noreferer" title="{{ i18n "douban" | default "Douban" }}" aria-label="{{ . }}">
{{ partial "svgs/share/douban.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/douban.svg" (dict "width" 35 "height" 35) }}
{{ i18n "douban" | default "Douban" }}
</a> </a>
{{ else if eq (lower .) "line" }} {{ else if eq (lower .) "line" }}
<a href="https://social-plugins.line.me/lineit/share?url={{ $ctx.Permalink | absLangURL }}" class="donation__item" target="_blank" rel="noreferer"> <a href="https://social-plugins.line.me/lineit/share?url={{ $ctx.Permalink | absLangURL }}" class="donation__item" target="_blank" rel="noreferer" title="{{ i18n "line" | default "Line" }}" aria-label="{{ . }}">
{{ partial "svgs/share/line.svg" (dict "width" 23 "height" 23) }} {{ partial "svgs/share/line.svg" (dict "width" 35 "height" 35) }}
{{ i18n "line" | default "Line" }}
</a> </a>
{{ end }} {{ end }}
{{ end }} {{ end }}