2 // PukiWiki - Yet another WikiWikiWeb clone.
3 // $Id: tdiary.css.php,v 1.6 2005/05/01 02:43:27 henoheno Exp $
5 // 2002-2005 PukiWiki Developers Team
6 // 2001-2002 Originally written by yu-ji
7 // License: GPL v2 or (at your option) any later version
12 header('Content-Type: text/css');
14 if(ini_get('zlib.output_compression') && preg_match('/\b(gzip|deflate)\b/i', $_SERVER['HTTP_ACCEPT_ENCODING'], $matches)) {
15 header('Content-Encoding: ' . $matches[1]);
16 header('Vary: Accept-Encoding');
20 $charset = isset($_GET['charset']) ? $_GET['charset'] : '';
22 case 'Shift_JIS': break; /* this @charset is for Mozilla's bug */
23 default: $charset ='iso-8859-1';
27 $media = isset($_GET['media']) ? $_GET['media'] : '';
28 if ($media != 'print') $media = 'screen';
31 $color_theme = isset($_GET['color']) ? $_GET['color'] : '';
33 // Color theme: Design structure
34 $c_background = $c_background2 = $c_background3 = $c_background4 = '';
35 $c_line1 = $c_line2 = $c_preview = $c_color1 = $c_color2 = $c_color3 = $c_dangling = '';
36 $_COLOR['.style_table'] = & $c_line1;
37 $_COLOR['thead th.style_th'] = & $c_background4;
38 $_COLOR['thead td.style_td'] = & $c_background3;
39 $_COLOR['.style_th' ] = & $c_background2;
40 $_COLOR['.style_td' ] = & $c_background;
41 $_COLOR['span.noexists'] = & $c_dangling;
42 $_COLOR['div#preview'] = & $c_preview;
43 $_COLOR['.style_calendar' ] = & $c_line1;
44 $_COLOR['.style_td_caltop'] = & $c_background;
45 $_COLOR['.style_td_week' ] = & $c_color1;
46 $_COLOR['.style_td_blank' ] = & $c_background;
47 $_COLOR['.style_td_day' ] = & $c_background;
48 $_COLOR['.style_td_sat' ] = & $c_color2; // NOTE: Blue flavour for Saturday
49 $_COLOR['.style_td_sun' ] = & $c_color3; // NOTE: Red flavour for Sunday
50 $_COLOR['.style_td_today' ] = & $c_dangling;
51 $_COLOR['hr.short_line'] = & $c_line1;
52 $_COLOR['td.vote_label'] = & $c_color1;
53 $_COLOR['td.vote_td1' ] = & $c_color3;
54 $_COLOR['td.vote_td2' ] = & $c_color2;
57 // Color theme: Theme selector
61 $c_background = '111111'; //
62 $c_background2 = '333333'; ///
63 $c_background3 = '223333'; ////
64 $c_background4 = '332200'; /////
65 $c_line1 = '999999'; ///////////
67 $c_preview = '222200'; ///
68 $c_color1 = '333333'; ////
69 $c_color2 = '223333'; /////
70 $c_color3 = '332200'; //////
71 $c_dangling = '333355'; ///////
76 $c_background = 'EEF5FF';
77 $c_background2 = 'EEEEEE';
78 $c_background3 = 'D0D8E0';
79 $c_background4 = 'E0E8F0';
82 $c_preview = 'F5F8FF';
86 $c_dangling = 'FFFACC';
87 $_td_today = 'FFFFDD';
88 $_vote_label = 'FFCCCC';
89 $_COLOR['.style_td_today' ] = & $_td_today;
90 $_COLOR['td.vote_label' ] = & $_vote_label;
91 $_COLOR['td.vote_td1' ] = & $c_color2;
92 $_COLOR['td.vote_td2' ] = & $c_background;
98 @charset "<?php echo $charset ?>";
100 /* ------------------------------------------ */
101 /* PukiWiki abstruction CSS for tDiary themes */
103 /* <--> Expand textarea height (for editing only) */
104 /* <<-- textarea with not-so-long margin */
105 form.update textarea {
111 /* >--< Shrink textarea width (for #memo, etc) */
112 form textarea { width: 30em }
114 /* Image border = 0 */
118 /* --------------------- */
119 /* PukiWiki original CSS */
124 background-color:#<?php echo $color['thead td.style_td'] ?>;
129 background-color:#<?php echo $color['thead th.style_th'] ?>;
137 background-color:#<?php echo $color['.style_table'] ?>;
144 background-color:#<?php echo $color['.style_th'] ?>;
150 background-color:#<?php echo $color['.style_td'] ?>;
153 ul.list1 { list-style-type:disc; }
154 ul.list2 { list-style-type:circle; }
155 ul.list3 { list-style-type:square; }
156 ol.list1 { list-style-type:decimal; }
157 ol.list2 { list-style-type:lower-roman; }
158 ol.list3 { list-style-type:lower-alpha; }
160 div.ie5 { text-align:center; }
165 background-color:#<?php echo $color['span.noexists'] ?>;
168 .small { font-size:80%; }
170 /* Not found, Remove? */
174 background-color:inherit;
177 vertical-align:super;
181 /* for tDiary themes */
189 /* for tDiary themes */
191 hr.note_hr { display:none }
236 /* html.php/catbody() */
238 background-color:#FFFF66;
242 background-color:#A0FFFF;
246 background-color:#99FF99;
250 background-color:#FF9999;
254 background-color:#FF66FF;
258 background-color:#880000;
262 background-color:#00AA00;
266 background-color:#886800;
270 background-color:#004699;
274 background-color:#990099;
278 /* html.php/edit_form() */
279 .edit_form { clear:both; }
281 /* pukiwiki.skin.php */
288 <?php if ($media == 'print') { ?>
292 padding:4px 0px 0px 0px;
298 <?php if ($media == 'print') { ?>
307 <?php if ($media == 'print') { ?>
313 word-break:break-all;
320 margin:0px 0px 0px .5em;
321 padding:0px 0px 0px .5em;
324 div#menubar ul li { line-height:110%; }
326 div#menubar h4 { font-size:110%; }
328 /* for tDiary themes */
329 div.pkwk_body { padding:0px; }
338 <?php if ($media == 'print') { ?>
348 <?php if ($media == 'print') { ?>
364 /* for tDiary theme */
366 <?php if ($media == 'print') { ?>
371 margin:0px 0px 0px 0px;
378 margin:16px 0px 0px 0px;
388 background-color:#<?php echo $color['div#preview'] ?>;
392 <?php if ($media == 'print') { ?>
404 vertical-align:super;
410 /* calendar*.inc.php */
416 background-color:#<?php echo $color['.style_calendar'] ?>;
423 background-color:#<?php echo $color['.style_td_caltop'] ?>;
431 background-color:#<?php echo $color['.style_td_today'] ?>;
438 background-color:#<?php echo $color['.style_td_sat'] ?>;
445 background-color:#<?php echo $color['.style_td_sun'] ?>;
452 background-color:#<?php echo $color['.style_td_blank'] ?>;
459 background-color:#<?php echo $color['.style_td_day'] ?>;
466 background-color:#<?php echo $color['.style_td_week'] ?>;
472 /* calendar_viewer.inc.php */
473 div.calendar_viewer {
475 background-color:inherit;
480 span.calendar_viewer_left {
482 background-color:inherit;
485 span.calendar_viewer_right {
487 background-color:inherit;
497 /* counter.inc.php */
498 div.counter { font-size:70%; }
503 background-color:inherit;
508 background-color:inherit;
516 border-color:#<?php echo $color['hr.short_line'] ?>;
517 border-width:1px 0px;
520 /* include.inc.php */
521 h5.side_label { text-align:center; }
545 span.comment_date { font-size:x-small; }
548 background-color:transparent;
553 background-color:transparent;
557 /* popular.inc.php */
558 span.counter { font-size:70%; }
560 /* recent.inc.php,showrss.inc.php */
571 background-color:#<?php echo $color['td.vote_label'] ?>;
575 background-color:#<?php echo $color['td.vote_td1'] ?>;
579 background-color:#<?php echo $color['td.vote_td2'] ?>;