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 Feb 3, 2022
1 parent 18cd18c commit 301b516
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

1 comment on commit 301b516

@vercel
Copy link

@vercel vercel bot commented on 301b516 Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.