From 2f2611f498d4cd501d0bbb49ce273a0ce3e06aba Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Sat, 11 Apr 2020 20:27:09 +0800 Subject: [PATCH] theme: style: make position sticky work correctly Parents cannot have `overflow: hidden`. Also removed position absolute for the wrapper and instead rely on inline-block for horizontal center --- theme/default/static/style.css | 3 --- 1 file changed, 3 deletions(-) diff --git a/theme/default/static/style.css b/theme/default/static/style.css index 5d8799d..1714e57 100644 --- a/theme/default/static/style.css +++ b/theme/default/static/style.css @@ -7,7 +7,6 @@ html, body { font-family: 'Fira Sans', sans-serif; font-size: 18px; text-shadow: 0 0 3px #dddddd; - overflow-x: hidden; color: rgb(100, 100, 100); scrollbar-color: #E91E63 #00000000; scrollbar-width: thin; @@ -47,8 +46,6 @@ body { .page-wrapper { display: inline-block; - position: absolute; - left: 25vw; padding-top: 10px; width: 60vw; max-width: 1000px;