diff options
author | jesselau76 <jesselau76@gmail.com> | 2018-11-24 08:26:17 +0300 |
---|---|---|
committer | jesselau76 <jesselau76@gmail.com> | 2018-11-24 08:26:17 +0300 |
commit | a1f33120114b756d3689e9db870cb66fcddc2f27 (patch) | |
tree | 2f089d939d757d3fa9d4b640b3fbe2d882f38690 | |
parent | 72a7df322a06464573bb2fe24eb57f4852b13dfb (diff) |
change postion of social share bar on medium and small screen
-rw-r--r-- | layouts/_default/baseof.html | 7 | ||||
-rw-r--r-- | static/css/style.css | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 6a8a68d..c69a7a3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -25,6 +25,9 @@ <div id="content" > {{ block "main" . }}{{ end }} </div> + {{ if .Site.Params.socialshare }} + {{ partial "socialshare.html" . }} + {{ end }} {{ block "commentornotes" . }} {{ partial "comments.html" . }} {{ end }} @@ -112,8 +115,6 @@ function scrollFunction() { {{ with .Params.customfooter }} {{ . | safeHTML }} {{ end }} -{{ if .Site.Params.socialshare }} - {{ partial "socialshare.html" . }} -{{ end }} + </body> </html> diff --git a/static/css/style.css b/static/css/style.css index ac25672..8921192 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -86,6 +86,7 @@ em { .icon-bar { position: fixed; top: 50%; + left:0; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); |