JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
try to make wysiwyg insides the right size
[wfpl-cms.git] / style.less
index 3d32093..71044e1 100644 (file)
@@ -1,12 +1,12 @@
 // dimensions
-@site-width: 940px;
-@nav-width: 200px;
-@site-gutter-width: 18px;
+@site-width: 940px; // inside the shadow
+@nav-width: 200px; // inner
+@site-gutter-width: 18px; // padding around nav and main columns
 @site-main-body-width: @site-width - 2*@site-gutter-width - @nav-width;
 
 // colors
 @site-header-color: #ddf;
-@nav-color:    #dff;
+@nav-color:    #dff; // if different than site-body-color: make sure content is taller than nav
 @site-body-color:   #fff;
 @site-window-color: #eee;
 @site-footer-color: #ddf;
@@ -20,9 +20,18 @@ body {
        margin: 0;
        padding: 0;
        color: #000;
-       background: @site-window-color;
+       background: @site-body-color; // overruled below except in wysiywyg
        font: 14px "Verdana", sans-serif;
 }
+body.real_body_tag { // not the wysiwyg body
+       background: @site-window-color;
+}
+
+// try to make the content of the editor widget approximately the same size as
+// the content will be displayed
+#cke_content {
+       margin-right: -30px;
+}
 
 #centerer {
        position: relative;
@@ -98,6 +107,13 @@ footer {
        margin-bottom: 15px;
 }
 
+code.html {
+       display: block;
+       font: 12px monospace;
+       border: 1px solid black;
+       background: #ccc;
+}
+
 .caption {
        margin-top: 15px;
        font-weight: bold;
@@ -130,6 +146,7 @@ div.error {
 span.wfpl_ifl {
        display: block;
        float: left;
+       clear: left;
        font-size: 10px;
        text-align: right;
        background-repeat: no-repeat;
@@ -139,7 +156,9 @@ span.wfpl_ifl {
 span.wfpl_ifr {
        display: block;
        float: right;
+       clear: right;
        font-size: 10px;
+       font-weight: normal;
        text-align: right;
        background-repeat: no-repeat;
        background-position: left top;
@@ -148,6 +167,7 @@ span.wfpl_ifr {
 div.wfpl_ic {
        margin: 15px auto;
        font-size: 10px;
+       font-weight: normal;
        text-align: right;
        background-repeat: no-repeat;
        background-position: center top;