JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
cms content area same width as real pages
authorJason Woofenden <jason@jasonwoof.com>
Thu, 25 Sep 2014 17:27:57 +0000 (13:27 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 25 Sep 2014 17:27:57 +0000 (13:27 -0400)
style.less

index 71c608b..c4bee38 100644 (file)
@@ -16,11 +16,17 @@ body {
        margin: 0;
        padding: 0;
        color: #000;
-       background: @site-body-color; // overruled below except in wysiywyg
        font: 14px "Liberation Sans", Arimo, Arial, sans-serif;
-}
-body.real_body_tag { // not the wysiwyg body
-       background: @site-window-color;
+
+       // Styles for the <body> tag within ckeditor
+       background: @site-body-color;
+       width: @site-main-body-width;
+       margin: 0 auto;
+       &.real_body_tag { // revert the above for the <body> on the real site
+               background: @site-window-color;
+               width: auto;
+               margin: 0;
+       }
 }
 
 // try to make the content of the editor widget approximately the same size as