]> source.dussan.org Git - redmine.git/commitdiff
Add styles for Textile/Markdown attachments preview (#29752).
authorGo MAEDA <maeda@farend.jp>
Thu, 3 Oct 2019 00:32:33 +0000 (00:32 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 3 Oct 2019 00:32:33 +0000 (00:32 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18585 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/common/_markup.html.erb
public/stylesheets/application.css

index dc6c7f4742d9bb6a4b0f6e89dfd19f6874597c16..14786a87c0c5c46a2cc81cbe4fdd249f120653ef 100644 (file)
@@ -1,3 +1,3 @@
-<div class="wiki">
+<div class="filecontent wiki">
   <%= Redmine::WikiFormatting.to_html(markup_text_formatting, Redmine::CodesetUtil.to_utf8_by_setting(markup_text)).html_safe %>
 </div>
index 5f8ade106b33757097cced6aa66a1810ba754b97..28465feb4466198b1bcaa247f6539f5fb8fbbed5 100644 (file)
@@ -1740,6 +1740,13 @@ img {
   max-width: 100%;
 }
 
+.filecontent-container > .filecontent.wiki {
+  position: relative;
+  padding: 1em;
+  border: 1px solid #e4e4e4;
+  border-radius: 3px;
+}
+
 /* Fixes for IE 11 */
 @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
   select::-ms-expand {