From 2edad37f21fa6d38253a73da2b6925c115975151 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Wed, 22 Sep 2010 13:32:49 +0000 Subject: [PATCH] fix CSS class "data2" when nested tables --- .../views/rules_configuration/_rule.html.erb | 2 +- .../src/main/webapp/stylesheets/style.css | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb index d9045205be3..c82f83d7dc9 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb @@ -40,7 +40,7 @@ <% end %> <% end %> -
Key: <%= rule.plugin_rule_key -%> +
Key: <%= rule.plugin_rule_key -%> <% if is_admin %>
<% if rule.template? %> diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index c2cd5f4d611..eac9a9b5bbb 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -1236,7 +1236,7 @@ ul.bullet li { } .rule_desc { - color: #333; + color: #444; padding: 2px 0 15px 0; } @@ -1426,32 +1426,35 @@ table.data2 { table.without-header { border-top: 1px solid #ddd; } -table.data2 tbody tr { +table.data2 > tbody > tr { border-left: 1px solid #ddd; border-right: 1px solid #ddd; } -table.data2 thead tr { +table.data2 > thead > tr { height: 24px; border: 0; } -table.data2 th, table.data2 td { +table.data2 > thead > tr > th, table.data2 > tbody > tr > td { border-bottom: 1px solid #DDD; - padding: 2px 4px 2px 4px; + padding: 3px 5px; height: 24px; vertical-align: middle; } -table.data2 td { +table.data2 > tbody > tr > td { vertical-align: middle; } -table.data2 th { +table.data2 > thead > tr > th { font-weight: bold; } -table.data2 tfoot td { +table.data2 > tfoot > tr > td { border-bottom: 0; } table.data2 td, table.data2 td a, table.data2 th, table.data2 th a { color: #444; } +table.data2 img, table.data2 input, table.data2 select { + vertical-align: text-bottom; +} .background-gray { background-color: #f4f4f4; color: #555; -- 2.39.5