Skip to content

Commit

Permalink
Work around Firefox rendering bug
Browse files Browse the repository at this point in the history
For some reason, the box-shadow CSS property seems to slow down scrolling
like hell on long pages on Firefox 45. Gradients are a little bit less
pretty than shadows, but at least they don’t slow down scrolling.

Refs #1055.
  • Loading branch information
jiru committed Mar 14, 2016
1 parent d1b2ea0 commit 51d4771
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/webroot/css/layouts/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,7 @@ rt {
margin: 0 0 20px 0;
font-size: 13px;
border-bottom: 1px solid #ededed;
-webkit-box-shadow: inset 0 -50px 30px -10px rgba(245, 245, 245, 1);
-moz-box-shadow: inset 0 -50px 30px -10px rgba(245, 245, 245, 1);
box-shadow: inset 0 -50px 30px -10px rgba(245, 245, 245, 1);
background: linear-gradient(to top, rgba(245, 245, 245, 1) 0%, rgba(255, 255, 255, 0) 100px, rgba(255, 255, 255, 0) 100%);
}
#annexe_content .module {
margin-left: 5px;
Expand Down

0 comments on commit 51d4771

Please sign in to comment.