summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2011-06-21 09:51:57 +0200
committerFabrice Bellingard <bellingard@gmail.com>2011-06-21 09:51:57 +0200
commit536f03da477285c12ff9a31da49911376dbc18ee (patch)
tree4d3d71859a30ab4b368e2aedb4f0ce27e0f1c427
parent43825bf2f783c41bb0d044e97fce5f7b216ddbbc (diff)
downloadsonarqube-536f03da477285c12ff9a31da49911376dbc18ee.tar.gz
sonarqube-536f03da477285c12ff9a31da49911376dbc18ee.zip
SONAR-2436 Improve CSS to grey disabled buttons
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb2
-rw-r--r--sonar-server/src/main/webapp/stylesheets/style.css12
2 files changed, 13 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb
index 5fb9ed095e7..6475a4d1ed6 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/filters/new.html.erb
@@ -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 %>
diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css
index 09c0a8fd691..a471d7c9d4f 100644
--- a/sonar-server/src/main/webapp/stylesheets/style.css
+++ b/sonar-server/src/main/webapp/stylesheets/style.css
@@ -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 ------------------- */