JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix global template var $basename
[wfpl-cms.git] / style.less
1 // dimensions
2 @site-width: 940px;
3 @nav-width: 200px;
4 @site-gutter-width: 18px;
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;
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 "Verdana", sans-serif;
25 }
26 body.real_body_tag { // not the wysiwyg body
27         background: @site-window-color;
28 }
29
30 #centerer {
31         position: relative;
32         background: @nav-color;
33         margin: 15px auto;
34         width: @site-width;
35         -moz-box-shadow: 2px 2px 15px #777;
36         -webkit-box-shadow: 2px 2px 15px #777;
37         box-shadow: 2px 2px 13px #777;
38 }
39
40 header {
41         width: @site-width;
42         height: 100px;
43         background: @site-header-color;
44 }
45
46 @nav-padding: 10px;
47 nav {
48         float: left;
49         width: @nav-width - 2*@nav-padding;
50         padding: @nav-padding;
51         background: @nav-color;
52         h3 {
53                 span {
54                         color: @nav-color;
55                 }
56         }
57         h3.current {
58                 span {
59                         color: inherit;
60                 }
61                 a {
62                         text-decoration: none;
63                 }
64         }
65 }
66
67 #main-body {
68         float: left;
69         width: @site-main-body-width;
70         padding: @site-gutter-width @site-gutter-width 3*@site-gutter-width @site-gutter-width;
71         background: @site-body-color;
72 }
73
74 footer {
75         clear: both;
76         width: @site-width - 2*@site-gutter-width;
77         padding: @site-gutter-width;
78         text-align: center;
79         background: @site-footer-color;
80         font-size: 80%;
81 }
82
83 #wfpl_messages {
84         border: 2px solid red;
85         background: #fbb;
86         padding: 5px;
87         margin: 20px 0px;
88         p {
89                 font-size: 120%;
90                 padding: 5px;
91                 margin: 0px;
92         }
93         hr {
94                 height: 1px;
95         }
96 }
97
98 #admin_links {
99         background: #fdd;
100         padding: 3px;
101         margin-bottom: 15px;
102 }
103
104 .caption {
105         margin-top: 15px;
106         font-weight: bold;
107 }
108 .field {
109         margin-bottom: 15px;
110 }
111 div.field_notes {
112         font-size: 12px;
113         line-height: 16px;
114 }
115 fieldset {
116         border: 1px dotted black;
117         padding: 0 15px 15px 15px;
118         margin: 15px 0;
119         position: relative;
120 }
121 legend {
122         padding: 0 6px;
123         font-weight: bold;
124 }
125 div.error {
126         border: 2px solid red;
127         padding: 13px;
128         margin: 20px;
129         background: #fdd;
130 }
131
132 // floating images (from pastable example code on admin_images)
133 span.wfpl_ifl {
134         display: block;
135         float: left;
136         clear: left;
137         font-size: 10px;
138         text-align: right;
139         background-repeat: no-repeat;
140         background-position: left top;
141         margin: 0 10px 2px 0;
142 }
143 span.wfpl_ifr {
144         display: block;
145         float: right;
146         clear: right;
147         font-size: 10px;
148         font-weight: normal;
149         text-align: right;
150         background-repeat: no-repeat;
151         background-position: left top;
152         margin: 0 0 2px 10px;
153 }
154 div.wfpl_ic {
155         margin: 15px auto;
156         font-size: 10px;
157         font-weight: normal;
158         text-align: right;
159         background-repeat: no-repeat;
160         background-position: center top;
161 }
162
163 // hack so that vertical margins are only between siblings for the most part
164 td > :first-child,
165 th > :first-child,
166 legend + *,
167 article > :first-child,
168 section > :first-child,
169 nav > :first-child,
170 div > :first-child,
171 .first {
172         margin-top: 0px;
173 }
174 td > :last-child,
175 th > :last-child,
176 fieldset > :last-child,
177 article > :last-child,
178 section > :last-child,
179 nav > :last-child,
180 div > :last-child,
181 .last {
182         margin-bottom: 0px;
183 }