Skip to content

Commit

Permalink
fix: Coverpage when content > viewport height
Browse files Browse the repository at this point in the history
fix #381
  • Loading branch information
jhildenbiddle committed Feb 3, 2022
1 parent fe14a50 commit bd95fc4
Showing 1 changed file with 5 additions and 4 deletions.
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 bd95fc4

Please sign in to comment.