Skip to content

Commit

Permalink
fix: Coverpage when content > viewport height (#1744)
Browse files Browse the repository at this point in the history
* fix: .gitignore paths
* fix: Coverpage when content > viewport height

fix #381
  • Loading branch information
jhildenbiddle authored and Koooooo-7 committed Oct 26, 2022
1 parent a23816d commit 4349bad
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
9 changes: 5 additions & 4 deletions src/themes/basic/_coverpage.styl
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down

0 comments on commit 4349bad

Please sign in to comment.