Skip to content

Commit bd95fc4

Browse files
committed
fix: Coverpage when content > viewport height
fix #381
1 parent fe14a50 commit bd95fc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: src/themes/basic/_coverpage.styl

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
section.cover
2+
position relative
23
align-items center
34
background-position center center
45
background-repeat no-repeat
56
background-size cover
6-
height 100vh
7-
width 100vw
7+
min-height 100vh
8+
width 100%
89
display none
910

1011
&.show
@@ -15,12 +16,12 @@ section.cover
1516
opacity 0.8
1617
position absolute
1718
top 0
18-
height 100%
19+
bottom 0
1920
width 100%
2021

2122
.cover-main
2223
flex 1
23-
margin -20px 16px 0
24+
margin 0 16px
2425
text-align center
2526
position: relative
2627

0 commit comments

Comments
 (0)