/[drupal]/contributions/themes/nifty_drupal/style.php
ViewVC logotype

Contents of /contributions/themes/nifty_drupal/style.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Jul 26 22:00:42 2006 UTC (3 years, 4 months ago) by drew777
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-4-7
File MIME type: text/x-php
no message
1 <?php
2 // Using PHP so that we can define all the colors ahead of time without having to search through the style sheet.
3
4
5 header('Content-type: text/css');
6
7
8 //Define a palette of five colors here
9
10 $palette=array('#000', // Primary Text Color
11 '#FFF', // Title Color
12 '', //Extra
13 '#C7F1C3', // Links Color
14 '#C7F1C3', // Visited Links Colors
15 '#FFF', // non primary text color
16 '#6B5F4A', // Page Background
17 '#918264', // Node Background
18 '#4A5D57', // Block Background
19 '#4A5D57', // Box Background
20 '#A1987B');// Nav buttons background
21
22 echo '
23 /* $Id: style.css,v 1.13 2006/04/03 22:20:48 unconed Exp $ */
24
25 /*
26 ** HTML elements
27 */
28
29
30 ul.primary li.active a {
31 background-color: '.$palette[7].';
32 -moz-border-radius-topleft: 20px;
33 -moz-border-radius-topright: 20px;
34 }
35
36 tr.odd td a,tr.even td a {
37 color: #000;
38 }
39
40 ul.primary li a {
41 background-color: '.$palette[10].';
42 -moz-border-radius-topleft: 20px;
43 -moz-border-radius-topright: 20px;
44 }
45
46 body {
47 color: '.$palette[0].';
48 background-color: '.$palette[6].';
49 margin: 0;
50 padding: 0;
51 font-family: georgia, serif;
52 font-size: small;
53 }
54 tr.odd td, tr.even td {
55 padding: 0.3em;
56 }
57 h1, h2, h3, h4, h5, h6 {
58 margin-bottom: 0.5em;
59 }
60 h1 {
61 font-size: 1.3em;
62 }
63 h2 {
64 font-size: 1.2em;
65 }
66 h3, h4, h5, h6 {
67 font-size: 1.1em;
68 }
69 p {
70 margin-top: 0.5em;
71 margin-bottom: 0.9em;
72 }
73 a {
74 text-decoration: none;
75
76 }
77 a:link {
78 color: '.$palette[3].';
79 }
80 a:visited {
81 color: '.$palette[4].';
82 }
83 a:hover {
84 color: '.$palette[3].';
85 text-decoration: underline;
86 }
87 fieldset {
88 border: 1px solid #ccc;
89 }
90 pre {
91 background-color: '.$palette[5].';
92 padding: 0.75em 1.5em;
93 font-size: 12px;
94 border: 1px solid #ddd;
95 }
96 table {
97 /* make <td> sizes relative to body size! */
98 font-size: 1em;
99 }
100 .form-item label {
101 font-size: 1em;
102 color: '.$palette[0].';
103 }
104 .item-list .title {
105 font-size: 1em;
106 color: '.$palette[1].';
107 }
108 .links {
109 margin-bottom: 0em;
110 }
111 .comment .links {
112 margin-bottom: 0em;
113 }
114
115 /*
116 ** Page layout blocks / IDs
117 */
118 #header, #content {
119 width: 100%;
120 padding: 10px;
121 }
122
123 #logo {
124 vertical-align: top;
125 border: 0;
126 width:450px;
127 }
128 img {
129 float: left;
130 padding: 0em 1.0em 0em 1em;
131 border: 0;
132 }
133 #menu {
134 padding: 0.5em 0.5em 0 0.5em;
135 text-align: right;
136 vertical-align: middle;
137 }
138
139 .menu {
140 font-family:arial,sans-serif;
141 }
142
143
144 ul#nav,ul#nav li{list-style-type:none;margin:0;padding:0}
145 ul#nav{float:right;font-size: 80%}
146 ul#nav li{float:left;margin-left: 3px;text-align: center}
147 ul#nav a{float:left;width: 85px;padding: 5px 0;background: '.$palette[10].';text-decoration:none;color: '.$palette[3].'; margin-bottom: 5px}
148 ul#nav a:hover{background: '.$palette[10].';color: '.$palette[4].'}
149 ul#nav li.activelink a,ul#nav li.activelink a:hover{background: #FFF;color: #003}
150
151 #primary {
152 font-size: 1.0em;
153 padding: 0em 0.8em 0.5em 0;
154 color: #9cf;
155 background:#ddd;
156 }
157
158 #primary a, #nav li a {
159 font-weight: bold;
160 color: #000;
161 font-size: 1.2em;
162 }
163 #secondary {
164 padding: 0 1em 0.5em 0;
165 font-size: 0.8em;
166 color: #9cf;
167 bacground: #ddd;
168 }
169 #secondary a {
170
171 color: #9cf;
172 }
173 #search .form-text, #search .form-submit {
174 border: 1px solid #369;
175 font-size: 1.1em;
176 height: 1.5em;
177 vertical-align: middle;
178 }
179 #search .form-text {
180 width: 8em;
181 padding: 0 0.5em 0 0.5em;
182 }
183 #search {
184 text-align:right;
185 position: relative;
186 right: 14px;
187 }
188 #mission {
189 padding: 1.5em 2em;
190 color: '.$palette[0].';
191 }
192 #mission a, #mission a:visited {
193 color: '.$palette[3].';
194
195 }
196 .site-name {
197 margin: 0.6em 0em 0em 0em;
198 padding: 0em;
199 font-size: 2em;
200 }
201 .site-name a:link, .site-name a:visited {
202 color: '.$palette[1].';
203 }
204 .site-name a:hover {
205 color: '.$palette[1].';
206 text-decoration: none;
207 }
208 .site-slogan {
209 font-size: 1em;
210 color: '.$palette[5].';
211 display: block;
212 margin: 0em 0em 0em 0em;
213 font-style: italic;
214
215 }
216 #main {
217 /* padding in px not ex because IE messes up 100% width tables otherwise */
218 padding: 10px;
219 }
220 #mission, .node .content, .comment .content {
221 line-height: 1.4;
222 }
223 #help {
224 font-size: 0.9em;
225 margin-bottom: 1em;
226 }
227 .breadcrumb {
228 margin: .5em;
229 }
230 .messages {
231 background-color: '.$palette[9].';
232 border: 1px solid #ccc;
233 padding: 0.3em;
234 margin-bottom: 1em;
235 }
236 .error {
237 border-color: red;
238 }
239 #sidebar-left, #sidebar-right {
240
241 width: 16em;
242 /* padding in px not ex because IE messes up 100% width tables otherwise */
243 padding: 2 px;
244 vertical-align: top;
245 }
246 #footer {
247 background-color: '.$palette[8].';
248 padding: 10px;
249 font-size: 1em;
250 text-align: center;
251 }
252
253 /*
254 ** Common declarations for child classes of node, comment, block, box, etc.
255 ** If you want any of them styled differently for a specific parent, add
256 ** additional rules /with only the differing properties!/ to .parent .class.
257 ** See .comment .title for an example.
258 */
259 .title, .title a {
260 font-weight: bold;
261 font-size: 1.3em;
262 color: '.$palette[1].';
263 margin: 0 auto 0 auto; /* decrease default margins for h<x>.title */
264 }
265 .submitted {
266 color: '.$palette[4].';
267 font-size: 0.8em;
268 }
269 .links {
270 color: '.$palette[3].';
271 }
272 .links a {
273
274 }
275
276 .box {
277 padding: 0 0 1.5em 0;
278 }
279
280 .block {
281 background: '.$palette[8].';
282 margin: 1em;
283 padding: 10px;
284 }
285
286 .title {
287 margin-bottom: .25em;
288 }
289 .box .title {
290 font-size: 1.1em;
291 }
292 .node {
293 padding: 10px;
294 background: '.$palette[7].';
295 margin-bottom: 1em;
296 margin-left: 0em;
297 }
298 .sticky {
299 padding: 5px;
300 background-color: '.$palette[7].';
301 border: solid 1px #ddd;
302 }
303 .content, .comment .content {
304 margin: .5em 0 .5em 0;
305 }
306
307 .node .taxonomy {
308 color: '.$palette[0].';
309 font-size: 0.8em;
310 padding: 20px;
311 }
312 .picture {
313 border: 1px solid #ddd;
314 float: right;
315 margin: 0.5em;
316 }
317 .comment {
318 border: 0px solid #abc;
319 padding: .5em;
320 margin-bottom: 1em;
321 }
322 .comment .title a {
323 font-size: 1.1em;
324 font-weight: normal;
325 }
326 .comment .new {
327 text-align: right;
328
329 font-size: 0.8em;
330 float: right;
331 color: red;
332 }
333 .comment .picture {
334 border: 0px solid #abc;
335 float: right;
336 margin: 0.5em;
337 }
338
339 /*
340 ** Module specific styles
341 */
342 #aggregator .feed-source {
343 background-color: #eee;
344 border: 1px solid #ccc;
345 padding: 1em;
346 margin: 1em 0 1em 0;
347 }
348 #aggregator .news-item .categories, #aggregator .source, #aggregator .age {
349 color: #999;
350 font-style: italic;
351 font-size: 0.9em;
352 }
353 #aggregator .title {
354 margin-bottom: 0.5em;
355 font-size: 1em;
356 }
357 #aggregator h3 {
358 margin-top: 1em;
359 }
360 #forum table {
361 width: 100%;
362 }
363 #forum td {
364 padding: 0.5em 0.5em 0.5em 0.5em;
365 }
366 #forum td.forum, #forum td.posts {
367 background-color: #eee;
368 }
369 #forum td.topics, #forum td.last-reply {
370 background-color: #ddd;
371 }
372 #forum td.container {
373 background-color: #ccc;
374 }
375 #forum td.container a {
376 color: #555;
377 }
378 #forum td.statistics, #forum td.settings, #forum td.pager {
379 height: 1.5em;
380 border: 1px solid #bbb;
381 }
382 #forum td .name {
383 color: #96c;
384 }
385 #forum td .links {
386 padding-top: 0.7em;
387 font-size: 0.9em;
388 }
389 #profile .profile {
390 clear: both;
391 border: 1px solid #abc;
392 padding: .5em;
393 margin: 1em 0em 1em 0em;
394 }
395 #profile .profile .name {
396 padding-bottom: 0.5em;
397 }
398 .block-forum h3 {
399 margin-bottom: .5em;
400 }
401 .calendar a {
402 text-decoration: none;
403 }
404 .calendar td, .calendar th {
405 padding: 0.4em 0;
406 border-color: #888;
407 }
408 .calendar .day-today {
409 background-color: #69c;
410 }
411 .calendar .day-today a {
412 color: #fff;
413 }
414 .calendar .day-selected {
415 background-color: #369;
416 color: #fff;
417 }
418 .calendar .header-week {
419 background-color: #ccc;
420 }
421 .calendar .day-blank {
422 background-color: #ccc;
423 }
424 .calendar .row-week td a:hover {
425 background-color: #fff; color: #000;
426 }';
427 ?>

  ViewVC Help
Powered by ViewVC 1.1.2