]> Shamusworld >> Repos - ardour-manual/blob - source/css/app.css
Slight improvements to the CSS, simplification
[ardour-manual] / source / css / app.css
1 @font-face {
2     font-family: 'junge-regular';
3     src: url('junge-regular-webfont.woff2') format('woff2'),
4          url('junge-regular-webfont.woff') format('woff'),
5          url('junge-regular-webfont.ttf')  format('truetype');
6     font-weight: normal;
7     font-style: normal;
8 }
9
10 body {
11   font-family: 'junge-regular';
12   font-size: 16px;
13   line-height: 2ex;
14 }
15
16 .clear {
17   clear:both;
18 }
19
20 #tree {
21   background-color: #212A30;
22   line-height: 1.8ex;
23   height: 100%;
24   overflow: scroll;
25   position: fixed;
26   top: 0;
27   bottom: 0;
28   left: 0;
29   width: 20em;
30   padding: 1em 1em 2em 1.5em;
31 }
32
33 #tree h1 {
34   font-size: 1.75em;
35   margin-bottom: 1em;
36   font-weight: normal;
37 }
38
39 #tree ul {
40   padding-left: 1em;
41   list-style-type: none;
42 }
43
44 #tree a {
45   display: inline !important;
46   font-size: 0.88em;
47   line-height: 2em;
48   color: #E4E4E4;
49   border-bottom: 1px solid transparent;
50 }
51
52 #tree a:hover {
53   text-decoration: none;
54   border-bottom: 1px solid #aaa;
55 }
56
57 #tree .active > a {
58   display: inline;
59   color: #FF8080;
60 }
61
62 #content {
63   padding: 1em 2em 2ex 21em;
64   margin-left: 0;
65   line-height: 2em;
66 }
67
68 #content h1,
69 #content h2,
70 #content h3,
71 #content h4 {
72   font-weight: normal;
73   padding-bottom: .3ex;
74 }
75
76 #content h1 {
77   font-size: 1.8em;
78   margin: 0 0 2ex 0;
79   padding-bottom: .8ex;
80   border-bottom: 2px solid #ccc;
81 }
82
83 #content h2 {
84   font-size: 1.3em;
85   margin: 2ex 0 1ex 0;
86   border-bottom: 2px solid #ddd;
87 }
88
89 #content h3 {
90   font-size: 1.2em;
91   margin: 1.5ex 0 1ex 0;
92   border-bottom: 1px solid #eee;
93 }
94
95 #content h4 {
96   font-size: 1.1em;
97   margin: 1.5ex 0 .5ex 0;
98   border-bottom: 1px solid #eee;
99 }
100
101 #content table {
102   width:100%;
103   margin: 1em 0;
104   padding: 0;
105   font-weight: normal;
106   text-align: left;
107 }
108
109 #content table tr {
110   border-bottom: 2px solid #eeeeee;
111 }
112
113 #content table tr:nth-child(odd){
114   background-color: white;
115 }
116
117 #content table tr:nth-child(even){
118   background-color: #f5f5f5;
119 }
120
121 #content table tr:hover {
122   background-color: #F2F9FF;
123 }
124
125 #content table td,
126 #content table th {
127   margin: 0;
128   padding: .5em;
129 }
130
131 #content table th {
132   font-weight: bold;
133 }
134
135 #content table th.sub1 {
136   padding-left: 2em;
137 }
138
139 #content table th.sub2 {
140   padding-left: 4em;
141 }
142
143 #content table thead {
144   font-weight:bold;
145 }
146
147 #content table.dl th {
148   /* dl class (definition list) is for 2-columns tables that describe properties:
149   maximmizes the width of the 2nd (description) column */
150   vertical-align: top;
151   min-width: 20%;
152   white-space:nowrap
153 }
154
155 #content table.dl td {
156   vertical-align: top;
157   width: 100%;
158 }
159
160 #content ul,
161 #content ol {
162         overflow: hidden;
163 }
164
165 #content figure {
166   display: table;
167 }
168
169 #content figcaption {
170         display: table-caption;
171         caption-side: bottom;
172         font-style: italic;
173   padding-top: 0.5em;
174   padding-bottom: 1em;
175 }
176
177 #content figcaption.center {
178         text-align: center;
179 }
180
181 #content figcaption.titleover {
182   text-align: center;
183         caption-side: top ;
184 }
185
186 #content figure.right {
187   margin: 0 0 1em 1em;
188   float: right;
189   clear: right;
190 }
191
192 #content figure.left {
193   margin: 0 1em 1em 0;
194   float: left;
195   clear: left;
196 }
197
198 #content figure.center {
199   margin: 1em auto 1em auto;
200   clear: both;
201 }
202
203 kbd {
204   display: inline-block;
205   min-width: 1em;
206   padding: .2em .3em;
207   font: normal .8em/1 sans-serif;
208   text-align: center;
209   text-decoration: none;
210   border-radius: .3em;
211   background: rgb(250, 250, 250);
212   background: linear-gradient(to top, rgb(210, 210, 210), rgb(255, 255, 255));
213   color:  rgb(50, 50, 50);
214   text-shadow: 0 0 2px rgb(255, 255, 255);
215   box-shadow: inset 0 0 1px rgb(255, 255, 255), inset 0 0 .4em rgb(200, 200, 200), 0 .1em 0 rgb(130, 130, 130), 0 .11em 0 rgba(0, 0, 0, .4), 0 .1em .11em rgba(0, 0, 0, .9);
216   white-space:nowrap;
217   text-transform:capitalize;
218 }
219
220 kbd.def {
221   font-weight:bolder;
222         margin-right:.2em;
223 }
224
225 kbd.input,
226 kbd.cmd,
227 kbd.osc {
228   font-family:mono;
229   border-width:0;
230   text-transform:none;
231 }
232
233 kbd.input {
234   background:none;
235   border-radius: 0;
236 }
237
238 kbd.cmd {
239   display:block;
240   width:100%;
241   margin-bottom:1ex;
242   text-transform:none;
243   background: rgb(220, 220, 220);
244   text-shadow: none;
245   box-shadow: none;
246   text-align:left;
247 }
248
249 kbd.cmd.lin:before {
250   content: 'user@linux:~ ';
251   color:#999999;
252 }
253
254 kbd.cmd.mac:before {
255   content: 'MacBook:~/Desktop User\$ ';
256   color:#999999;
257 }
258
259 kbd.cmd.win:before {
260   content: 'C:\\Users\\myAccount> ';
261   color:#999999;
262 }
263
264 kbd.optoff,
265 kbd.option {
266   border:none;
267   background:none;
268 }
269
270 kbd.optoff:before {
271   content:url('/images/checkbox-unchecked.png');
272   margin: 0 1em 0 0;
273   vertical-align:middle;
274 }
275
276 kbd.option:before {
277   content:url('/images/checkbox-checked.png');
278   margin: 0 1em 0 0;
279   vertical-align:middle;
280 }
281
282 kbd.menu {
283   border:none;
284   background:none;
285   font-weight:bold;
286   font-stretch:extra-condensed;
287   white-space:normal;
288 }
289
290 kbd.osc {
291   border:none;
292   background: rgb(208, 208, 243);
293   font-stretch:extra-condensed;
294   white-space: nowrap;
295   text-align:left;
296 }
297
298 kbd.fader,
299 kbd.knob,
300 kbd.button {
301   background: rgb(174, 174, 217);
302   background: linear-gradient(to top, rgb(174, 174, 217), rgb(221, 221, 255));
303   color:#000044;
304 }
305
306 kbd.fader {
307   border-width: 1px 1px 9px 9px;
308 }
309
310 kbd.knob {
311   border-radius:12px;
312   border-width: 1px 1px 9px 9px;
313 }
314
315 kbd.button {
316   border-radius:8px;
317   border-width: 1px 1px 3px 3px;
318 }
319
320 kbd.mouse {
321   border-radius:10px;
322 }
323
324 samp {
325   font-family:mono;
326   color:#666666;
327   background-color:#EBEBEB;
328   margin-left: .5em;
329   margin-right: .5em;
330 }
331
332 #content dfn {
333   font-weight: bold;
334   font-style: normal;
335 }
336
337 #content img.mini {
338   width: 200px;
339 }
340
341 #content img.mini:hover {
342   width: 100%;
343 }
344
345 #content p.center {
346         text-align:center;
347 }
348
349 #content .note,
350 #content .warning,
351 #content .fixme {
352   min-height: 1.5ex;
353   padding: 1em;
354   margin-bottom: 1em;
355   border-style: solid;
356   border-width: 1px 1px 1px 8px;
357 }
358
359 #content code {
360   font-size: .9em;
361   color: #555;
362 }
363
364 #content .note {
365   border-color: #e3e3e3;
366   background-color: #f5f5f5;
367 }
368
369 #content .warning {
370   border-color: #995555;
371   background-color: #ffeeee;
372 }
373
374 #content .fixme {
375   border-color: #999944;
376   background-color: #f0f0e0;
377   font-weight:bold;
378 }
379
380 .fixme:before {
381   content:'FIXME: ';
382   font-style: italic;
383   font-size:2em;
384 }
385
386 /* Keyboard modifiers */
387 .mod1:before {        content: "Ctrl ";}
388 .mod2:before {        content: "Alt ";}
389 .mod3:before {        content: "Shift ";}
390 .mod4:before {        content: "Win ";}
391 .mod12:before {       content: "Ctrl Alt ";}
392 .mod13:before {       content: "Ctrl Shift ";}
393 .mod14:before {       content: "Ctrl Win ";}
394 .mod23:before {       content: "Alt Shift ";}
395 .kp:before {          content: "Keypad ";}
396 /* Variants *without* space after them (yes, these are needed!) */
397 .mod1n:before {       content: "Ctrl";}
398 .mod2n:before {       content: "Alt";}
399 .mod3n:before {       content: "Shift";}
400 .mod4n:before {       content: "Win";}
401 .mod12n:before {      content: "Ctrl Alt";}
402 .mod13n:before {      content: "Ctrl Shift";}
403 .mod14n:before {      content: "Ctrl Win";}
404 .mod23n:before {      content: "Alt Shift";}
405 /* Automagic translation for Mac based display */
406 .mac .mod1:before {   content: "Cmd ";}
407 .mac .mod2:before {   content: "Ctrl ";}
408 .mac .mod3:before {   content: "Shift ";}
409 .mac .mod4:before {   content: "Opt ";}
410 .mac .mod12:before {  content: "Cmd Ctrl ";}
411 .mac .mod13:before {  content: "Cmd Shift ";}
412 .mac .mod14:before {  content: "Cmd Opt ";}
413 .mac .mod23:before {  content: "Ctrl Shift ";}
414 /* No space variants (Mac based) */
415 .mac .mod1n:before {  content: "Cmd";}
416 .mac .mod2n:before {  content: "Ctrl";}
417 .mac .mod3n:before {  content: "Shift";}
418 .mac .mod4n:before {  content: "Opt";}
419 .mac .mod12n:before { content: "Cmd Ctrl";}
420 .mac .mod13n:before { content: "Cmd Shift";}
421 .mac .mod14n:before { content: "Cmd Opt";}
422 .mac .mod23n:before { content: "Ctrl Shift";}
423
424 @media (max-width: 800px) {
425   #tree {
426     position: relative;
427     height: 250px;
428     width: 100%;
429     margin-top: 20px;
430   }
431   #content {
432     padding-left: 20px;
433     margin-top: 0px;
434   }
435 }
436
437 /* for the TOC */
438 #content p.chapter,
439 #content p.subchapter,
440 #content p.section,
441 #content p.subsection {
442   line-height:1em;
443 }
444 #content p.chapter { padding-top: 1em; padding-left: 1em; padding-bottom:1em; }
445 #content p.subchapter { padding-left: 4em; }
446 #content p.section { padding-left: 6em; }
447 #content p.subsection { padding-left: 8em; }
448
449 /* for images sliced in divs, as in http://manual.ardour.org/ardours-interface/about/ */
450 .container { position: relative; border: none; }
451 .hoverimg { position: absolute; border: none; }
452 .hoverimg:hover{ z-index:100; box-shadow: 0 0 .2em .2em lightgreen; }