Debian Codegraph @

xslt/common/css/mallard.css.tmpl

raw
1 <tmpl>
2 <!-- links -->
3 div.links .desc a {
4 color: inherit;
5 }
6 div.links .desc a:hover {
7 color: {{$color.fg.blue}};
8 }
9 a.bold { font-weight: bold; }
10
11 <!-- link/@style = 'button' -->
12 div.link-button {
13 font-size: 1.2em;
14 font-weight: bold;
15 }
16 .link-button a {
17 display: inline-block;
18 background-color: {{$color.blue}};
19 color: {{$color.bg}};
20 text-shadow: {{$color.fg.blue}} 1px 1px 0px;
21 border: solid 1px {{$color.fg.blue}};
22 padding: 0.2em 0.83em 0.2em 0.83em;
23 border-radius: 4px;
24 }
25 .link-button a:visited {
26 color: {{$color.bg}};
27 }
28 .link-button a:hover {
29 text-decoration: none;
30 color: {{$color.bg}};
31 background-color: {{$_color.link_button_hover}};
32 }
33 div.link-button a .desc {
34 display: block;
35 font-weight: normal;
36 font-size: 0.83em;
37 color: {{$color.bg.gray}};
38 }
39
40 <!-- @style = 'float*' -->
41 div.floatleft {
42 float: left;
43 margin-right: 1em;
44 }
45 div.floatright {
46 float: right;
47 margin-left: 1em;
48 }
49 div.floatstart {
50 float: {{$left}};
51 margin-{{$right}}: 1em;
52 }
53 div.floatend {
54 float: {{$right}};
55 margin-{{$left}}: 1em;
56 }
57
58 <!-- FIXME -->
59 div.title-heading h1, div.title-heading h2, div.title-heading h3,
60 div.title-heading h4, div.title-heading h5, div.title-heading h6 {
61 font-size: 1.72em;
62 font-weight: bold;
63 }
64 ul.links-heading > li { margin: 2em 0 2em 0; padding: 0; }
65 div.links-heading > a { font-size: 1.72em; font-weight: bold; }
66 ul.links-heading > li > div.desc { margin-top: 0.5em; }
67
68 div.links-uix-hover {
69 position: relative;
70 display: flex;
71 flex-flow: row nowrap;
72 align-items: stretch;
73 justify-content: flex-start;
74 }
75 ul.links-uix-hover { flex-grow: 1; }
76 ul.links-uix-hover li { margin: 0; padding: 0; }
77 ul.links-uix-hover a {
78 display: block;
79 padding: 8px 1.2em;
80 border-bottom: none;
81 }
82 ul.links-uix-hover a:hover, ul.links-uix-hover a:focus {
83 background: {{$color.bg.blue}};
84 }
85 ul.links-uix-hover img {
86 display: block;
87 position: absolute;
88 top: 0; {{$left}}: 0;
89 visibility: hidden;
90 opacity: 0.0;
91 transition: opacity 0.6s, visibility 0.6s;
92 }
93 ul.links-uix-hover a:hover img, ul.links-uix-hover a:focus img {
94 visibility: visible;
95 opacity: 1.0;
96 transition: opacity 0.2s, visibility 0.2s;
97 }
98 @media only screen and (max-width: 480px) {
99 div.links-uix-hover-img { display: none; }
100 ul.links-uix-hover img { display: none; }
101 ul.links-uix-hover li {
102 margin-left: -10px; margin-right: -10px;
103 }
104 ul.links-uix-hover li a {
105 padding: 10px;
106 }
107 }
108
109 <!-- uix:overlay -->
110 div.ui-overlay-screen {
111 position: fixed;
112 margin: 0;
113 left: 0; top: 0;
114 width: 100%; height: 100%;
115 background: {{$color.fg.dark}};
116 animation-name: yelp-overlay-screen;
117 animation-duration: 0.8s;
118 animation-fill-mode: forwards;
119 }
120 @keyframes yelp-overlay-screen {
121 from { opacity: 0.0; }
122 to { opacity: 0.6; }
123 }
124 div.ui-overlay {
125 display: none;
126 position: fixed;
127 text-align: center;
128 top: 30px;
129 left: 50%;
130 transform: translateX(-50%);
131 z-index: 10;
132 }
133 div.ui-overlay-show {
134 animation-name: yelp-overlay-slide;
135 animation-duration: 0.8s;
136 animation-fill-mode: forwards;
137 }
138 @keyframes yelp-overlay-slide {
139 from { transform: translateY(-400px) translateX(-50%); }
140 to { transform: translateY(0) translateX(-50%); }
141 }
142 div.ui-overlay > div.inner {
143 display: inline-block;
144 padding: 8px;
145 background-color: {{$color.bg.gray}};
146 border-radius: 4px;
147 text-align: {{$left}};
148 }
149 div.ui-overlay img, div.ui-overlay video {
150 max-height: 80vh;
151 max-width: 90vw;
152 }
153 div.ui-overlay > div.inner > div.title { margin-top: -4px; }
154 a.ui-overlay-close {
155 display: block;
156 float: {{$right}};
157 width: 30px; height: 30px;
158 font-size: 22px; line-height: 30px;
159 font-weight: bold;
160 margin-top: -28px;
161 margin-{{$right}}: -26px;
162 padding: 1px 2px 3px 2px;
163 text-align: center;
164 border: none;
165 border-radius: 50%;
166 background-color: {{$color.blue}};
167 color: {{$color.bg}};
168 }
169 <!-- FIXME drop this in favor of tiles CSS in core.css -->
170 div.links-tiles {
171 display: flex;
172 flex-flow: row wrap;
173 align-items: stretch;
174 justify-content: stretch;
175 vertical-align: top;
176 clear: both;
177 margin: 0 -10px;
178 }
179 div.links-tile {
180 flex: 1 0 {{$html.grid.size div 3 - 20}}px;
181 vertical-align: top;
182 margin: 0;
183 padding: 10px;
184 }
185 div.links-tiles > div.links-tile { max-width: none; }
186 div.links-tile:empty { padding: 0 10px; height: 0; }
187 div.links-tile > a {
188 display: block;
189 vertical-align: top;
190 padding: 10px;
191 border-radius: 4px;
192 border: none;
193 }
194 div.links-tile > a:hover {
195 background-color: {{$color.bg.blue}};
196 }
197 div.links-tile > a > span.links-tile-img {
198 display: block;
199 text-align: center;
200 }
201 div.links-tile > a > span.links-tile-img > img {
202 width: 100%;
203 border-radius: 3px;
204 }
205 div.links-tile > a > span.links-tile-text > span.title {
206 display: block;
207 font-weight: bold;
208 }
209 div.links-tile > a > span.links-tile-text > * + span.title {
210 margin-top: 0.5em;
211 }
212 div.links-tile > a > span.links-tile-text > span.desc {
213 display: block;
214 margin: 0.2em 0 0 0;
215 color: {{$color.fg.dark}};
216 }
217
218 <!-- links/@style = 'experimental-gnome-splash' -->
219 a.ex-gnome-top {
220 display: block;
221 border: solid 1px {{$color.gray}};
222 border-radius: 4px;
223 transition: box-shadow 0.5s linear;
224 }
225 a.ex-gnome-top:hover {
226 box-shadow: 0px 2px 4px {{$color.gray}};
227 }
228 span.ex-gnome-top-banner {
229 display: block;
230 height: 10px;
231 background: {{$color.green}};
232 overflow: hidden;
233 }
234 span.ex-gnome-top-title {
235 color: {{$color.fg}};
236 display: block;
237 margin: 10px 20px;
238 font-size: 1.2em;
239 }
240 span.ex-gnome-top-desc {
241 color: {{$color.fg.gray}};
242 display: block;
243 margin: 10px 20px;
244 }
245
246 <!-- links/@style = 'experimental-gnome-tiles' -->
247 a.ex-gnome-tile {
248 display: flex;
249 flex-flow: row;
250 align-items: stretch;
251 border: solid 1px {{$color.gray}};
252 border-radius: 4px;
253 transition: box-shadow 0.5s linear;
254 }
255 a.ex-gnome-tile:hover {
256 box-shadow: 0px 2px 4px {{$color.gray}};
257 }
258 span.ex-gnome-tiles-banner {
259 display: block;
260 flex: 0 0 64px;
261 background: {{$color.bg.gray}};
262 overflow: hidden;
263 }
264 span.ex-gnome-tiles-banner img {
265 width: 64px; height: 64px;
266 margin: 10px 0;
267 transform: rotate(-10deg);
268 }
269 span.ex-gnome-tiles-text {
270 display: block;
271 margin: 10px;
272 }
273 span.ex-gnome-tiles-title {
274 color: {{$color.fg}};
275 display: block;
276 margin: 0;
277 font-size: 1.2em;
278 }
279 span.ex-gnome-tiles-desc {
280 color: {{$color.fg.gray}};
281 display: block;
282 margin-top: 10px;
283 }
284
285 <!-- links/@style = 'grid' -->
286 div.links-grid-container {
287 margin-left: -10px;
288 margin-right: -10px;
289 display: flex;
290 flex-flow: row wrap;
291 align-items: stretch;
292 justify-content: flex-start;
293 vertical-align: top;
294 clear: both;
295 }
296 div.links-grid {
297 flex: 1 0 {{$html.grid.size div 3 - 20}}px;
298 padding: 10px;
299 }
300 div.links-grid:empty { padding: 0 10px; height: 0; }
301 div.links-grid-link { font-weight: bold; }
302 div.links-grid > div.desc {
303 margin: 0.2em 0 0 0;
304 color: {{$color.fg.dark}};
305 }
306
307 <!-- FIXME -->
308 <!-- links/@style = 'norwich' -->
309 div.links-norwich {
310 width: 900px;
311 }
312 div.links-norwich-primary {
313 float: left;
314 vertical-align: top;
315 margin: 0; padding: 0;
316 }
317 div.links-norwich-big {
318 vertical-align: top;
319 display: inline-block;
320 background: {{$color.bg.blue}};
321 background: radial-gradient(ellipse 800px 1200px at 100% 20px, {{$color.bg.blue}}, {{$color.blue}});
322 margin: 0 20px 20px 0;
323 }
324 div.links-norwich-big + div.links-norwich-big {
325 background: {{$color.bg.yellow}};
326 background: radial-gradient(ellipse 800px 1200px at 100% 20px, {{$color.bg.yellow}}, {{$color.yellow}});
327 }
328 div.links-norwich-big a {
329 display: block;
330 width: 230px;
331 height: 500px;
332 height: 320px;
333 padding: 9px;
334 font-size: 1.2em;
335 color: {{$color.fg}};
336 border: solid 1px {{$color.blue}};
337 background-repeat: no-repeat;
338 background-position: right -80px bottom -80px;
339 }
340 div.links-norwich-big a:hover {
341 border: solid 1px {{$color.blue}};
342 box-shadow: 2px 2px 2px {{$color.blue}};
343 }
344 div.links-norwich-big a span.title {
345 font-size: 1.2em;
346 font-weight: bold;
347 }
348 div.links-norwich-big a .desc {
349 color: {{$color.fg}};
350 font-weight: normal;
351 }
352 div.links-norwich-secondary {
353 vertical-align: top;
354 margin: 0; padding: 0;
355 }
356 div.links-norwich-small {
357 display: inline-block;
358 vertical-align: top;
359 background: {{$color.bg.gray}};
360 margin: 0 20px 20px 0;
361 }
362 div.links-norwich-small a {
363 display: block;
364 width: 140px;
365 height: 140px;
366 padding: 9px;
367 font-weight: bold;
368 color: {{$color.fg}};
369 border: solid 1px {{$color.gray}};
370 background-repeat: no-repeat;
371 background-position: right 4px bottom 4px;
372 }
373 div.links-norwich-small a:hover {
374 border: solid 1px {{$color.gray}};
375 box-shadow: 2px 2px 2px {{$color.blue}};
376 }
377 @media only screen and (max-width: 900px) {
378 div.links-norwich {
379 width: 720px;
380 }
381 }
382 @media only screen and (max-width: 720px) {
383 div.links-norwich {
384 width: 540px;
385 }
386 }
387 @media only screen and (max-width: 540px) {
388 div.links-norwich {
389 width: 100%;
390 }
391 div.links-norwich-big {
392 width: 100%;
393 margin-right: 0;
394 }
395 div.links-norwich-big a {
396 width: auto;
397 }
398 }
399
400 <!-- links/@type = 'topic' and @style = '2column' -->
401 div.links-divs {
402 margin-left: -10px;
403 margin-right: -10px;
404 }
405 a.linkdiv {
406 display: block;
407 margin: 0;
408 padding: 10px;
409 border-bottom: none;
410 }
411 a.linkdiv:hover {
412 text-decoration: none;
413 background-color: {{$color.bg.blue}};
414 }
415 a.linkdiv span.title {
416 display: block;
417 margin: 0;
418 font-size: 1em;
419 font-weight: bold;
420 color: inherit;
421 }
422 a.linkdiv span.desc {
423 display: block;
424 margin: 0.2em 0 0 0;
425 color: {{$color.fg.dark}};
426 }
427 span.linkdiv-dash { display: none; }
428 div.links-twocolumn {
429 display: flex;
430 flex-flow: row wrap;
431 align-items: stretch;
432 justify-content: flex-start;
433 vertical-align: top;
434 margin-left: -10px;
435 margin-right: -10px;
436 }
437 div.links-twocolumn > div.links-divs {
438 flex: 1 0 {{$html.grid.size div 3}}px;
439 vertical-align: top;
440 margin: 0;
441 }
442
443 <!-- FIXME -->
444 div.comment {
445 padding: 0.5em;
446 border: solid 2px {{$color.red}};
447 background-color: {{$color.bg.red}};
448 }
449 div.comment div.comment {
450 margin: 1em 1em 0 1em;
451 }
452 div.comment div.cite {
453 margin: 0 0 0.5em 0;
454 font-style: italic;
455 }
456
457 <!-- FIXME -->
458 div.tree > div.inner > div.title { margin-bottom: 0.5em; }
459 ul.tree {
460 margin: 0; padding: 0;
461 list-style-type: none;
462 }
463 li.tree { margin: -2px 0 0 0; padding: 0; }
464 li.tree div { margin: 0; padding: 0; }
465 ul.tree ul.tree {
466 margin-{{$left}}: 1.44em;
467 }
468 div.tree-lines ul.tree { margin-left: 0; }
469
470 <!-- FIXME -->
471 span.hi {
472 background-color: {{$color.bg.yellow}};
473 }
474 span.hi.hi-ins {
475 background-color: {{$color.bg.green}};
476 }
477 span.hi.hi-del {
478 background-color: {{$color.bg.red}};
479 text-decoration: line-through;
480 }
481 span.hi.hi-ins ins { text-decoration: none; }
482 span.hi.hi-del del { text-decoration: none; }
483 span.hi.hi-red { background-color: {{$color.bg.red}}; }
484 span.hi.hi-orange { background-color: {{$color.bg.orange}}; }
485 span.hi.hi-yellow { background-color: {{$color.bg.yellow}}; }
486 span.hi.hi-green { background-color: {{$color.bg.green}}; }
487 span.hi.hi-blue { background-color: {{$color.bg.blue}}; }
488 span.hi.hi-purple { background-color: {{$color.bg.purple}}; }
489 span.hi.hi-gray { background-color: {{$color.bg.gray}}; }
490
491 <!-- experimental/gloss -->
492 dt.gloss-term {
493 margin-top: 1.2em;
494 font-weight: bold;
495 color: {{$color.fg.dark}};
496 }
497 dt.gloss-term:first-child, dt.gloss-term + dt.gloss-term { margin-top: 0; }
498 dt.gloss-term + dd { margin-top: 0.2em; }
499 dd.gloss-link {
500 margin: 0 0.2em 0 0.2em;
501 border-{{$left}}: solid 4px {{$color.blue}};
502 padding-{{$left}}: 1em;
503 }
504 dd.gloss-def {
505 margin: 0 0.2em 1em 0.2em;
506 border-{{$left}}: solid 4px {{$color.gray}};
507 padding-{{$left}}: 1em;
508 }
509 a.gloss-term {
510 position: relative;
511 border-bottom: dashed 1px {{$color.blue}};
512 }
513 a.gloss-term:hover {
514 text-decoration: none;
515 border-bottom-style: solid;
516 }
517 span.gloss-desc {
518 display: none;
519 position: absolute;
520 z-index: 100;
521 margin: 0;
522 {{$left}}: 0;
523 top: 1.2em;
524 padding: 0.2em 0.5em 0.2em 0.5em;
525 min-width: 12em;
526 max-width: 24em;
527 overflow: hidden;
528 color: {{$color.fg.dark}};
529 background-color: {{$color.bg.yellow}};
530 border: solid 1px {{$color.yellow}};
531 box-shadow: 2px 2px 4px {{$color.gray}};
532 }
533 a.gloss-term:hover span.gloss-desc, a.gloss-term:focus span.gloss-desc {
534 display: inline-block;
535 animation-name: yelp-gloss-fade;
536 animation-duration: 1s;
537 animation-fill-mode: forwards;
538 }
539 @keyframes yelp-gloss-fade {
540 from { opacity: 0.0; }
541 to { opacity: 1.0; }
542 }
543
544 <!-- conditional processing -->
545 .if-if { display: none; }
546 .if-choose, .if-when, .if-else { margin: 0; padding: 0; }
547 .if-choose > .if-when { display: none; }
548 .if-choose > .if-else { display: block; }
549 .if-if.if__not-target-mobile { display: block; }
550 .if-choose.if__not-target-mobile > .if-when { display: block; }
551 .if-choose.if__not-target-mobile > .if-else { display: none; }
552 @media only screen and (max-width: 480px) {
553 .if-if.if__target-mobile { display: block; }
554 .if-if.if__not-target-mobile { display: none; }
555 .if-choose.if__target-mobile > .if-when { display: block; }
556 .if-choose.if__target-mobile > .if-else { display: none; }
557 .if-choose.if__not-target-mobile > .if-when { display: none; }
558 .if-choose.if__not-target-mobile > .if-else { display: block; }
559 }
560 </tmpl>