From: Jean-Baptiste Lievremont Date: Tue, 8 Oct 2013 14:40:58 +0000 (+0200) Subject: Change layout of settings X-Git-Tag: 4.0~205 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=188c667dc5315f6400fec81447d5fc00dfcead69;p=sonarqube.git Change layout of settings --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb index 707f44630e1..cc0dffd3b7f 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/settings/_properties.html.erb @@ -26,28 +26,25 @@ <% if @subcategory.key == @category.key && !category_desc(@category).blank? -%> - <%= category_desc(@category) -%> + <%= category_desc(@category) -%> <% end -%> <% if @subcategory.key != @category.key && !subcategory_desc(@category, @subcategory).blank? -%> - <%= subcategory_desc(@category, @subcategory) -%> + <%= subcategory_desc(@category, @subcategory) -%> <% end -%> <% by_property_index_or_name(@definitions).each do |property| -%> - - + +

<%= property_name(property) -%>
<%= property.key -%>

- <% desc=property_description(property) -%> - <% unless desc.blank? %> -

<%= desc -%>

- <% end -%> - + + <% value = property_value(property) -%> <% if property.multi_values -%> <% value.each_with_index do |sub_value, index| -%> @@ -68,11 +65,16 @@ <% unless default_prop_value.blank? -%>
<%= message('default') %>: <%= property.type.to_s=='PASSWORD' ? '********' : h(default_prop_value) -%>
<% end -%> + + <% desc=property_description(property) -%> + <% unless desc.blank? %> +

<%= desc -%>

+ <% end -%> <% end -%> - + <% unless @definitions.empty? %> diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 98455cbd1de..f452f6f5aae 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -2430,17 +2430,30 @@ textarea.width100 { box-sizing: border-box; /* Opera/IE 8+ */ } -.property table.data > tbody > tr > td { +.property { + margin-bottom: 10px: +} + +.property > th, .property > td { vertical-align: top; + padding-right: 10px; + padding-left: 10px; + padding-bottom: 10px; +} + +.property > th { + text-align: right; + width: 1px; + max-width: 380px; } .property table.data { width: auto; - min-width: 600px; + min-width: 480px; } -.property table.data > thead > tr > th { - vertical-align: top; +.property table.data input { + max-width: 200px; } /* ------------------- Accordion navigation styles ------------------- */