Skip to content

Commit

Permalink
Added CSS Markdown class for full width background gradient header im…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
paulhibbitts committed Jan 22, 2024
1 parent 39c4b7b commit 85fee82
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions docs/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,20 @@
z-index: -1;
}

@media screen and (max-width: 980px) {
.markdown-section .header-image-fade {
top: -20px;
}
/* CSS currently only works with sidebar and standalone pages */
.markdown-section .header-image-fade-full-width {
margin-top: -2rem;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
position: absolute;
width: 100vw;
max-width: 100vw;
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
opacity: 0.4;
z-index: -1;
}

/* CSS currently only works with sidebar and standalone pages */
Expand Down

0 comments on commit 85fee82

Please sign in to comment.