1 /* $Id$ */ |
|
2 |
|
3 *::comment { display: none; } |
|
4 |
|
5 publidoc { |
|
6 display: block; |
|
7 font-family: sans-serif; |
|
8 padding: 0; |
|
9 } |
|
10 |
|
11 |
|
12 /* Head level ============================================================== */ |
|
13 |
|
14 head { |
|
15 display: block; |
|
16 margin-bottom: .5em; |
|
17 background-color: #fafafa; |
|
18 padding: 0 .2em 0 .2em; |
|
19 border: 1px solid #bbbbbb; |
|
20 border-radius: 0.2em; |
|
21 } |
|
22 |
|
23 head > *:before { |
|
24 display: marker; |
|
25 content: element-label(); |
|
26 color: #7f7f7f; |
|
27 } |
|
28 head > title:before { display: none; } |
|
29 head > subtitle:before { display: none; } |
|
30 head > identifier[type="uri"]:before { content: insert-before-button() " URI :"; } |
|
31 head > identifier[type="ean"]:before { content: insert-before-button() " EAN :"; } |
|
32 head > language:before { content: insert-before-button() " Langue :"; } |
|
33 head > copyright:before { content: insert-before-button() " Copyright :"; } |
|
34 head > author:before { content: insert-before-button() " Auteur :"; } |
|
35 head > publisher:before { content: insert-before-button() " Éditeur :"; } |
|
36 head > date:before { content: insert-before-button() " Date :"; } |
|
37 head > place:before { content: insert-before-button() " Lieu :"; } |
|
38 head > source:before { content: insert-before-button() " Source :"; } |
|
39 head > keywordset:before { content: insert-before-button() " Mots clés :"; } |
|
40 head > subjectset:before { content: insert-before-button() " Thèmes :"; } |
|
41 head > abstract:before { content: insert-before-button() " Résumé :"; } |
|
42 head > cover:before { content: insert-before-button() " Couverture :"; } |
|
43 head > annotation:before { content: insert-before-button() " Annotation :"; } |
|
44 |
|
45 head > * { |
|
46 display: block; |
|
47 margin: 0 0 .5em 7em; |
|
48 } |
|
49 head > title { |
|
50 font-size: 120%; |
|
51 font-weight: bold; |
|
52 color: #004080; |
|
53 margin: .2em 0 .2em 0; |
|
54 } |
|
55 head > subtitle { |
|
56 font-weight: bold; |
|
57 color: #004080; |
|
58 margin: 0 0 .2em 0; |
|
59 } |
|
60 |
|
61 head > *:after { |
|
62 color: #7f7f7f; |
|
63 content: " " insert-after-button(); |
|
64 } |
|
65 head > annotation:after { content: ""; } |
|
66 |
|
67 language { |
|
68 content: combo-box(attribute, "xml:lang", font-size, 75%, |
|
69 labels, "Anglais\A Français\A Français (France)\A Espagnol", |
|
70 values, "en\A fr\A fr-FR\A, es"); |
|
71 } |
|
72 |
|
73 /* Division level ========================================================== */ |
|
74 |
|
75 division:before { |
|
76 display: block; |
|
77 color: #7f7f7f; |
|
78 content: collapser() " " insert-before-button() insert-after-button() |
|
79 " Division" |
|
80 } |
|
81 |
|
82 division { |
|
83 display: block; |
|
84 border: 1px dotted #7f7f7f; |
|
85 padding: 5px; |
|
86 margin-bottom: .5em; |
|
87 collapsible: yes; |
|
88 not-collapsible-head: 1; |
|
89 } |
|
90 division:last-child { |
|
91 margin-bottom: 0; |
|
92 } |
|
93 |
|
94 division > head { |
|
95 background-color: #ffffee; |
|
96 padding: .3em .5em .3em .5em; |
|
97 border-radius: 0.5em; |
|
98 } |
|
99 |
|
100 |
|
101 /* Component level ========================================================= */ |
|
102 |
|
103 topic:before { |
|
104 display: block; |
|
105 color: #7f7f7f; |
|
106 background-color: #ddddcc; |
|
107 border: 1px solid #aeaea0; |
|
108 font-weight: bold; |
|
109 padding: .5em 5px .5em 5px; |
|
110 content: collapser() " " insert-before-button() insert-after-button() |
|
111 " " add-attribute-button() " Topic"; |
|
112 } |
|
113 topic[xml|id]:before { |
|
114 content: collapser() " " insert-before-button() insert-after-button() |
|
115 " " add-attribute-button() " Topic" |
|
116 " – ID = " text-field(attribute, "xml:id", columns, 15, color, black); |
|
117 } |
|
118 topic[type]:before { |
|
119 content: collapser() " " insert-before-button() insert-after-button() |
|
120 " " add-attribute-button() " Topic" |
|
121 " – Type = " text-field(attribute, type, columns, 10, color, black); |
|
122 } |
|
123 topic[xml|id][type]:before { |
|
124 content: collapser() " " insert-before-button() insert-after-button() |
|
125 " Topic" |
|
126 " – ID = " text-field(attribute, "xml:id", columns, 15, color, black) |
|
127 " – Type = " text-field(attribute, type, columns, 10, color, black); |
|
128 } |
|
129 |
|
130 topic { |
|
131 display: block; |
|
132 border: 1px solid #aeaea0; |
|
133 margin-bottom: .5em; |
|
134 padding: 5px; |
|
135 collapsible: yes; |
|
136 } |
|
137 topic:last-child { |
|
138 margin-bottom: 0; |
|
139 } |
|
140 |
|
141 topic > head { |
|
142 background-color: #ffffee; |
|
143 padding: .3em .5em .3em .5em; |
|
144 border-radius: 0.5em; |
|
145 } |
|
146 |
|
147 |
|
148 /* Top level =============================================================== */ |
|
149 |
|
150 publidoc > *:before { |
|
151 display: block; |
|
152 color: #bbbbbb; |
|
153 background: #993333 url('top.png') repeat-x top left; |
|
154 font-weight: bold; |
|
155 padding: 1.2em 5px 1em 5px; |
|
156 } |
|
157 publidoc > document:before { |
|
158 content: "Document – " |
|
159 "ID = " text-field(attribute, "xml:id", columns, 15, color, white); |
|
160 } |
|
161 publidoc > topic[xml|id]:before { |
|
162 content: add-attribute-button() " Topic – " |
|
163 "ID = " text-field(attribute, "xml:id", columns, 15, color, white); |
|
164 } |
|
165 publidoc > topic[xml|id][type]:before { |
|
166 content: "Topic" |
|
167 " – ID = " text-field(attribute, "xml:id", columns, 15, color, white) |
|
168 " – Type = " text-field(attribute, type, columns, 10, color, white); |
|
169 } |
|
170 |
|
171 |
|
172 publidoc > * { |
|
173 display: block; |
|
174 margin: 5px; |
|
175 padding: 0; |
|
176 border: 0; |
|
177 } |
|
178 |
|
179 publidoc > * > head { |
|
180 background-color: #ffffee; |
|
181 padding: .3em .5em .3em .5em; |
|
182 border-radius: 0.5em; |
|
183 } |
|
184 |
|
185 publidoc > * > head > title { |
|
186 font-size: 140%; |
|
187 } |
|
188 |
|
189 |
|
190 /* Section level =========================================================== */ |
|
191 |
|
192 section:before { |
|
193 display: block; |
|
194 color: #7f7f7f; |
|
195 padding-bottom: 3px; |
|
196 text-align: left; |
|
197 content: insert-before-button() add-attribute-button(icon, icon(plus-box)); |
|
198 } |
|
199 section[type]:before { |
|
200 content: insert-before-button() |
|
201 text(" Type = ", font-size, 75%) |
|
202 text-field(attribute, type, columns, 10, color, black, font-size, 75%); |
|
203 } |
|
204 section section:before { |
|
205 margin-left: 1em; |
|
206 } |
|
207 |
|
208 section { |
|
209 display: block; |
|
210 } |
|
211 section[type="box"] { |
|
212 margin-bottom: .5em; |
|
213 padding: 5px; |
|
214 background-color: #e8f0f7; |
|
215 border-radius: 0.2em; |
|
216 } |
|
217 section[type="ex"] { font-style: italic; } |
|
218 section[type="sign"] { text-align: right; } |
|
219 |
|
220 section section { |
|
221 margin-left: 1em; |
|
222 } |
|
223 |
|
224 section:after { |
|
225 color: #7f7f7f; |
|
226 content: insert-after-button(); |
|
227 } |
|
228 |
|
229 |
|
230 /* Block level ============================================================= */ |
|
231 |
|
232 p:before, speech:before, list:before, |
|
233 blockquote:before, table:before, media:before { |
|
234 display: marker; |
|
235 content: insert-before-button(color, #7f7f7f, icon, icon(left-half-disc)) |
|
236 insert-after-button(color, #7f7f7f, icon, icon(right-half-disc)); |
|
237 } |
|
238 |
|
239 p, speech, list, blockquote, table, media { |
|
240 display: block; |
|
241 margin-left: 24px; |
|
242 font-size: 115%; |
|
243 font-family: serif; |
|
244 } |
|
245 |
|
246 /* list ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ |
|
247 |
|
248 list { |
|
249 margin: .3em 0 .3em 24px; |
|
250 } |
|
251 |
|
252 list > head { |
|
253 font-size: 75%; |
|
254 } |
|
255 |
|
256 item { |
|
257 display: list-item; |
|
258 } |
|
259 list[type="ordered"] > item { |
|
260 list-style-type: decimal; |
|
261 } |
|
262 |
|
263 item:after { |
|
264 content: insert-same-after-button(color, #7f7f7f, icon, icon(right-half-disc)); |
|
265 } |
|
266 |
|
267 list[type="glossary"] > item > label { |
|
268 font-weight: bold; |
|
269 } |
|
270 |
|
271 /* blockquote ~~~~~~~~~~~~~~~~~~~~~~ */ |
|
272 |
|
273 attribution { font-style: italic; } |
|
274 |
|
275 |
|
276 /* Inline level ============================================================ */ |
|
277 |
|
278 /* sup, sub, var ~~~~~~~~~~~~~~~~~~~ */ |
|
279 |
|
280 sup { font-family: sans-serif; vertical-align: super; font-size: 75%; } |
|
281 sub { font-family: sans-serif; vertical-align: sub; font-size: 75%; } |
|
282 var { font-family: sans-serif; font-style: italic; } |
|
283 |
|
284 /* note ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ |
|
285 |
|
286 note:before { font-size: 75%; content: "(Note : "; } |
|
287 note { font-family: sans-serif; color: #004080; font-size: 75%; } |
|
288 note:after { font-size: 75%; content: ")"; } |
|
289 note p { display:inline; } |
|
290 |
|
291 /* highlight ~~~~~~~~~~~~~~~~~~~~~~~ */ |
|
292 |
|
293 highlight { font-weight: bold; } |
|
294 |
|
295 /* link ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ |
|
296 |
|
297 link:before { |
|
298 color: #7f7f7f; |
|
299 font-family: sans-serif; |
|
300 content: "[" |
|
301 } |
|
302 |
|
303 media link { |
|
304 display: block; |
|
305 } |
|
306 |
|
307 link:after { |
|
308 color: #7f7f7f; |
|
309 font-family: sans-serif; |
|
310 } |
|
311 link[uri]:after { |
|
312 content: " ‣ " text-field(attribute, uri, color, black, font-size, 80%) "]"; |
|
313 } |
|
314 link[idref]:after { |
|
315 content: " ‣ " label(attribute, idref, color, black) |
|
316 set-attribute-button(attribute, idref) "]"; |
|
317 } |
|
318 |
|