JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
turn off ckeditor's filtering/cleanup
[wfpl-cms.git] / style.less
1 // dimensions
2 @site-width: 940px; // inside the shadow
3 @nav-width: 200px; // inner
4 @site-gutter-width: 18px; // padding around nav and main columns
5 @site-main-body-width: @site-width - 2*@site-gutter-width - @nav-width;
6
7 // colors
8 @site-header-color: #ddf;
9 @nav-color:    #dff; // if different than site-body-color: make sure content is taller than nav
10 @site-body-color:   #fff;
11 @site-window-color: #eee;
12 @site-footer-color: #ddf;
13 @site-gutter-color: #fff;
14
15 header, hgroup, section, footer, aside, nav, article, figure, img {
16         display: block;
17 }
18
19 body {
20         margin: 0;
21         padding: 0;
22         color: #000;
23         background: @site-body-color; // overruled below except in wysiywyg
24         font: 14px "Liberation Sans", Arimo, Arial, sans-serif;
25 }
26 body.real_body_tag { // not the wysiwyg body
27         background: @site-window-color;
28 }
29
30 // try to make the content of the editor widget approximately the same size as
31 // the content will be displayed
32 #cke_content {
33         margin-right: -30px;
34 }
35
36 #centerer {
37         position: relative;
38         background: @nav-color;
39         margin: 15px auto;
40         width: @site-width;
41         -moz-box-shadow: 2px 2px 15px #777;
42         -webkit-box-shadow: 2px 2px 15px #777;
43         box-shadow: 2px 2px 13px #777;
44 }
45
46 header {
47         width: @site-width;
48         height: 100px;
49         background: @site-header-color;
50 }
51
52 @nav-padding: 10px;
53 nav {
54         float: left;
55         width: @nav-width - 2*@nav-padding;
56         padding: @nav-padding;
57         background: @nav-color;
58         h3 {
59                 span {
60                         color: @nav-color;
61                 }
62         }
63         h3.current {
64                 span {
65                         color: inherit;
66                 }
67                 a {
68                         text-decoration: none;
69                 }
70         }
71 }
72
73 #main-body {
74         float: left;
75         width: @site-main-body-width;
76         padding: @site-gutter-width @site-gutter-width 3*@site-gutter-width @site-gutter-width;
77         background: @site-body-color;
78 }
79
80 footer {
81         clear: both;
82         width: @site-width - 2*@site-gutter-width;
83         padding: @site-gutter-width;
84         text-align: center;
85         background: @site-footer-color;
86         font-size: 80%;
87 }
88
89 #wfpl_messages {
90         border: 2px solid red;
91         background: #fbb;
92         padding: 5px;
93         margin: 20px 0px;
94         p {
95                 font-size: 120%;
96                 padding: 5px;
97                 margin: 0px;
98         }
99         hr {
100                 height: 1px;
101         }
102 }
103
104 #admin_links {
105         background: #fdd;
106         padding: 3px;
107         margin-bottom: 15px;
108 }
109
110 code.html {
111         display: block;
112         font: 12px monospace;
113         border: 1px solid black;
114         background: #ccc;
115 }
116
117 .caption {
118         margin-top: 15px;
119         font-weight: bold;
120 }
121 .field {
122         margin-bottom: 15px;
123 }
124 div.field_notes {
125         font-size: 12px;
126         line-height: 16px;
127 }
128 fieldset {
129         border: 1px dotted black;
130         padding: 0 15px 15px 15px;
131         margin: 15px 0;
132         position: relative;
133 }
134 legend {
135         padding: 0 6px;
136         font-weight: bold;
137 }
138 div.error {
139         border: 2px solid red;
140         padding: 13px;
141         margin: 20px;
142         background: #fdd;
143 }
144
145 h1 {
146         font-size: 22px;
147         margin: 20px 0 10px;
148 }
149 h1 + h4.tagline {
150         margin: -10px 0 10px;
151 }
152 h2 {
153         font-size: 19px;
154         margin: 16px 0px 8px;
155 }
156 h2 + h4.tagline {
157         margin: -8px 0 8px;
158 }
159 h3 {
160         font-size: 16px;
161         margin: 12px 0 5px;
162 }
163 h3 + h4.tagline {
164         margin: -5px 0 5px;
165 }
166 h4 {
167         font-size: 12px;
168         margin: 10px 0 3px;
169 }
170 h4 + h4.tagline {
171         margin: -3px 0 3px;
172 }
173
174 h1, h2, h3, h4 {
175         font-weight: bold;
176 }
177 h4.tagline {
178         font-weight: normal
179 }
180
181 p.quote {
182         margin: 15px 35px;
183 }
184 p.attrib {
185         margin: -15px 0 15px 100px;
186 }
187
188
189 // floating images (from pastable example code on admin_images)
190 span.wfpl_ifl {
191         display: block;
192         float: left;
193         clear: left;
194         font-size: 10px;
195         text-align: right;
196         background-repeat: no-repeat;
197         background-position: left top;
198         margin: 0 10px 2px 0;
199 }
200 span.wfpl_ifr {
201         display: block;
202         float: right;
203         clear: right;
204         font-size: 10px;
205         font-weight: normal;
206         text-align: right;
207         background-repeat: no-repeat;
208         background-position: left top;
209         margin: 0 0 2px 10px;
210 }
211 div.wfpl_ic {
212         margin: 15px auto;
213         font-size: 10px;
214         font-weight: normal;
215         text-align: right;
216         background-repeat: no-repeat;
217         background-position: center top;
218 }
219
220 // hack so that vertical margins are only between siblings for the most part
221 td > :first-child,
222 th > :first-child,
223 legend + *,
224 article > :first-child,
225 section > :first-child,
226 nav > :first-child,
227 div > :first-child,
228 .first {
229         margin-top: 0px;
230 }
231 td > :last-child,
232 th > :last-child,
233 fieldset > :last-child,
234 article > :last-child,
235 section > :last-child,
236 nav > :last-child,
237 div > :last-child,
238 .last {
239         margin-bottom: 0px;
240 }