summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-30 09:45:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-30 09:45:48 +0000
commit3a35613fe37f0bf29fde98c33e5eb7433d384db1 (patch)
tree9f78739ce8948e0fb175ca37479c24fa4c89eb9e
parent7620870874d97096f77eba6b890b52f25ae70ffe (diff)
downloadredmine-3a35613fe37f0bf29fde98c33e5eb7433d384db1.tar.gz
redmine-3a35613fe37f0bf29fde98c33e5eb7433d384db1.zip
Adds style to the empty preview message (#27758).
git-svn-id: http://svn.redmine.org/redmine/trunk@17541 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/common/_preview.html.erb2
-rw-r--r--public/stylesheets/application.css1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/common/_preview.html.erb b/app/views/common/_preview.html.erb
index ee22288c0..472b0eba9 100644
--- a/app/views/common/_preview.html.erb
+++ b/app/views/common/_preview.html.erb
@@ -1,5 +1,5 @@
<% unless @text.blank? %>
<%= textilizable @text, :attachments => @attachments, :object => @previewed %>
<% else %>
- <p><%= l(:label_nothing_to_preview) %></p>
+ <p class="empty-preview"><%= l(:label_nothing_to_preview) %></p>
<% end %> \ No newline at end of file
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 07a020aa7..07919f81f 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -449,6 +449,7 @@ blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0
blockquote blockquote { margin-left: 0;}
abbr, span.field-description[title] { border-bottom: 1px dotted #aaa; cursor: help; }
textarea.wiki-edit {width:99%; resize:vertical;}
+.wiki-preview p.empty-preview {color:#999; font-style:italic; margin-top:1em; text-align:center;}
body.textarea-monospace textarea.wiki-edit {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size: 12px;}
body.textarea-proportional textarea.wiki-edit {font-family: Verdana, sans-serif; font-size: 12px;}
li p {margin-top: 0;}