summaryrefslogtreecommitdiff
path: root/doc/common/kde-default.css
Unidiff
Diffstat (limited to 'doc/common/kde-default.css') (more/less context) (ignore whitespace changes)
-rw-r--r--doc/common/kde-default.css228
1 files changed, 228 insertions, 0 deletions
diff --git a/doc/common/kde-default.css b/doc/common/kde-default.css
new file mode 100644
index 0000000..918840c
--- a/dev/null
+++ b/doc/common/kde-default.css
@@ -0,0 +1,228 @@
1/*
2 KDE-wide default CSS for HTML documentation (all media types).
3 Copyright (C) 2000 Frederik Fouvry
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 Send comments, suggestions, etc. to Frederik Fouvry
20 <fouvry@sfs.nphil.uni-tuebingen.de>. */
21
22/*
23 Important note: these setting may be overridden by localised CSS. Do not
24 add here any localisation-sensitive style declarations.
25
26 Any updates should be validated, e.g. http://jigsaw.w3.org/css-validator/ */
27
28/* Note: "should be inherit" means that in a proper browser inherit should work.
29 Somehow Netscape manages to interpret "inherit" as bright green.
30 Yuck. */
31
32body {
33background-color: white;
34font-family: sans-serif;
35padding: 0;
36margin: 0;
37}
38
39.sect1, .chapter {
40padding: 2em;
41}
42
43.chapter .sect1 {
44padding: 0em;
45}
46
47/* Links in Navigation */
48
49.navLeft a:link, .navCenter :link, .navRight :link, .header a:link, .header a:visited, .bottom-nav a:link, .bottom-nav a:visited {
50color: white;
51background-color: #3E91EB;
52font-weight: bold;
53}
54
55
56/* Nice link colors for the main text
57 Setting text-decoration seems to fix a nasty redraw problem in KHC */
58
59:link { color: rgb(170,0,0);
60 background-color: white; /* should be inherit */ }
61:visited { color: rgb(170,0,85);
62 background-color: white; /* should be inherit */ }
63:active { color: rgb(170,0,0);
64 background-color: white; /* should be inherit */ }
65
66.navLeft {
67text-align: left;
68font-weight: bold;
69padding-left: 0.5em;
70background-color: #3E91EB;
71}
72
73.navRight {
74text-align: right;
75font-weight: bold;
76padding-right: 0.5em;
77}
78
79.navCenter {
80text-align: center;
81font-weight: bold;
82padding-left: 0.5em;
83padding-right: 0.5em;
84background-color: transparent;
85}
86
87.header {
88font-size: small;
89line-height: 1em;
90padding-left: 1em;
91vertical-align: middle;
92background-color: #3E91EB;
93color: white;
94margin: 0;
95padding: 0;
96border-top: 1px solid white;
97border-bottom: 1px solid #206dcd;
98height: 1.7em;
99}
100
101.bottom-nav {
102font-size: small;
103line-height: 1em;
104padding-left: 1em;
105vertical-align: middle;
106background-color: #3E91EB;
107color: white;
108margin: 0;
109padding: 0;
110border-top: 1px solid white;
111padding-top: 10px;
112border-bottom: 1px solid #206dcd;
113height: 1.7em;
114}
115
116#logo {
117background: url('help:/common/kde_logo_bg.png') transparent repeat;
118}
119
120
121/* A little bit of padding makes the tables for keybindings etc much easier to read */
122
123TABLE { padding: 5px; }
124DT { margin-top: 1em; }
125DIV.toc DT { margin-top: 0px; }
126DIV.SCREENSHOT { margin-bottom: 1em;
127 margin-top: 1em; }
128DIV.INFORMALEXAMPLE { border-style: dotted;
129 padding: 10px; }
130
131/* But no padding for navigation elements */
132
133.toplogo, .navbackground, { padding: 0px; }
134
135TABLE.programlisting
136TABLE.screen { border-style: none;
137 background-color: rgb(224,224,224);
138 table-layout: auto; /* 100%? */
139 color: rgb(0,0,0); /* should be inherit */
140 }
141
142/* Same as previous block, but more general (previous is HTML only)
143 Not all browsers understand this yet.
144TABLE[class~=programlisting]
145TABLE[class~=screen] { border-style: none;
146 background-color: rgb(224,224,224);
147 table-layout: auto;
148 color: inherit;
149 }
150*/
151
152P { text-align: justify; }
153
154/* More specific settings */
155
156/* Temporary patch: browsers break on bad HTML */
157/* P, H1, H2, H3, H4, H5, TD, TH { font-family: Helvetica, Arial, sans-serif;
158 } */
159
160P, H1, H2, H3, H4, H5, TD, TH { font-family: sans-serif;
161 }
162
163/* Visual cues for GUI elements etc in the text */
164
165.guimenu, .guimenuitem, .guisubmenu { background-color: rgb(240,240,240);
166 color: rgb(0,0,0); /* should be inherit */
167 }
168
169.guilabel, .interface, .guibutton { background-color: rgb(240,240,240);
170 color: rgb(0,0,0); /* should be inherit */
171 }
172
173.shortcut { background-color: rgb(240,240,240);
174 color: rgb(0,0,0); /* should be inherit */
175 }
176
177.shortcut .keycap { background-color: rgb(240,240,240);
178 color: rgb(0,0,0); /* should be inherit */
179 }
180
181.question { font-weight: bolder; }
182
183.accel { background-color: rgb(240,240,240);
184 color: rgb(0,0,0);
185 text-decoration: underline;
186 }
187
188.option, .command { background-color: rgb(255,255,255);
189 color: rgb(0,96,160);
190 font-weight: bold;
191 }
192
193h1, h2, h3, h4, h5, h6 { color: rgb(82,80,82);
194 }
195.arg, .parameter, .replaceable{ background-color: rgb(255,255,255);
196 color: rgb(0,128,64);
197 font-style: italic;
198 }
199
200DIV.mediaobject { /* float: right; */
201 /* might make it much nicer. although someone has to
202 understand the rules ;-) You also don't want it to be
203 surrounded by text it doesn't refer to ... But that
204 may be among others a question of writing style. */
205 text-align: center; /* a bit of a hack: it should
206 position _images_ */
207 }
208
209.caption { margin: 0em 2em 3em 2em; }
210
211.inlinemediaobject { vertical-align: baseline;
212 padding-right: 1em;
213 padding-left: 1em; }
214
215/* An idea that could be nice: a search engine looking for specific
216classes could display them in some conspicuous colour. All that is
217needed is an on the fly generated style element/style sheet. */
218
219/* Only used in the hand-made HTML license texts */
220BODY.license { background-color: rgb(255,255,255);
221 text-align: justify;
222 color: rgb(0,0,0);
223 }
224PRE.license { background-color: rgb(255,255,255);
225 font-family: monospace;
226 color: rgb(0,0,0);
227 }
228