2 // PukiWiki - Yet another WikiWikiWeb clone.
3 // $Id: tdiary.css.php,v 1.5 2005/01/25 15:07:26 henoheno Exp $
8 header('Content-Type: text/css');
10 if(ini_get('zlib.output_compression') && preg_match('/\b(gzip|deflate)\b/i', $_SERVER['HTTP_ACCEPT_ENCODING'], $matches)) {
11 header('Content-Encoding: ' . $matches[1]);
12 header('Vary: Accept-Encoding');
16 $charset = isset($_GET['charset']) ? $_GET['charset'] : '';
18 case 'Shift_JIS': break; /* this @charset is for Mozilla's bug */
19 default: $charset ='iso-8859-1';
23 $media = isset($_GET['media']) ? $_GET['media'] : '';
24 if ($media != 'print') $media = 'screen';
27 $color_theme = isset($_GET['color']) ? $_GET['color'] : '';
29 // Color theme: Design structure
30 $c_background = $c_background2 = $c_background3 = $c_background4 = '';
31 $c_line1 = $c_line2 = $c_preview = $c_color1 = $c_color2 = $c_color3 = $c_dangling = '';
32 $_COLOR['.style_table'] = & $c_line1;
33 $_COLOR['thead th.style_th'] = & $c_background4;
34 $_COLOR['thead td.style_td'] = & $c_background3;
35 $_COLOR['.style_th' ] = & $c_background2;
36 $_COLOR['.style_td' ] = & $c_background;
37 $_COLOR['span.noexists'] = & $c_dangling;
38 $_COLOR['div#preview'] = & $c_preview;
39 $_COLOR['.style_calendar' ] = & $c_line1;
40 $_COLOR['.style_td_caltop'] = & $c_background;
41 $_COLOR['.style_td_week' ] = & $c_color1;
42 $_COLOR['.style_td_blank' ] = & $c_background;
43 $_COLOR['.style_td_day' ] = & $c_background;
44 $_COLOR['.style_td_sat' ] = & $c_color2; // NOTE: Blue flavour for Saturday
45 $_COLOR['.style_td_sun' ] = & $c_color3; // NOTE: Red flavour for Sunday
46 $_COLOR['.style_td_today' ] = & $c_dangling;
47 $_COLOR['hr.short_line'] = & $c_line1;
48 $_COLOR['td.vote_label'] = & $c_color1;
49 $_COLOR['td.vote_td1' ] = & $c_color3;
50 $_COLOR['td.vote_td2' ] = & $c_color2;
53 // Color theme: Theme selector
57 $c_background = '111111'; //
58 $c_background2 = '333333'; ///
59 $c_background3 = '223333'; ////
60 $c_background4 = '332200'; /////
61 $c_line1 = '999999'; ///////////
63 $c_preview = '222200'; ///
64 $c_color1 = '333333'; ////
65 $c_color2 = '223333'; /////
66 $c_color3 = '332200'; //////
67 $c_dangling = '333355'; ///////
72 $c_background = 'EEF5FF';
73 $c_background2 = 'EEEEEE';
74 $c_background3 = 'D0D8E0';
75 $c_background4 = 'E0E8F0';
78 $c_preview = 'F5F8FF';
82 $c_dangling = 'FFFACC';
83 $_td_today = 'FFFFDD';
84 $_vote_label = 'FFCCCC';
85 $_COLOR['.style_td_today' ] = & $_td_today;
86 $_COLOR['td.vote_label' ] = & $_vote_label;
87 $_COLOR['td.vote_td1' ] = & $c_color2;
88 $_COLOR['td.vote_td2' ] = & $c_background;
94 @charset "<?php echo $charset ?>";
96 /* ------------------------------------------ */
97 /* PukiWiki abstruction CSS for tDiary themes */
99 /* <--> Expand textarea height (for editing only) */
100 /* <<-- textarea with not-so-long margin */
101 form.update textarea {
107 /* >--< Shrink textarea width (for #memo, etc) */
108 form textarea { width: 30em }
110 /* Image border = 0 */
114 /* --------------------- */
115 /* PukiWiki original CSS */
120 background-color:#<?php echo $color['thead td.style_td'] ?>;
125 background-color:#<?php echo $color['thead th.style_th'] ?>;
133 background-color:#<?php echo $color['.style_table'] ?>;
140 background-color:#<?php echo $color['.style_th'] ?>;
146 background-color:#<?php echo $color['.style_td'] ?>;
149 ul.list1 { list-style-type:disc; }
150 ul.list2 { list-style-type:circle; }
151 ul.list3 { list-style-type:square; }
152 ol.list1 { list-style-type:decimal; }
153 ol.list2 { list-style-type:lower-roman; }
154 ol.list3 { list-style-type:lower-alpha; }
156 div.ie5 { text-align:center; }
161 background-color:#<?php echo $color['span.noexists'] ?>;
164 .small { font-size:80%; }
166 /* Not found, Remove? */
170 background-color:inherit;
173 vertical-align:super;
177 /* for tDiary themes */
185 /* for tDiary themes */
187 hr.note_hr { display:none }
232 /* html.php/catbody() */
234 background-color:#FFFF66;
238 background-color:#A0FFFF;
242 background-color:#99FF99;
246 background-color:#FF9999;
250 background-color:#FF66FF;
254 background-color:#880000;
258 background-color:#00AA00;
262 background-color:#886800;
266 background-color:#004699;
270 background-color:#990099;
274 /* html.php/edit_form() */
275 .edit_form { clear:both; }
277 /* pukiwiki.skin.php */
284 <?php if ($media == 'print') { ?>
288 padding:4px 0px 0px 0px;
294 <?php if ($media == 'print') { ?>
303 <?php if ($media == 'print') { ?>
309 word-break:break-all;
316 margin:0px 0px 0px .5em;
317 padding:0px 0px 0px .5em;
320 div#menubar ul li { line-height:110%; }
322 div#menubar h4 { font-size:110%; }
324 /* for tDiary themes */
325 div.pkwk_body { padding:0px; }
334 <?php if ($media == 'print') { ?>
344 <?php if ($media == 'print') { ?>
360 /* for tDiary theme */
362 <?php if ($media == 'print') { ?>
367 margin:0px 0px 0px 0px;
374 margin:16px 0px 0px 0px;
384 background-color:#<?php echo $color['div#preview'] ?>;
388 <?php if ($media == 'print') { ?>
400 vertical-align:super;
406 /* calendar*.inc.php */
412 background-color:#<?php echo $color['.style_calendar'] ?>;
419 background-color:#<?php echo $color['.style_td_caltop'] ?>;
427 background-color:#<?php echo $color['.style_td_today'] ?>;
434 background-color:#<?php echo $color['.style_td_sat'] ?>;
441 background-color:#<?php echo $color['.style_td_sun'] ?>;
448 background-color:#<?php echo $color['.style_td_blank'] ?>;
455 background-color:#<?php echo $color['.style_td_day'] ?>;
462 background-color:#<?php echo $color['.style_td_week'] ?>;
468 /* calendar_viewer.inc.php */
469 div.calendar_viewer {
471 background-color:inherit;
476 span.calendar_viewer_left {
478 background-color:inherit;
481 span.calendar_viewer_right {
483 background-color:inherit;
493 /* counter.inc.php */
494 div.counter { font-size:70%; }
499 background-color:inherit;
504 background-color:inherit;
512 border-color:#<?php echo $color['hr.short_line'] ?>;
513 border-width:1px 0px;
516 /* include.inc.php */
517 h5.side_label { text-align:center; }
541 span.comment_date { font-size:x-small; }
544 background-color:transparent;
549 background-color:transparent;
553 /* popular.inc.php */
554 span.counter { font-size:70%; }
556 /* recent.inc.php,showrss.inc.php */
567 background-color:#<?php echo $color['td.vote_label'] ?>;
571 background-color:#<?php echo $color['td.vote_td1'] ?>;
575 background-color:#<?php echo $color['td.vote_td2'] ?>;