Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Xianmin <xianmin12@gmail.com>2018-07-12 07:11:04 +0300
committerChen Xianmin <xianmin12@gmail.com>2018-07-12 07:11:04 +0300
commitde6ffedd7d38aee8332c67687e816e845bb78780 (patch)
tree9d84effa6cf5c954e8d6c02bc9deb38feee99ebe
parentdbe4a41a87e71400c78821cf913f5e3a3fccc295 (diff)
fix: fork-me-on-github display none in mobile
-rw-r--r--layouts/_default/baseof.html13
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>