From e2cccc998817426a542603cae4a5ef7abda4a8f7 Mon Sep 17 00:00:00 2001 From: Kevin Brown Date: Sat, 11 Jan 2014 18:31:36 -0500 Subject: [PATCH] Fixed reversed gradients, again The gradients that were fixed in #2002 had the wrong target value. Most of them were targetting the bottom, though not all of them, and the code set them to target the top. --- select2.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/select2.css b/select2.css index a6848abd..f3b6f074 100644 --- a/select2.css +++ b/select2.css @@ -53,7 +53,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@ background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%); background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0); - background-image: linear-gradient(to top, #eee 0%, #fff 50%); + background-image: linear-gradient(to bottom, #fff 0%, #eee 50%); } .select2-container.select2-drop-above .select2-choice { @@ -65,7 +65,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@ background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%); background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0); - background-image: linear-gradient(to top, #eee 0%, #fff 90%); + background-image: linear-gradient(to bottom, #eee 0%, #fff 90%); } .select2-container.select2-allowclear .select2-choice .select2-chosen { @@ -236,7 +236,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@ background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee)); background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%); background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%); - background: url('select2.png') no-repeat 100% -22px, linear-gradient(to top, #fff 85%, #eee 99%); + background: url('select2.png') no-repeat 100% -22px, linear-gradient(to bottom, #fff 85%, #eee 99%); } .select2-drop.select2-drop-above .select2-search input { @@ -248,7 +248,7 @@ Version: @@ver@@ Timestamp: @@timestamp@@ background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee)); background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%); background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%); - background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(to top, #fff 85%, #eee 99%); + background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(to bottom, #fff 85%, #eee 99%); } .select2-container-active .select2-choice, @@ -438,7 +438,7 @@ disabled look for disabled choices in the results dropdown background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff)); background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%); background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%); - background-image: linear-gradient(to top, #eee 1%, #fff 15%); + background-image: linear-gradient(to bottom, #eee 1%, #fff 15%); } .select2-locked {