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
This commit is contained in:
Peter Cai 2020-04-11 20:27:09 +08:00
parent 1c6fa0ec7d
commit 2f2611f498
No known key found for this signature in database
GPG Key ID: 71F5FB4E4F3FD54F
1 changed files with 0 additions and 3 deletions

View File

@ -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;