Skip to content

Commit b7ac75c

Browse files
committed
Set social buttons center in a partial
1 parent 81964cb commit b7ac75c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
%ol{:style => "list-style: none; margin-top: 30px;"}
2-
%li{:style => "display: inline-block; line-height: 11px; margin-left: -35px;"}
1+
%ol.text-center{:style => "list-style: none; margin-top: 30px; margin-left: 0px; padding-left: 0px; text-align: center;"}
2+
%li{:style => "display: inline-block; line-height: 11px;"}
33
%div.fb-like{"data-action" => "like", "data-href" => "#{full_url(yield(@url))}", "data-layout" => "button_count", "data-share" => "true", "data-show-faces" => "true"}
44
%li{:style => "display: inline-block;"}
55
%a.twitter-share-button{"data-hashtags" => "CoderDojo", "data-lang" => "ja", "data-text" => "#{full_title(yield(@title))}", "data-url" => "#{full_url(yield(@url))}", "data-via" => "CoderDojoJapan", href: "https://twitter.com/share", width: "100"} Tweet
66
:javascript
77
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
88
%li{:style => "display: inline-block;"}
9-
%a.hatena-bookmark-button{"data-hatena-bookmark-lang" => "ja", "data-hatena-bookmark-layout" => "basic", "data-hatena-bookmark-title" => "#{full_title(yield(@title))}", href: "#{full_url(yield(@url))}", title: "このエントリーをはてなブックマークに追加"}
10-
%img{alt: "このエントリーをはてなブックマークに追加", height: "20", src: "https://b.st-hatena.com/images/entry-button/button-only@2x.png", style: "border: none;", width: "20"}/
9+
%a.hatena-bookmark-button{"data-hatena-bookmark-lang" => "ja", "data-hatena-bookmark-layout" => "basic-label-counter", "data-hatena-bookmark-title" => "#{full_title(yield(@title))}", href: "#{full_url(yield(@url))}", title: "このエントリーをはてなブックマークに追加"}
10+
%img{alt: "このエントリーをはてなブックマークに追加", height: "20", src: "https://b.st-hatena.com/images/v4/public/entry-button/button-only@2x.png", style: "border: none;", width: "20"}/
1111
%script{async: "async", charset: "utf-8", src: "https://b.st-hatena.com/js/bookmark_button.js", type: "text/javascript"}
12-
%li{style: "display: none;"}
13-
%div.line-it-button{"data-lang" => "ja", "data-type" => "line", "data-url" => "#{full_url(yield(@url))}" }
14-
%script{src: "https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js", async: "async", defer: "defer"}
12+
%li{:style => "display: inline-block;"}
13+
%div.line-it-button{"data-lang" => "ja", "data-type" => "like", "data-url" => "#{full_url(yield(@url))}", style: "display: none;"}
14+
%script{async: "async", defer: "defer", src: "https://d.line-scdn.net/r/web/social-plugin/js/thirdparty/loader.min.js"}

0 commit comments

Comments
 (0)