Commit | Line | Data |
---|---|---|
328248ba | 1 | /* default font and colors */ |
460b9539 | 2 | body { |
3 | color: black; | |
3225872d RK |
4 | background-color: white; |
5 | font-family: times,serif; | |
328248ba | 6 | font-weight: normal; |
7 | font-size: 12pt; | |
8 | font-variant: normal | |
460b9539 | 9 | } |
10 | ||
3225872d RK |
11 | input { |
12 | font-family: helvetica,sans-serif; | |
13 | font-weight: normal; | |
14 | font-size: 12pt; | |
15 | font-variant: normal | |
460b9539 | 16 | } |
17 | ||
3225872d RK |
18 | /* general link colors */ |
19 | a { | |
460b9539 | 20 | color: blue |
21 | } | |
22 | ||
23 | a:active { | |
24 | color: red | |
25 | } | |
26 | ||
328248ba | 27 | /* title bars */ |
3225872d RK |
28 | h1 { |
29 | font-family: helvetica,sans-serif; | |
460b9539 | 30 | font-weight: bold; |
328248ba | 31 | font-size: 18pt; |
32 | font-variant: normal; | |
460b9539 | 33 | text-align: center; |
328248ba | 34 | border: 1px solid black; |
35 | padding: 0.2em; | |
21c8e53a | 36 | background-color: #e0e0e0; |
37 | display: block | |
328248ba | 38 | } |
39 | ||
40 | /* secondary titles */ | |
41 | h2 { | |
3225872d | 42 | font-family: helvetica,sans-serif; |
328248ba | 43 | font-weight: bold; |
44 | font-size: 16pt; | |
45 | font-variant: normal; | |
21c8e53a | 46 | display: block |
460b9539 | 47 | } |
48 | ||
3225872d RK |
49 | /* Some titles are links too, but we don't want them to go blue */ |
50 | h2 a { | |
51 | color: black | |
52 | } | |
460b9539 | 53 | |
3225872d RK |
54 | /* Use the same table model everywhere */ |
55 | table { | |
56 | border-collapse: collapse | |
460b9539 | 57 | } |
58 | ||
3225872d RK |
59 | /* tabular data **************************************************************/ |
60 | ||
61 | /* playing, recent and new classes correspond to the tables in playing.html, | |
62 | * recent.html and new.html */ | |
e7ce7665 | 63 | table.playing, table.recent, table.new, table.search { |
3225872d | 64 | width: 100% /* use full screen width */ |
460b9539 | 65 | } |
66 | ||
e7ce7665 | 67 | table.playing th, table.recent th, table.new th, table.search th { |
3225872d | 68 | text-align: left /* titles should be left-aligned */ |
78efa64e RK |
69 | } |
70 | ||
e7ce7665 | 71 | table.playing td, table.recent td, table.new td, table.search td { |
3225872d | 72 | vertical-align: middle /* centre cell contents vertically */ |
460b9539 | 73 | } |
74 | ||
e7ce7665 | 75 | table.playing a, table.recent a, table.new a, table.search a { |
3225872d | 76 | color: black |
460b9539 | 77 | } |
78 | ||
3225872d | 79 | /* tr.headings is the row containing column headings */ |
460b9539 | 80 | tr.headings { |
3225872d | 81 | background-color: black; /* heading rows are white on black */ |
460b9539 | 82 | color: white |
83 | } | |
84 | ||
3225872d RK |
85 | /* tr.nowplaying and tr.next are the section heading rows */ |
86 | tr.nowplaying td, tr.next td { | |
87 | background-color: #d0d0d0; /* table section headings are black on grey */ | |
88 | color: black; | |
89 | font-weight: bold; /* table section headings are bold */ | |
460b9539 | 90 | text-align: center |
91 | } | |
92 | ||
3225872d | 93 | /* tr.playing is the row for the currently playing track */ |
460b9539 | 94 | tr.playing { |
3225872d RK |
95 | background-color: #e0ffe0; /* playing track is black on pastel green */ |
96 | color: back | |
460b9539 | 97 | } |
98 | ||
3225872d | 99 | /* tr.even and tr.odd are odd and even rows of the main body of the table */ |
460b9539 | 100 | tr.even { |
3225872d RK |
101 | background-color: #ffecec; /* even rows are black on red */ |
102 | color: black | |
460b9539 | 103 | } |
104 | ||
460b9539 | 105 | tr.odd { |
3225872d RK |
106 | background-color: #ffffff; /* odd rows are black on white */ |
107 | color: black | |
460b9539 | 108 | } |
109 | ||
3225872d RK |
110 | /* th/td.length are the length column */ |
111 | table th.length { | |
112 | text-align: right /* track length column is right-aligned */ | |
460b9539 | 113 | } |
114 | ||
115 | td.length { | |
3225872d RK |
116 | text-align: right; /* track length column is right-aligned */ |
117 | font-size: 10pt /* track length is slightly smaller */ | |
460b9539 | 118 | } |
119 | ||
3225872d RK |
120 | /* p.mgmt is the bar of management buttons */ |
121 | /* form.volume is the form for setting the volume */ | |
122 | /* This is needed to stop FF breaking the management button line in two */ | |
123 | p.mgmt, form.volume { | |
460b9539 | 124 | display: inline |
125 | } | |
126 | ||
f230d1d6 | 127 | /* choose ********************************************************************/ |
460b9539 | 128 | |
3225872d | 129 | /* p.choosealpha is the bar of first-letter links */ |
460b9539 | 130 | p.choosealpha { |
328248ba | 131 | text-align: center; |
3225872d RK |
132 | font-size: 17pt; /* links are one letter so make them big... */ |
133 | font-weight: bold; /* ...and bold */ | |
134 | border: 1px solid black; /* border the link list */ | |
ebd70276 | 135 | padding: 0.2em |
460b9539 | 136 | } |
137 | ||
3225872d | 138 | /* p.directoryname contains the current directory when navigating */ |
460b9539 | 139 | p.directoryname { |
21c8e53a | 140 | font-weight: bold; |
141 | background-color: #ffffe0; /* pastel yellow */ | |
3225872d | 142 | color: black; |
21c8e53a | 143 | padding: 0.2em |
460b9539 | 144 | } |
145 | ||
3225872d | 146 | p.directoryname a { |
460b9539 | 147 | color: black |
148 | } | |
149 | ||
3225872d RK |
150 | /* section headings */ |
151 | div.filesdirectories p.heading { | |
21c8e53a | 152 | display: block; |
3225872d RK |
153 | background-color: #e0ffe0; /* heading are black on pastel green */ |
154 | color: black; | |
155 | font-weight: bold; /* ...and bold */ | |
21c8e53a | 156 | padding: 0.2em; |
157 | padding-left: 1.2em | |
460b9539 | 158 | } |
159 | ||
3225872d RK |
160 | /* one file or directory */ |
161 | div.filesdirectories p.entry { | |
162 | margin-left: 2em /* indent files & directories two steps */ | |
460b9539 | 163 | } |
164 | ||
3225872d RK |
165 | div.filesdirectories a { |
166 | text-decoration: none /* don't underline file/directory names */ | |
460b9539 | 167 | } |
168 | ||
3225872d | 169 | div.filesdirectories a { |
460b9539 | 170 | color: black |
171 | } | |
172 | ||
3225872d | 173 | div.filesdirectories a:active { |
460b9539 | 174 | color: red |
175 | } | |
176 | ||
21c8e53a | 177 | /* all files */ |
3225872d RK |
178 | div.filesdirectories p.all { |
179 | margin-left: 1em /* indent play all button only one step */ | |
21c8e53a | 180 | } |
181 | ||
f230d1d6 | 182 | /* buttons *******************************************************************/ |
460b9539 | 183 | |
3225872d RK |
184 | /* Buttons and links that look like buttons share the same formatting */ |
185 | button,a.button { | |
460b9539 | 186 | padding: 1px; |
3225872d RK |
187 | border-width: 3px; |
188 | border-color: #fefefe; /* Off-white */ | |
460b9539 | 189 | border-style: inset; |
3225872d | 190 | background-color: #c0c0c0; /* Black on light grey */ |
460b9539 | 191 | color: #000000; |
3225872d RK |
192 | text-decoration: none; /* Don't underline links */ |
193 | font-family: helvetica,sans-serif; | |
194 | font-weight: normal; | |
195 | font-variant: normal; | |
196 | font-size: 12pt | |
460b9539 | 197 | } |
198 | ||
3225872d | 199 | a.button:active,button:active { |
460b9539 | 200 | background-color: #c0c0c0; |
201 | color: #ffffff | |
202 | } | |
203 | ||
3225872d RK |
204 | /* Images that act like buttons aren't styled in the same way, but do want |
205 | * to lose their border */ | |
460b9539 | 206 | img.button { |
207 | border-width: 0 | |
208 | } | |
209 | ||
f230d1d6 | 210 | /* searching *****************************************************************/ |
460b9539 | 211 | |
460b9539 | 212 | span.search_artist { |
3225872d | 213 | font-weight: bold /* Artist in bold */ |
460b9539 | 214 | } |
215 | ||
216 | div.search_album { | |
3225872d | 217 | margin-left: 1em /* Indent album one step */ |
460b9539 | 218 | } |
219 | ||
220 | div.search_title { | |
3225872d | 221 | margin-left: 1em /* Indent title two steps */ |
460b9539 | 222 | } |
223 | ||
3225872d RK |
224 | div.search_title p { |
225 | margin-top: 0; /* Titles are compressed relative to ... */ | |
226 | margin-bottom: 0 /* ...artists and albums */ | |
460b9539 | 227 | } |
228 | ||
3225872d | 229 | div.search_title a { |
460b9539 | 230 | color: black |
231 | } | |
232 | ||
3225872d | 233 | div.search_title a:active { |
460b9539 | 234 | color: red |
235 | } | |
236 | ||
328248ba | 237 | form.search { |
3225872d | 238 | border: 1px solid black; /* Give the search box a border */ |
ebd70276 | 239 | padding: 0.2em |
328248ba | 240 | } |
241 | ||
3225872d | 242 | /* menu bar *******************************************************************/ |
460b9539 | 243 | |
5d30e04b RK |
244 | div.top { |
245 | background-color: #e0e0e0; | |
246 | border: 1px solid black | |
247 | } | |
248 | ||
249 | div.logo { | |
250 | float:right; | |
251 | margin-top:4px; | |
252 | margin-right:4px | |
253 | } | |
254 | ||
3225872d | 255 | /* p.menubar is the menu bar at the top */ |
460b9539 | 256 | p.menubar { |
5d30e04b RK |
257 | float:left; |
258 | margin-left: 4px; | |
fd4bfc4f | 259 | word-spacing: 0px |
460b9539 | 260 | } |
261 | ||
3225872d RK |
262 | /* Subelements are A for usable menus or SPAN for unusable ones */ |
263 | p.menubar a, p.menubar span { | |
264 | font-family: helvetica,sans-serif; | |
a84eb605 | 265 | font-size: 24px; |
fd4bfc4f RK |
266 | text-decoration: none; |
267 | padding: 4px | |
460b9539 | 268 | } |
269 | ||
3225872d | 270 | /* a.activemenu is the current menu item */ |
153115c0 RK |
271 | img.activemenu, a.activemenu { |
272 | background-color: #d0d0d0; | |
273 | color: black; | |
274 | padding: 4px; | |
275 | border: none | |
460b9539 | 276 | } |
277 | ||
3225872d | 278 | /* a.inactivemenu is a non-current but choosable menu item */ |
153115c0 | 279 | img.inactivemenu, a.inactivemenu { |
fd4bfc4f RK |
280 | color: black; |
281 | padding:4px; | |
153115c0 | 282 | border:none |
460b9539 | 283 | } |
284 | ||
3225872d | 285 | /* span.invaliemenu is a non-choosable menu item */ |
d7ce365e | 286 | span.invalidmenu { |
3225872d | 287 | color: #808080 |
d7ce365e | 288 | } |
289 | ||
3225872d | 290 | /* track preferences *********************************************************/ |
460b9539 | 291 | |
3225872d RK |
292 | /* p.prefs_head is the per-track heading */ |
293 | p.prefs_head { | |
294 | background-color: #ffffe0; /* Pastel yellow on black */ | |
295 | color: black; | |
296 | font-weight: bold; | |
297 | padding: 0.2em | |
460b9539 | 298 | } |
299 | ||
3225872d | 300 | /* table.prefs contains the prefs for one track */ |
460b9539 | 301 | table.prefs { |
3225872d RK |
302 | border-spacing: 0; |
303 | margin-left: 1em /* Indent each track's details */ | |
460b9539 | 304 | } |
305 | ||
3225872d RK |
306 | table.prefs th { |
307 | text-align: left /* Titles should be left-aligned */ | |
460b9539 | 308 | } |
309 | ||
3225872d | 310 | table.prefs td { |
460b9539 | 311 | vertical-align: top |
312 | } | |
313 | ||
3225872d | 314 | table.prefs input { |
460b9539 | 315 | font-family: monospace |
316 | } | |
317 | ||
5d30e04b RK |
318 | /* text with sectiosn *******************************************************/ |
319 | ||
320 | /* h2.sectiontitle is used for subsection headings */ | |
321 | h2.sectiontitle { | |
322 | background-color: #e0ffe0; /* Black on pastel green */ | |
323 | color: black; | |
324 | padding: 0.2em | |
325 | } | |
326 | ||
327 | /* There is a div.section for each subsection */ | |
328 | div.section { | |
329 | margin-left: 1em | |
330 | } | |
331 | ||
f230d1d6 | 332 | /* help **********************************************************************/ |
460b9539 | 333 | |
3225872d RK |
334 | /* table.helpbuttons is used for various tables of buttons */ |
335 | table.helpbuttons td { | |
460b9539 | 336 | vertical-align: top |
337 | } | |
338 | ||
3225872d RK |
339 | table.helpbuttons { |
340 | margin-left: 2em; | |
341 | margin-right: 2em | |
460b9539 | 342 | } |
343 | ||
3225872d | 344 | /* span.configuration marks configuration directives */ |
21c8e53a | 345 | span.configuration { |
346 | font-family: monospace | |
347 | } | |
348 | ||
f230d1d6 | 349 | /* volume ********************************************************************/ |
460b9539 | 350 | |
351 | p.volume { | |
352 | text-align: center | |
353 | } | |
354 | ||
f230d1d6 | 355 | /* login page ****************************************************************/ |
356 | ||
328248ba | 357 | form.login { |
358 | border: 1px solid black; | |
359 | background-color: #e0ffe0 /* pastel green */ | |
360 | } | |
361 | ||
6207d2f3 | 362 | form.reminder { |
363 | border: 1px solid black; | |
364 | background-color: #e0e0ff /* pastel blue */ | |
365 | } | |
366 | ||
328248ba | 367 | form.register { |
368 | border: 1px solid black; | |
369 | background-color: #e0e0ff /* pastel blue */ | |
370 | } | |
371 | ||
372 | form.edituser { | |
373 | border: 1px solid black; | |
374 | background-color: #ffffe0 /* pastel yellow */ | |
f230d1d6 | 375 | } |
376 | ||
3225872d RK |
377 | form.login table, form.reminder table, form.register table, form.edituser table { |
378 | margin: 0.2em /* Space login boxes nicely */ | |
379 | } | |
380 | ||
f230d1d6 | 381 | form.logout { |
382 | border-style: none; | |
383 | } | |
384 | ||
328248ba | 385 | div.loginstatus { |
386 | border: 1px solid black; | |
387 | background-color: #ffff00 /* solid yellow */ | |
388 | } | |
389 | ||
3225872d | 390 | div.loginstatus p { |
328248ba | 391 | color: #0000ff; /* solid blue */ |
3225872d RK |
392 | font-size: 18pt; |
393 | font-weight: bold; | |
394 | margin: 0.2em | |
f230d1d6 | 395 | } |
396 | ||
397 | /* errors ********************************************************************/ | |
398 | ||
328248ba | 399 | div.error { |
400 | border: 1px solid black; | |
3225872d | 401 | background-color: #ff0000; /* White on solid red */ |
328248ba | 402 | color: white; |
3225872d | 403 | font-size: 18pt; |
328248ba | 404 | font-weight: bold |
405 | } | |
406 | ||
3225872d | 407 | div.error p { |
ebd70276 | 408 | margin: 0.2em |
409 | } | |
410 | ||
f230d1d6 | 411 | /* miscelleanous *************************************************************/ |
460b9539 | 412 | |
413 | /* credits */ | |
414 | p.credits { | |
3225872d | 415 | font-size: 10pt; /* because visually intrusive */ |
21c8e53a | 416 | text-align: right; |
417 | background-color: #e0e0e0; | |
3225872d | 418 | color: black; |
21c8e53a | 419 | padding: 0.2em |
460b9539 | 420 | } |
421 | /* | |
422 | This file is part of DisOrder. | |
3225872d | 423 | Copyright (C) 2003-2008 Richard Kettlewell |
460b9539 | 424 | |
425 | This program is free software; you can redistribute it and/or modify | |
426 | it under the terms of the GNU General Public License as published by | |
427 | the Free Software Foundation; either version 2 of the License, or | |
428 | (at your option) any later version. | |
429 | ||
430 | This program is distributed in the hope that it will be useful, but | |
431 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
432 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
433 | General Public License for more details. | |
434 | ||
435 | You should have received a copy of the GNU General Public License | |
436 | along with this program; if not, write to the Free Software | |
437 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | |
438 | USA | |
439 | */ |