5ea0251de1a3a66db96f58e5dbd0ec1a756d6951
[privoxy.git] / templates / cgi-style.css
1 ##############################################################################
2 #
3 # File        :  $Source: /cvsroot/ijbswa/current/templates/cgi-style.css,v $
4 #
5 # Purpose     :  Style sheet for the web-based config interface.
6 #
7 # Copyright   :  Written by and Copyright (C) 2001 the SourceForge
8 #                Privoxy team. http://www.privoxy.org/
9 #
10 #                Original Author: Copyright (C) 2001 Jonathan Foster
11 #                http://www.jon-foster.co.uk/
12 #
13 #                This program is free software; you can redistribute it 
14 #                and/or modify it under the terms of the GNU General
15 #                Public License as published by the Free Software
16 #                Foundation; either version 2 of the License, or (at
17 #                your option) any later version.
18 #
19 #                This program is distributed in the hope that it will
20 #                be useful, but WITHOUT ANY WARRANTY; without even the
21 #                implied warranty of MERCHANTABILITY or FITNESS FOR A
22 #                PARTICULAR PURPOSE.  See the GNU General Public
23 #                License for more details.
24 #
25 #                The GNU General Public License should be included with
26 #                this file.  If not, you can view it at
27 #                http://www.gnu.org/copyleft/gpl.html
28 #                or write to the Free Software Foundation, Inc., 59
29 #                Temple Place - Suite 330, Boston, MA  02111-1307, USA.
30 #
31 # Revisions   :
32 #    $Log: cgi-style.css,v $
33 #    Revision 1.9  2006/12/17 17:50:55  fabiankeil
34 #    Add white space workaround for tables
35 #    in show-status CGI page.
36 #
37 #    Revision 1.8  2002/05/12 15:53:41  jongfoster
38 #    Adding standard comment header with license and CVS log.
39 #
40 #
41 ##############################################################################
42
43 /*
44  * CSS for Privoxy CGI and script output
45  *
46  * $Id: cgi-style.css,v 1.9 2006/12/17 17:50:55 fabiankeil Exp $
47  */
48
49 /*
50  * General rules: Font, Color, Headings, Margins, Links
51  */
52 body,td,th { font-family: arial, helvetica, helv, sans-serif; }
53 body { background-color: #ffffff; color: #000000; }
54
55 h1 { font-size: 140%; margin: 0px; }
56 h2 { font-size: 120%; margin: 0px; }
57 h3 { font-size: 110%; margin: 0px; }
58
59 p,pre  { margin-left: 15px; }
60 li { margin: 2px 15px; }
61 dl { margin: 2px 15px; }
62
63 a:link    { color: #0000dd; text-decoration: none; }
64 a:visited { color: #330099; text-decoration: none; }
65 a:active  { color: #3333ff; text-decoration: none; }
66
67 /*
68  * Boxen as Table elements:
69  */
70 td.title   { border: solid black 1px; background-color: #dddddd; }
71 td.box     { border: solid black 1px; background-color: #eeeeee; }
72 td.info    { border: solid black 1px; background-color: #ccccff; }
73 td.warning { border: solid black 1px; background-color: #ffdddd; }
74
75 /*
76  * Special Table Boxen: for nesting, naked container and for
77  * the Status field in CGI Output:
78  */
79 td.wrapbox { border: solid black 1px; padding: 5px; }
80 td.container { padding: 0px; }
81 td.status  { border: solid black 1px; background-color: #ff0000; color: #ffffff; font-size: 300%; font-weight: bolder; }
82
83 /*
84  * Same Boxen as <div>s:
85  */
86 div.title    { border: solid black 1px; background-color: #dddddd; margin: 20px; padding: 20px; }
87 div.box      { border: solid black 1px; background-color: #eeeeee; margin: 20px; padding: 20px; }
88 div.info     { border: solid black 1px; background-color: #ccccff; margin: 20px; padding: 20px; }
89 div.warning  { border: solid black 1px; background-color: #ffdddd; margin: 20px; padding: 20px; }
90 div.wrapbox  { border: solid black 1px;                            margin: 20px; padding:  5px; }
91
92
93 /*
94  * Bold definitions in <dl>s, grey BG for table headings, transparent (no-bordered) table
95  */
96 dt { font-weight: bold; }
97 th { background-color: #dddddd; }
98 table.transparent { border-style: none}
99
100 /*
101  * Special purpose paragraphs: Small for page footers,
102  * Important for quoting wrong or dangerous examples,
103  * Whiteframed for the toggle?mini=y CGI
104  */
105 p.small { font-size: 10px; margin: 0px; }
106 p.important { border: solid black 1px; background-color: #ffdddd; font-weight: bold; padding: 2px; }
107 p.whiteframed { margin: 5px; padding: 5px; border: solid black 1px; text-align: center; background-color: #eeeeee; }
108
109 /*
110  * Links as buttons:
111  */
112
113 td.buttons {
114   padding: 2px;
115 }
116
117 a.cmd, td.indentbuttons a, td.buttons a {
118   white-space: nowrap;
119   width: auto;
120   padding: 2px;
121   background-color: #dddddd;
122   color:            #000000;
123   text-decoration: none;
124   border-top:    1px solid #ffffff;
125   border-left:   1px solid #ffffff;
126   border-bottom: 1px solid #000000;
127   border-right:  1px solid #000000;
128 }
129 a.cmd:hover, td.indentbuttons a:hover, td.buttons a:hover {
130   background-color: #eeeeee;
131 }
132 a.cmd:active, td.indentbuttons a:active, td.buttons a:active {
133   border-top:    1px solid #000000;
134   border-left:   1px solid #000000;
135   border-bottom: 1px solid #ffffff;
136   border-right:  1px solid #ffffff;
137 }
138
139
140 /*
141  * Special red emphasis:
142  */
143 em.warning { color: #ff0000 }
144
145 /*
146  * In show-status we use tables directly behind headlines
147  * and for some reason or another the headlines are set to
148  * "margin:0" and leave the tables no air to breath.
149  *
150  * A proper fix would be to replace or remove the "margin:0",
151  * but as this affects every cgi page we do it another time
152  * and use this workaround until then.
153  */
154 .box table { margin-top: 1em; }