Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Coverpage when content > viewport height #1744

Merged
merged 2 commits into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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