source: trunk/style.css @ 11

Last change on this file since 11 was 2, checked in by smasson, 17 years ago

initial import

File size: 7.7 KB
Line 
1/* Feuille de style DocBook du projet Traduc.org                */
2/* DocBook CSS stylesheet of the Traduc.org project             */
3
4/* (c) Jean-Philippe Guérard - 14 août 2004                     */
5/* (c) Jean-Philippe Guérard - 14 August 2004                   */
6
7/* Cette feuille de style est libre, vous pouvez la             */
8/* redistribuer et la modifier selon les termes de la Licence   */
9/* Art Libre. Vous trouverez un exemplaire de cette Licence sur */
10/* http://tigreraye.org/Petit-guide-du-traducteur.html#licence-art-libre */
11
12/* This work of art is free, you can redistribute it and/or     */
13/* modify it according to terms of the Free Art license. You    */
14/* will find a specimen of this license on the Copyleft         */
15/* Attitude web site: http://artlibre.org as well as on other   */
16/* sites.                                                       */
17/* Please note that the French version of this licence as shown */
18/* on http://tigreraye.org/Petit-guide-du-traducteur.html#licence-art-libre */
19/* is only official licence of this document. The English       */
20/* is only provided to help you understand this licence.        */
21
22/* La dernière version de cette feuille de style est toujours   */
23/* disponible sur : http://tigreraye.org/style.css              */
24/* Elle est également disponible sur :                          */
25/* http://www.traduc.org/docs/HOWTO/lecture/style.css           */
26
27/* The latest version of this stylesheet is available from:     */
28/* http://tigreraye.org/style.css                               */
29/* It is also available on:                                     */
30/* http://www.traduc.org/docs/HOWTO/lecture/style.css           */
31
32/* N'hésitez pas à envoyer vos commentaires et corrections à    */
33/* Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>  */
34
35/* Please send feedback and bug reports to                      */
36/* Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>  */
37
38/* $Id: style.css,v 1.26 2005/09/28 20:42:47 fevrier Exp fevrier $ */
39
40/* Présentation générale du document */
41/* Overall document presentation */
42
43body {
44    font-family: serif ;
45    margin: 7%;
46    background-color: white;
47}
48
49/* Taille du texte */
50/* Text size */
51
52* { font-size: 100%; }
53
54/* Gestion des textes mis en relief imbriqués */
55/* Embedded emphasis */
56
57em { font-style: italic; }
58i { font-style: italic; }
59
60em em { font-style: normal; }
61i  i  { font-style: normal; }
62i  em { font-style: normal; }
63em i  { font-style: normal; }
64
65em em em { font-style: italic; }
66em em i  { font-style: italic; }
67em i  em { font-style: italic; }
68em i  i  { font-style: italic; }
69i  em em { font-style: italic; }
70i  em i  { font-style: italic; }
71i  i  em { font-style: italic; }
72i  i  i  { font-style: italic; }
73
74/* Titres */
75/* Titles */
76
77h1 { font-size: 200%; font-weight: 900; }
78h2 { font-size: 160%; font-weight: 900; }
79h3 { font-size: 130%; font-weight: bold; }
80h4 { font-size: 115%; font-weight: bold; }
81h5 { font-size: 108%; font-weight: bold; }
82h6 {                  font-weight: bold; }
83
84/* Nom de famille en petites majuscules (uniquement en français) */
85/* Last names in small caps (for French only) */
86
87*[class~="surname"]:lang(fr) { font-variant: small-caps; }
88
89/* Historique des révision */
90/* Revision History */
91
92div[class~="revhistory"] > table {
93  border: solid 1px #AAA;
94  background: #f0f0f0;
95}
96
97div[class~="revhistory"] > table td {
98  border: solid 1px #AAA;
99}
100
101/* Blocs de citation */
102/* Quotation blocs */
103
104div[class~="blockquote"] {
105  border: none;
106}
107
108div[class~="blockquote"] > table {
109  border: none;
110}
111
112/* Blocs litéraux : fond gris clair */
113/* Literal blocs: light gray background */
114
115*[class~="literallayout"] {
116  background: #f0f0f0;
117  padding: 5px;
118  margin: 5px;
119}
120
121/* Programmes et captures texte : fond bleu clair */
122/* Listing and text screen snapshots: light blue background */
123
124*[class~="programlisting"], *[class~="screen"] {
125  background: #f0f0ff;
126  padding: 5px;
127  margin: 5px;
128}
129
130/* Les textes à remplacer sont surlignés en vert pâle */
131/* Replaceable text in highlighted in pale green */
132
133*[class~="replaceable"] { 
134    background-color: #98fb98;
135    font-style: normal; }
136
137/* Tables : fonds gris clair & bords simples */
138/* Tables: light gray background and solid borders */
139
140*[class~="table"] *[class~="title"] { width:100%; border: 0px; }
141
142table {
143    border: 1px solid #aaa;
144    border-collapse: collapse;
145    padding: 2px;
146    margin: 5px;
147}
148
149/* Listes simples en style table */
150/* Simples lists in table presentation */
151
152table[class~="simplelist"] {
153    background-color: #F0F0F0;
154    margin: 5px;
155    border: solid 1px #AAA;
156}
157
158table[class~="simplelist"] td {
159    border: solid 1px #AAA;
160}
161
162/* Les tables */
163/* Tables */
164
165*[class~="table"] table {
166    background-color: #F0F0F0;
167    border: solid 1px #AAA;
168}
169*[class~="informaltable"] table { background-color: #F0F0F0; }
170
171th,td {
172    vertical-align: baseline;
173    text-align: left;
174    padding: 0.1em 0.3em;
175    empty-cells: show; 
176}
177
178/* Alignement des colonnes */
179/* Colunms alignment */
180
181td[align=center] ,  th[align=center]  { text-align: center; }
182td[align=right] ,   th[align=right]   { text-align: right; }
183td[align=left] ,    th[align=left]    { text-align: left; }
184td[align=justify] , th[align=justify] { text-align: justify; }
185
186/* Pas de marge autour des images */
187/* No inside margins for images */
188
189img { border: 0; }
190
191/* Les liens ne sont pas soulignés */
192/* No underlines for links */
193
194:link , :visited , :active { text-decoration: none; }
195
196/* Prudence : cadre jaune et fond jaune clair */
197/* Caution: yellow border and light yellow background */
198
199*[class~="caution"] {
200    border: solid 2px yellow;
201    background-color: #ffffe0;
202    padding: 5px 1em;
203    margin: 5px;
204}
205
206*[class~="caution"] th {
207    vertical-align: middle
208}
209
210*[class~="caution"] table {
211    background-color: #ffffe0;
212    border: none;
213}
214
215pre + div[class~="caution"] {
216    margin-top: +1.5em;
217}
218
219/* Note importante : cadre jaune et fond jaune clair */
220/* Important: yellow border and light yellow background */
221
222*[class~="important"] {
223    border: solid 2px yellow;
224    background-color: #ffffe0;
225    padding: 5px 1em;
226    margin: 5px;
227}
228
229*[class~="important"] th {
230    vertical-align: middle
231}
232
233*[class~="important"] table  {
234    background-color: #ffffe0;
235    border: none;
236}
237
238pre + div[class~="important"] {
239    margin-top: +1.5em;
240}
241
242
243/* Mise en évidence : texte légèrement plus grand */
244/* Highlights: slightly larger texts */
245
246*[class~="highlights"] {
247    font-size:  110%;
248}
249
250/* Note : cadre bleu et fond bleu clair */
251/* Notes: blue border and light blue background */
252
253*[class~="note"]   {
254    border: solid 2px #7099C5;
255    background-color: #f0f0ff;
256    padding: 5px 1em;
257    margin: 5px;
258}
259
260*[class~="note"] th {
261    vertical-align: middle
262}
263
264*[class~="note"] table {
265    background-color: #f0f0ff;
266    border: none;
267}
268
269pre + div[class~="note"] {
270    margin-top: +1.5em;
271}
272
273/* Astuce : cadre vert et fond vert clair */
274/* Tip: green border and light green background */
275
276*[class~="tip"] {
277    border: solid 2px #00ff00;
278    background-color: #f0ffff;
279    padding: 5px 1em;
280    margin: 5px;
281}
282
283*[class~="tip"] th {
284    vertical-align: middle;
285}
286
287*[class~="tip"] table {
288    background-color: #f0ffff;
289    border: none;
290}
291
292pre + div[class~="tip"] {
293    margin-top: +1.5em;
294}
295
296/* Avertissement : cadre rouge et fond rouge clair */
297/* Warning: red border and light red background */
298
299*[class~="warning"] {
300    border: solid 2px #ff0000;
301    background-color: #fff0f0; 
302    padding: 5px 1em;
303    margin: 5px;
304}
305
306*[class~="warning"] th {
307    vertical-align: middle;
308}
309                   
310
311*[class~="warning"] table {
312    background-color: #fff0f0;
313    border: none;
314}
315
316pre + div[class~="warning"] {
317    margin-top: +1.5em;
318}
319
320
321/* Listes de renvois */
322/* Callout lists */
323
324*[class~="calloutlist"] table {
325    background-color: #e0e0ee;
326    border: none;
327}
328
329/* Fin */
330/* The End */
331
Note: See TracBrowser for help on using the repository browser.