Skip to content

Commit

Permalink
Preview cards: Fix transparency for Safari
Browse files Browse the repository at this point in the history
Safari seems to be strict about the arguments to linear-gradient in
style sheets. `transparent` is not a color. Replace with
`rgba(255,255,255,0)`.
  • Loading branch information
donald committed Nov 4, 2019
1 parent 81e4bda commit d0c37e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpicms/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ body {
width: 100%;
border-bottom: 1.5em solid white;
position: absolute;
background-image: linear-gradient(to top, white, white, transparent);
background-image: linear-gradient(to top, white, white, rgba(255,255,255,0));
}

.is-preview h1, .is-preview h2, .is-preview h3, .is-preview h4, .is-preview h5, .is-preview h6 {
Expand Down Expand Up @@ -735,4 +735,4 @@ a.tag:hover {

.modal-image:hover, .richtext-image:hover {
cursor: pointer;
}
}

0 comments on commit d0c37e0

Please sign in to comment.