Skip to content

Commit

Permalink
Disable gradient on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Mar 31, 2021
1 parent c27b2be commit 200ef9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/templates/latest/magazine/css-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ hr {

.nav {overflow:hidden;}
.nav a.no-wrap {width:1000%;text-decoration:none;}

/*
TODO enable once we support color manipulation functions
We get an ugly gradient in safari when we don't use a fully
transparent version of the {{background_color}}. See this:
https://css-tricks.com/thing-know-gradients-transparent-black/
.nav:after {
width:2rem;
position:absolute;
Expand All @@ -162,6 +171,7 @@ hr {
background: linear-gradient(to right,transparent,{{background_color}});
}
*/

.no-border-5 a:nth-child(n+5) .bb {display:none}
.no-border-4 a:nth-child(n+4) .bb {display:none}
Expand Down

0 comments on commit 200ef9d

Please sign in to comment.