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