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