From 970b4b6a5ec1834c5c8abcc52f9b8b8bb2a05b34 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 26 Oct 2019 06:31:39 +0000 Subject: [PATCH] Styling .info selector is not specific enough. git-svn-id: http://svn.redmine.org/redmine/trunk@18863 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/members_helper.rb | 2 +- app/views/members/_edit.html.erb | 4 ++-- app/views/principal_memberships/_edit.html.erb | 4 ++-- public/stylesheets/application.css | 5 +---- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/app/helpers/members_helper.rb b/app/helpers/members_helper.rb index 11e843099..eef03218c 100644 --- a/app/helpers/members_helper.rb +++ b/app/helpers/members_helper.rb @@ -47,7 +47,7 @@ module MembersHelper end.compact.uniq if content.present? - content_tag('span', content.join(", "), :class => "info") + content_tag('em', content.join(", "), :class => "info") end end end diff --git a/app/views/members/_edit.html.erb b/app/views/members/_edit.html.erb index e3c5ec747..8b05ae92f 100644 --- a/app/views/members/_edit.html.erb +++ b/app/views/members/_edit.html.erb @@ -4,13 +4,13 @@ :method => :put) do |f| %>

<% @roles.each do |role| %> - <% end %>

<%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %> diff --git a/app/views/principal_memberships/_edit.html.erb b/app/views/principal_memberships/_edit.html.erb index d0ab4f10a..224303b7a 100644 --- a/app/views/principal_memberships/_edit.html.erb +++ b/app/views/principal_memberships/_edit.html.erb @@ -4,13 +4,13 @@ :method => :put) do %>

<% @roles.each do |role| %> - <% end %>

<%= hidden_field_tag 'membership[role_ids][]', '', :id => nil %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 0abd4fdae..88be93c37 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -892,12 +892,9 @@ p.other-formats { text-align: right; font-size:0.9em; color: #666; } a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; } -.info {font-size:90%;color:#888;} -em.info {font-style:normal;display:block;} +em.info {font-style:normal;display:block;font-size:90%;color:#888;} em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;} -form.edit_membership p {margin:0.9em 0;} - textarea.text_cf {width:95%; resize:vertical;} input.string_cf, input.link_cf {width:95%;} select.bool_cf {width:auto !important;} -- 2.39.5