]> git.openstreetmap.org Git - rails.git/commitdiff
Fix overlapping text in markdown help
authorLeo Koppelkamm <diebuche@gmail.com>
Sun, 12 May 2013 13:57:14 +0000 (15:57 +0200)
committerTom Hughes <tom@compton.nu>
Mon, 10 Jun 2013 20:44:06 +0000 (21:44 +0100)
app/assets/stylesheets/common.css.scss
app/views/site/_markdown_help.html.erb

index 049dadbff8cf5abb73a2baa247a46eae5e2c69ed..0a23207d55ab0972abe09c6fa4c2e4a544cef1f4 100644 (file)
@@ -1642,12 +1642,9 @@ a.button.submit {
 /* Rules for rich text editors */
 
 .richtext_container {
 /* Rules for rich text editors */
 
 .richtext_container {
-  white-space: nowrap;
-
   .richtext_content {
     display: inline-block;
     vertical-align: top;
   .richtext_content {
     display: inline-block;
     vertical-align: top;
-    white-space: normal;
 
     .richtext_preview {
       display: inline-block;
 
     .richtext_preview {
       display: inline-block;
@@ -1673,7 +1670,7 @@ a.button.submit {
     margin-left: 15px;
     background-color: #f8f8ff;
     padding: 10px;
     margin-left: 15px;
     background-color: #f8f8ff;
     padding: 10px;
-    width: 200px;
+    max-width: 450px;
 
     ul {
       margin-bottom: 0;
 
     ul {
       margin-bottom: 0;
@@ -1685,20 +1682,22 @@ a.button.submit {
       padding-bottom: 5px;
     }
 
       padding-bottom: 5px;
     }
 
-    li h4, li span {
-      display: block;
+    li h4, li span, li p {
+      display: inline-block;
+      vertical-align: top;
       font-size: 11px;
     }
 
     li h4 {
       font-size: 11px;
     }
 
     li h4 {
+      width: 35%;
       margin: 0;
       margin: 0;
-      float: left;
     }
 
     }
 
-    li span {
-      float: right;
-      width: 50%;
+    li span, li p {
+      width: 60%;
       margin-left: 10px;
       margin-left: 10px;
+      margin-bottom: 5px;
+      white-space: nowrap;
     }
 
     input.richtext_doedit,
     }
 
     input.richtext_doedit,
index 07035477e78d9e72b9aa5c56cd0a8dad9dcaac9d..0d7fa335440031d8c62ac723391af6193271afd5 100644 (file)
@@ -1,25 +1,25 @@
 <h4 class='heading'><%= t "site.markdown_help.title_html" %></h4>
 <ul>
 <h4 class='heading'><%= t "site.markdown_help.title_html" %></h4>
 <ul>
-  <li class='clearfix'>
+  <li>
     <h4><%= t "site.markdown_help.headings" %></h4>
     <h4><%= t "site.markdown_help.headings" %></h4>
-    <span># <%= t "site.markdown_help.heading" %></span>
-    <span>## <%= t "site.markdown_help.subheading" %></span>
+    <p># <%= t "site.markdown_help.heading" %></br>
+       ## <%= t "site.markdown_help.subheading" %></p>
   </li>
   </li>
-  <li class='clearfix'>
+  <li>
     <h4><%= t "site.markdown_help.unordered" %></h4>
     <h4><%= t "site.markdown_help.unordered" %></h4>
-    <span>* <%= t "site.markdown_help.first" %></span>
-    <span>* <%= t "site.markdown_help.second" %></span>
+    <p>* <%= t "site.markdown_help.first" %></br>
+       * <%= t "site.markdown_help.second" %></p>
   </li>
   </li>
-  <li class='clearfix'>
+  <li>
     <h4><%= t "site.markdown_help.ordered" %></h4>
     <h4><%= t "site.markdown_help.ordered" %></h4>
-    <span>1. <%= t "site.markdown_help.first" %></span>
-    <span>2. <%= t "site.markdown_help.second" %></span>
+    <p>1. <%= t "site.markdown_help.first" %><br>
+       2. <%= t "site.markdown_help.second" %></p>
   </li>
   </li>
-  <li class='clearfix'>
+  <li>
     <h4><%= t "site.markdown_help.link" %></h4>
     <span>[<%= t "site.markdown_help.text" %>](<%= t "site.markdown_help.url" %>)</span>
   </li>
     <h4><%= t "site.markdown_help.link" %></h4>
     <span>[<%= t "site.markdown_help.text" %>](<%= t "site.markdown_help.url" %>)</span>
   </li>
-  <li class='clearfix'>
+  <li>
     <h4><%= t "site.markdown_help.image" %></h4>
     <span>![<%= t "site.markdown_help.alt" %>](<%= t "site.markdown_help.url" %>)</span>
   </li>
     <h4><%= t "site.markdown_help.image" %></h4>
     <span>![<%= t "site.markdown_help.alt" %>](<%= t "site.markdown_help.url" %>)</span>
   </li>