source: trunk/style.css

Last change on this file was 355, checked in by pinsard, 10 years ago

fix thanks to coding rules; typo; dupe empty lines

  • Property svn:keywords set to Id
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$ */
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/* Columns 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/* Mise en évidence : texte légèrement plus grand */
243/* Highlights: slightly larger texts */
244
245*[class~="highlights"] {
246    font-size:  110%;
247}
248
249/* Note : cadre bleu et fond bleu clair */
250/* Notes: blue border and light blue background */
251
252*[class~="note"]   {
253    border: solid 2px #7099C5;
254    background-color: #f0f0ff;
255    padding: 5px 1em;
256    margin: 5px;
257}
258
259*[class~="note"] th {
260    vertical-align: middle
261}
262
263*[class~="note"] table {
264    background-color: #f0f0ff;
265    border: none;
266}
267
268pre + div[class~="note"] {
269    margin-top: +1.5em;
270}
271
272/* Astuce : cadre vert et fond vert clair */
273/* Tip: green border and light green background */
274
275*[class~="tip"] {
276    border: solid 2px #00ff00;
277    background-color: #f0ffff;
278    padding: 5px 1em;
279    margin: 5px;
280}
281
282*[class~="tip"] th {
283    vertical-align: middle;
284}
285
286*[class~="tip"] table {
287    background-color: #f0ffff;
288    border: none;
289}
290
291pre + div[class~="tip"] {
292    margin-top: +1.5em;
293}
294
295/* Avertissement : cadre rouge et fond rouge clair */
296/* Warning: red border and light red background */
297
298*[class~="warning"] {
299    border: solid 2px #ff0000;
300    background-color: #fff0f0; 
301    padding: 5px 1em;
302    margin: 5px;
303}
304
305*[class~="warning"] th {
306    vertical-align: middle;
307}
308                   
309
310*[class~="warning"] table {
311    background-color: #fff0f0;
312    border: none;
313}
314
315pre + div[class~="warning"] {
316    margin-top: +1.5em;
317}
318
319/* Listes de renvois */
320/* Callout lists */
321
322*[class~="calloutlist"] table {
323    background-color: #e0e0ee;
324    border: none;
325}
326
327/* Fin */
328/* The End */
329
Note: See TracBrowser for help on using the repository browser.