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

github.com/qqhann/hugo-primer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqiugits <qiu.gits@gmail.com>2018-06-24 22:48:26 +0300
committerqiugits <qiu.gits@gmail.com>2018-06-24 22:48:26 +0300
commit3bdfe6f8fbd02f2dc78f02d9a8c180cab84bee5b (patch)
treee5132b95145f78226dd64511437c3a7e22908d13
parenta34c29a1ac7d0141846ae75a7048013de4eb9d21 (diff)
Fix glitch in Safariv0.2.3
-rw-r--r--layouts/_default/baseof.html4
-rw-r--r--static/assets/style.css1
2 files changed, 3 insertions, 2 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5a66fe0..7e469ae 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -20,7 +20,7 @@
{{ partial "header.html" . }}
</div>
- <div role="main" id="main" class="holy-main markdown-body px-4">
+ <div role="main" id="main" class="holy-main markdown-body px-4 bg-white">
{{ block "main" . }}
<article>
<h1>{{ .Title }}</h1>
@@ -31,7 +31,7 @@
{{ end }}
</div>
- <div id="side" class="pr-1">
+ <div id="side" class="pr-1 bg-white">
<aside class="pr-3">
{{ block "side" . }}
{{ end }}
diff --git a/static/assets/style.css b/static/assets/style.css
index f638dd9..b84c95d 100644
--- a/static/assets/style.css
+++ b/static/assets/style.css
@@ -22,6 +22,7 @@
width: 230px;
}
aside {
+ position: -webkit-sticky;
position: sticky;
top: 0;
max-height: 100vh;