Small improvements to CSS
[rnaseq-cwl-training.git] / css / swc.css
1 /* Main body of pages. */
2 body {
3     background: #BEC3C6;
4     margin: 20px 0;
5     font-family: "Open Sans", Helvetica, Arial, sans-serif;
6     color: rgb(03, 03, 03);
7 }
8
9 /* Styling for editorial stylesheet */
10 body.stylesheet {
11     background: #ffffff;
12     width: 60em;
13     margin: 20 auto;
14 }
15
16 /* Top banner of every page. */
17 div.banner {
18     background-color: #FFFFFF;
19     width: 100%;
20     height: 90px;
21     margin: 0px;
22     padding: 0;
23     border-bottom: 1px solid #A6A6A6;
24 }
25
26 .swc-blue-bg {
27    background-color: #20267D;
28 }
29
30 /* Padding around image in top banner. */
31 div.banner a img {
32     padding: 20px 25px;
33 }
34
35 @media (max-width: 700px) {
36     div.banner a img {
37         padding: 20px 0px;
38     }
39 }
40
41 /* Footer of every page. */
42 div.footer {
43     clear: both;
44     background: url("/img/main_shadow.png") repeat-x scroll center top #FFFFFF;
45     padding: 4px 10px 7px 10px;
46     border-top: 1px solid #A6A6A6;
47     text-align: right;
48 }
49
50 /* Headings */
51 h1, h2, h3, h4, h5, h6  {
52     color: rgb(03,03,03);
53 }
54
55 h1.title {
56     margin:40px 0px;
57 }
58
59 h1, h2 {
60     margin-top: 40px;
61     margin-bottom: 10px;
62 }
63
64 h1:first-child, h2:first-child {
65     margin-top: 10px;
66 }
67
68 h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
69     color: inherit;
70 }
71
72 /* Chapter titles. */
73 div.chapter h2 {
74     text-align: center;
75     font-style: italic;
76 }
77
78 /* Objectives, Callout Box and Challenges */
79 .objectives, .keypoints, .callout, .challenge {
80     margin: 1em 0;
81     padding: 0em 1em;
82 }
83
84 .objectives, .keypoints {
85     background-color: azure;
86     border: 5px solid azure;
87 }
88
89 .callout {
90     background-color: #EEE;
91     border: 5px solid #EEE;
92 }
93
94 .challenge {
95     background-color: #CCFFCC;
96     border: 5px solid #CCFFCC;
97 }
98
99 /* Things to fix. */
100 .fixme {
101     text-decoration: underline;
102     color: darkred;
103     background-color: lightgray;
104 }
105
106 /* Putting shadows around things. */
107 .shadow {
108     -moz-box-shadow: 0 0 30px 5px #999;
109     -webkit-box-shadow: 0 0 30px 5px #999;
110     box-shadow: 0 0 30px 5px #999;
111 }
112
113 /* Things to understand (lead-in to sections in book). */
114 .understand {
115     background-color: lightyellow;
116 }
117
118 /* Block quotations. */
119 blockquote {
120     margin: 1em;
121     padding: .7em;
122     width: 90%;
123 }
124
125 /* Citation for testimonial quote. */
126 blockquote.testimonial cite {
127     font-style: italic;
128 }
129
130 /* Tables used for displaying choices in challenges. */
131 table.choices tr td {
132     vertical-align : top;
133 }
134
135 /* Database tables do _not_ have double borders */
136 table.outlined {
137     border-collapse: collapse;
138 }
139
140 /* Code sample */
141 pre.sourceCode,
142 pre.input {
143     color: ForestGreen;
144 }
145 pre.output {
146     color: MediumBlue;
147 }
148 pre.error {
149     color: Red;
150 }
151
152 /* Printing */
153 @media print {
154   h1 {
155     font-size: 16pt;
156     line-height: 18pt;
157   }
158
159   h2,h3,h4,h5,h6 {
160     font-size: 12pt;
161     line-height: 13pt;
162   }
163
164   /* Objectives, Callout Box and Challenges */
165   .objectives, .keypoints {
166       background-color: unset;
167       border: 5px solid;
168   }
169
170   .callout {
171       background-color: unset;
172       border: 5px solid;
173   }
174
175   .challenge {
176       background-color: unset;
177       border: 5px solid;
178   }
179
180   p,ul,ol,li,pre,code {
181     font-size: 8pt;
182     line-height: 9pt;
183   }
184
185   code {
186     padding: 0px;
187     border: 0px;
188     background: unset;
189   }
190
191   pre.sourceCode::before,
192   pre.input::before. {
193       content: "Input:";
194   }
195
196   pre.output::before {
197       content: "Output:";
198   }
199
200   pre.error::before {
201       content: "Error:";
202   }
203
204   pre.sourceCode code,
205   pre.input code,
206   pre.output code,
207   pre.error code {
208       display: block;
209       margin-top: 1em;
210       margin-left: 2em;
211   }
212
213   #github-ribbon {
214     display: none;
215   }
216
217   .banner {
218     display: none;
219   }
220
221   .footer {
222     display: none;
223   }
224 }
225
226 /*----------------------------------------*/
227 /* Override Bootstrap CSS                 */
228 /*----------------------------------------*/
229
230 blockquote p {
231     font-size: inherit;
232     font-weight: inherit;
233     line-height: inherit;
234 }
235
236 blockquote h2{
237    margin-top: 0px;
238 }
239
240 /* readability: darken the alert colour for contrast with background */
241
242 .alert {
243     color: rgb(0, 0, 0);
244 }
245 /* Container for page contents. */
246
247 .container {
248     background-color: white;
249 }
250 .hero-unit {
251     padding: 20px;
252 }
253 .navbar .container {
254     background-color: inherit;
255 }
256 .navbar-inner {
257     min-height: 40px;
258     padding-right: 20px;
259     padding-left: 20px;
260     background-color: #F4F4F4;
261     background-image: none;
262     border: 1px solid #d4d4d4;
263     -webkit-border-radius: 0;
264     -moz-border-radius: 0;
265     border-radius: 0;
266 }
267 code {
268     color: #333333;
269 }
270 .navbar-inverse .navbar-inner {
271     background-color: #20267D;
272     background-image: none;
273     border-color: #20267D;
274 }
275 .navbar-inverse .nav .active > a,
276 .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus {
277     color: #ffffff;
278     background-color: #20267D;
279 }
280 .navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
281 .navbar-inverse .nav li.dropdown.active > .dropdown-toggle,
282 .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {
283     color: #ffffff;
284     background-color: #20267D;
285 }
286 .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret {
287     border-top-color: #999999;
288     border-bottom-color: #999999;
289 }
290 .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret {
291     border-top-color: #ffffff;
292     border-bottom-color: #ffffff;
293 }
294
295 /* GitHub Ribbon */
296 #github-ribbon a {
297     background: #000;
298     color: #fff;
299     text-decoration: none;
300     font-family: arial, sans-serif;
301     text-align: center;
302     font-weight: bold;
303     padding: 5px 40%;
304     font-size: 0.8rem;
305     line-height: 1.6rem;
306     position: relative;
307     transition: 0.5s;
308     width: 100%;
309     margin: 0 auto;
310     white-space: nowrap;
311     z-index: 10;
312 }
313 #github-ribbon a:hover {
314     background: #600;
315     color: #fff;
316 }
317 #github-ribbon a::before, #github-ribbon a::after {
318     content: "";
319     width: 100%;
320     display: block;
321     position: absolute;
322     top: 1px;
323     left: 0;
324     height: 1px;
325     background: #fff;
326 }
327 #github-ribbon a::after {
328     bottom: 1px;
329     top: auto;
330 }
331
332 /* GitHub ribbon breaking point */
333 @media screen and (min-width: 600px) {
334     .navbar .btn-navbar {
335         margin-right: 150px;
336     }
337     #github-ribbon {
338         position: absolute;
339         display: block;
340         top: 0;
341         right: 0;
342         width: 150px;
343         overflow: hidden;
344         height: 150px;
345     }
346     #github-ribbon a {
347         width: 200px;
348         position: absolute;
349         padding: 5px 40px;
350         top: 40px;
351         right: -80px;
352         transform: rotate(45deg);
353         -webkit-transform: rotate(45deg);
354         box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
355     }
356 }
357 @media (max-width: 599px) {
358     .header h1 {
359         font-size: 20pt;
360     }
361     #header-text {
362         font-size: 16pt;
363     }
364     #github-ribbon {
365         width: 100%;
366     }
367     #github-ribbon a {
368         display: block;
369         padding: 0px 0px;
370         margin: 0px 0px;
371     }
372 }