owls

view Owls.css.php @ 11:46617062bef5

put config into own file
author meillo@marmaro.de
date Sun, 27 May 2007 02:15:39 +0200
parents f79096d1d0ed
children 682b4a24469c
line source
1 <?php
2 /*########################################################
3 ###### to modify the look of owls, edit below ######
4 ########################################################*/
7 /*
8 color setup
9 use color values according to http://www.w3.org/TR/CSS21/syndata.html#color-units
10 you can assign the set variables too
11 */
13 $c_Text = '#000';
14 $c_Background = '#999';
16 $c_Border = $c_Text;
18 $c_Link = $c_Text;
19 $c_LinkHover = '#ff8040';
20 $c_LinkVisited = '#666';
22 $c_Nav = $c_Link;
23 $c_NavHover = $c_LinkHover;
24 $c_NavSelected = '#eee';
26 $c_Login = $c_LinkVisited;
27 $c_Admin = '#ffff80';
30 /*
31 width of the menu area
32 the unit 'em' is relative to the font-size
33 see: http://www.w3.org/TR/CSS21/syndata.html#length-units
34 */
36 $m_NavWidth = '10em';
39 /*########################################################
40 ############# noobs, stop editing here #############
41 ########################################################*/
48 header('Content-Type: text/css; charset=utf8');
50 // avoid caching TODO: think about removing, cause it's just for dev
51 header('Expires: Thu, 05 Apr 1984 04:47:00 GMT');
52 header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
53 header('Cache-Control: no-store');
54 header('Pragma: no-cache');
55 echo('/* Anti-Caching: '.microtime()." */\r\n");
57 ?>
61 body {
62 font-family: sans-serif;
63 margin: 30px 0;
64 text-align: center;
65 color: <?php echo $c_Text; ?>;
66 background-color: <?php echo $c_Background; ?>;
67 }
70 #websiteContainer {
71 width: 760px;
72 margin: 0 auto;
73 text-align: justify;
74 }
76 #banner {
77 display: block;
78 margin: 0 auto;
79 }
81 #content {
82 margin-left: <?php echo $m_NavWidth; ?>;
83 padding: 1em;
84 }
88 /* uhhh?? is this not needed anymore? are there no borders drawn by default?
89 img {
90 border: none;
91 }
92 */
99 /* links */
100 a:link {
101 color: <?php echo $c_Link; ?>;
102 }
103 a:visited {
104 color: <?php echo $c_LinkVisited;?>;
105 }
106 a:active,
107 a:hover {
108 color: <?php echo $c_LinkHover; ?>;
109 }
116 /* nav */
117 #nav {
118 list-style: none;
119 float: left;
120 width: <?php echo $m_NavWidth; ?>;
121 padding: 0.5em 2em 1em 0.5em;
122 margin: 2.5em 0 1em 0;
123 font-size: 0.8em;
124 }
126 #nav ul {
127 list-style: none;
128 margin-left: 0;
129 padding-left: 1em;
130 /* border: 1px solid #060; */
131 }
132 #nav li {
133 padding: 1px;
134 margin: 0;
135 /* border: 1px solid #006; */
136 }
138 #nav a {
139 display: block;
140 text-decoration: none;
141 color: <?php echo $c_Nav; ?>;
142 }
143 #nav a:link,
144 #nav a:visited {
145 text-decoration: none;
146 }
147 #nav a:active,
148 #nav a:hover {
149 color: <?php echo $c_NavHover; ?>;
150 text-decoration: none;
151 }
153 #selected:link,
154 #selected:visited {
155 color: <?php echo $c_NavSelected; ?>;
156 }
157 #nav #selected:hover {
158 color: <?php echo $c_NavHover; ?>;
159 }
164 /* orphans and broken */
165 li#orphans,
166 li#broken {
167 margin-top: 3em;
168 font-style: italic;
169 color: <?php echo $c_Admin; ?>;
170 }
175 /* login */
176 #loginform input {
177 background-color: transparent;
178 border: none;
179 border-bottom: <?php echo $c_Login; ?> 1px solid; /* TODO: think about other color */
180 font-size: 0.8em;
181 width: 8em;
182 }
189 /* admin controls */
190 .ctrl {
191 text-align: right;
192 font-size: 0.8em;
193 color: <?php echo $c_Login; ?>;
194 }
195 .ctrl a,
196 .ctrl a:visited,
197 .ctrl a:hover {
198 margin-left: 1em;
199 color: <?php echo $c_Admin; ?>;
200 }
207 /* edit form */
208 #edit {
209 margin-top: 1.5em;
210 }
211 #edit input,
212 #edit select,
213 #edit textarea {
214 font-family: sans-serif;
215 font-size: 0.8em;
216 border: <?php echo $c_Border; ?> 1px solid;
217 }