]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/stylesheets/common.scss
Ensure richtext editing style rules are only applied on standard forms
[rails.git] / app / assets / stylesheets / common.scss
index 2fa00d00989a6f19eae586d04695985831a30d69..7ae0577402301d1f30e4e213f7bfe0fbc6a88cb5 100644 (file)
@@ -1338,10 +1338,6 @@ tr.turn:hover {
     float: left;
     padding: $lineheight/4 $lineheight/2;
   }
-
-  li a img {
-    border-radius: 4px;
-  }
 }
 
 /* Rules for the account confirmation page */
@@ -1982,80 +1978,82 @@ div.secondary-actions {
 
 /* Rules for rich text editors */
 
-input.richtext_title[type="text"] {
-  width: 50%;
-  width: calc(100% - 235px);
-
-  @media only screen and (max-width:768px) {
-    width: 100%;
-  }
-}
-
-.richtext_container {
-  margin-bottom: $lineheight;
-
-  .richtext_content {
+.standard-form {
+  input.richtext_title[type="text"] {
     width: 50%;
     width: calc(100% - 235px);
-    display: inline-block;
-    vertical-align: top;
 
     @media only screen and (max-width:768px) {
       width: 100%;
     }
+  }
+
+  .richtext_container {
+    margin-bottom: $lineheight;
 
-    .richtext_preview {
+    .richtext_content {
+      width: 50%;
+      width: calc(100% - 235px);
       display: inline-block;
-      padding: $lineheight;
-      background-color: $offwhite;
-      overflow-x: auto;
+      vertical-align: top;
 
-      &.loading {
-        background-image: image-url("loading.gif");
-        background-repeat: no-repeat;
-        background-position: center;
+      @media only screen and (max-width:768px) {
+        width: 100%;
       }
 
-      > :first-child {
-        margin-top: 0px;
-      }
-    }
-  }
+      .richtext_preview {
+        display: inline-block;
+        padding: $lineheight;
+        background-color: $offwhite;
+        overflow-x: auto;
 
-  .richtext_help {
-    display: inline-block;
-    vertical-align: top;
-    margin-left: 15px;
-    background-color: $offwhite;
-    padding: $lineheight/2;
-    width: 220px;
-
-    ul {
-      margin-bottom: 0;
-    }
+        &.loading {
+          background-image: image-url("loading.gif");
+          background-repeat: no-repeat;
+          background-position: center;
+        }
 
-    h4.heading, li {
-      border-bottom: 1px solid $grey;
-      margin-bottom: $lineheight/4;
-      padding-bottom: $lineheight/4;
+        > :first-child {
+          margin-top: 0px;
+        }
+      }
     }
 
-    li h4, li span, li p {
+    .richtext_help {
       display: inline-block;
       vertical-align: top;
-      font-size: 11px;
-    }
+      margin-left: 15px;
+      background-color: $offwhite;
+      padding: $lineheight/2;
+      width: 220px;
 
-    li h4 {
-      width: 40%;
-      margin: 0;
-    }
+      ul {
+        margin-bottom: 0;
+      }
 
-    li span, li p {
-      width: 50%;
-      margin-left: $lineheight/2;
-      margin-bottom: $lineheight/4;
-      white-space: nowrap;
+      h4.heading, li {
+        border-bottom: 1px solid $grey;
+        margin-bottom: $lineheight/4;
+        padding-bottom: $lineheight/4;
+      }
+
+      li h4, li span, li p {
+        display: inline-block;
+        vertical-align: top;
+        font-size: 11px;
+      }
+
+      li h4 {
+        width: 40%;
+        margin: 0;
+      }
+
+      li span, li p {
+        width: 50%;
+        margin-left: $lineheight/2;
+        margin-bottom: $lineheight/4;
+        white-space: nowrap;
+      }
     }
   }
 }