aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-03-13 17:15:32 +0100
committerJulien Lancelot <julien.lancelot@gmail.com>2013-03-13 17:15:32 +0100
commit96b6639c94e5410d53bfa75084d5a573036a772e (patch)
treecae0d7a22528e8a086e1210c8d283e99d1d1c1d5 /sonar-server
parenteda483a0608f15925273d409dde3ef59e2dd5288 (diff)
downloadsonarqube-96b6639c94e5410d53bfa75084d5a573036a772e.tar.gz
sonarqube-96b6639c94e5410d53bfa75084d5a573036a772e.zip
SONAR-4193 Improve modal rule css
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show.html.erb33
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb6
-rw-r--r--sonar-server/src/main/webapp/stylesheets/style.css26
3 files changed, 45 insertions, 20 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show.html.erb
index 291804b95c3..4329c732991 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules/_show.html.erb
@@ -1,30 +1,31 @@
<% if @rule %>
-<div class="modal-head" style="height:40px">
+<div class="modal-head">
<h2>
<%= @rule.name %>
</h2>
- <div class="subtitle" style="line-height:0px;">
- <%= @rule.plugin_name -%> : <%= @rule.plugin_rule_key -%>
- </div>
+ <ul class="modal-head-metadata">
+ <li><%= @rule.plugin_name -%> : <%= @rule.plugin_rule_key -%></li>
+ </ul>
</div>
-<% end %>
<div class="modal-body">
- <% if @rule %>
- <% if @rule.description.strip.start_with?('<p>') %>
- <%= interpret_macro @rule.description %>
- <% else %>
- <p><%= @rule.description %></p>
- <% end %>
-
- <% if @rule.note && !@rule.note.text.strip.blank? %>
- <p><%= @rule.note.html_text -%></p>
- <% end %>
+ <% if @rule.description.strip.start_with?('<p>') %>
+ <%= interpret_macro @rule.description %>
<% else %>
- <p class="error"><%= message('rules.not_found', :params => @key) %>
+ <p><%= @rule.description %></p>
+ <% end %>
+
+ <% if @rule.note && !@rule.note.text.strip.blank? %>
+ <p><%= @rule.note.html_text -%></p>
<% end %>
</div>
+<% else %>
+<div class="modal-body">
+ <p class="error"><%= message('rules.not_found', :params => @key) %>
+</div>
+<% end %>
+
<div class="modal-foot">
<a href="#" onclick="return closeModalWindow()"><%= h message('close') -%></a>
</div>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb
index 5b5b43bd87f..7105734dc06 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/index.html.erb
@@ -145,9 +145,9 @@
<th class="left" nowrap><%= message('active') -%>/<%= message('severity') -%></th>
<th class="left"><%= message('name') -%> <span style="font-weight: normal">
[<%= link_to_function(message('rules_configuration.expand'), "expand_rules()") %> / <%= link_to_function(message('rules_configuration.collapse'), "collapse_rules()") %>]</span></th>
- <th class="right thin" nowrap>
- <% form_tag({:action => 'index'}) do %>
- <%= message('rules_configuration.sort_by') -%>
+ <th class="right" nowrap>
+ <span class="middle"><%= message('rules_configuration.sort_by') -%></span>
+ <% form_tag({:action => 'index'}, :class=> 'middle', :style => 'display:inline-block') do %>
<%= dropdown_tag "sort_by", options_for_select(@select_sort_by, @sort_by), {
:width => '120px'
}, {:id => 'select-rules-sort-by', :onChange => 'submitSortBy()'} -%>
diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css
index 76b527e5d00..b8cfd25e79c 100644
--- a/sonar-server/src/main/webapp/stylesheets/style.css
+++ b/sonar-server/src/main/webapp/stylesheets/style.css
@@ -1,3 +1,23 @@
+/*
+ * Sonar, open source software quality management tool.
+ * Copyright (C) 2008-2012 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * Sonar is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * Sonar is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Sonar; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+ */
+
/* CSS optimized by http://www.cleancss.com */
/* ------------------- PROJECTS SEARCH FORM ------------------- */
@@ -2322,10 +2342,14 @@ ul.modal-head-metadata li {
color: #777;
}
+.modal-body {
+ padding: 10px;
+}
+
.modal-field {
clear: both;
display: block;
- padding: 5px 0 5px 140px;
+ padding: 5px 0 5px 130px;
}
.modal-field label {