fix: Coverpage when content > viewport height (#1744)

* fix: .gitignore paths
* fix: Coverpage when content > viewport height

fix #381
This commit is contained in:
John Hildenbiddle 2022-02-03 16:03:34 -06:00 committed by GitHub
parent 18cd18ce04
commit 301b516961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 9 deletions

10
.gitignore vendored
View File

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

View File

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