From 301b5169613e95765eda335a4b21d0f9f9cbbbfd Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Thu, 3 Feb 2022 16:03:34 -0600 Subject: [PATCH] fix: Coverpage when content > viewport height (#1744) * fix: .gitignore paths * fix: Coverpage when content > viewport height fix #381 --- .gitignore | 10 +++++----- src/themes/basic/_coverpage.styl | 9 +++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 00cdf483..ba0c4871 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,11 @@ .DS_Store .idea *.log -_playwright-report -_playwright-results -lib -node_modules -themes +/_playwright-report +/_playwright-results +/lib +/node_modules +/themes # exceptions !.gitkeep diff --git a/src/themes/basic/_coverpage.styl b/src/themes/basic/_coverpage.styl index 19ba8066..13e04fc4 100644 --- a/src/themes/basic/_coverpage.styl +++ b/src/themes/basic/_coverpage.styl @@ -1,10 +1,11 @@ section.cover + position relative align-items center background-position center center background-repeat no-repeat background-size cover - height 100vh - width 100vw + min-height 100vh + width 100% display none &.show @@ -15,12 +16,12 @@ section.cover opacity 0.8 position absolute top 0 - height 100% + bottom 0 width 100% .cover-main flex 1 - margin -20px 16px 0 + margin 0 16px text-align center position: relative