]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2436 Improve CSS to grey disabled buttons
authorFabrice Bellingard <bellingard@gmail.com>
Tue, 21 Jun 2011 07:51:57 +0000 (09:51 +0200)
committerFabrice Bellingard <bellingard@gmail.com>
Tue, 21 Jun 2011 07:51:57 +0000 (09:51 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index 5fb9ed095e7ff14613040e8cfccc542b90723f80..6475a4d1ed6da7067e0e85ea4dd5a1f2c0d5de35 100644 (file)
@@ -163,7 +163,7 @@ table#columns td {
             <input type="submit" value="Save & Close" />
             <span class="spacer"> </span>
             <% if @filter.id %>
-              <input class="red-button" type="submit" value="Delete" onclick="return confirm('Do you want to delete this filter ?');">
+              <input name="delete" class="red-button" type="submit" value="Delete" onclick="return confirm('Do you want to delete this filter ?');">
               <span class="spacer"> </span>
               <a href="<%= url_for :action => 'index', :name => @filter.name -%>">Cancel</a>
             <% else %>
index 09c0a8fd691cc845b6553bcaa422a2d3224de17f..a471d7c9d4f4ca36e3aa02ae0e8f03e3a8255d48 100644 (file)
@@ -377,6 +377,18 @@ button:active, .button:active, input[type="submit"]:active, input[type="button"]
   background: -moz-linear-gradient(top,  #AC2F29,  #D35650) !important;
   filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#AC2F29', endColorstr='#D35650') !important;
 }
+button[disabled], .button[disabled], input[type="submit"][disabled], input[type="button"][disabled], 
+.red-button[disabled] {
+  position: relative;
+  top: 0px;
+  text-shadow: 1px 1px 0 #FFFFFF;
+  color: #BBBBBB;
+  border: solid 1px #EBEBEB;
+  background: #EBEBEB;
+  background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#E1E1E1));
+  background: -moz-linear-gradient(top,  #FFFFFF,  #E1E1E1);
+  filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#E1E1E1');
+}
 
 */
 /* ------------------- PAGE ------------------- */