diff options
author | Chen Xianmin <xianmin12@gmail.com> | 2018-07-12 07:11:04 +0300 |
---|---|---|
committer | Chen Xianmin <xianmin12@gmail.com> | 2018-07-12 07:11:04 +0300 |
commit | de6ffedd7d38aee8332c67687e816e845bb78780 (patch) | |
tree | 9d84effa6cf5c954e8d6c02bc9deb38feee99ebe | |
parent | dbe4a41a87e71400c78821cf913f5e3a3fccc295 (diff) |
fix: fork-me-on-github display none in mobile
-rw-r--r-- | layouts/_default/baseof.html | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0d002f4..f4b2597 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -18,8 +18,19 @@ {{ end }} {{ if .Site.Params.forkMeOnGithub }} + <style scoped> + .fork-me-on-github { + position: absolute; top: 0; left: 0; border: 0; + } + @media (max-width: 1080px) { + .fork-me-on-github { + display: none; + } + } + </style> + <a href="{{ .Site.Params.forkMeOnGithub }}"> - <img style="position: absolute; top: 0; left: 0; border: 0;" + <img class="fork-me-on-github" src="https://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png" alt="Fork me on GitHub"> </a> |