added some challenge 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 a, h2 a, h3 a, h4 a, h5 a, h6 a {
65     color: inherit;
66 }
67
68 /* Chapter titles. */
69 div.chapter h2 {
70     text-align: center;
71     font-style: italic;
72 }
73
74 /* Objectives and key points */
75 .objectives, .keypoints {
76     background-color: azure;
77     border: 5px solid azure;
78     margin: 1em 0;
79     padding: 0em 1em;
80 }
81
82 /* Challenges */
83 .challenge {
84     background-color: #CCFFCC;
85     border: 5px solid #CCFFCC;
86     margin: 1em 0;
87     padding: 0em 1em;
88 }
89
90 /* Things to fix. */
91 .fixme {
92     text-decoration: underline;
93     color: darkred;
94     background-color: lightgray;
95 }
96
97 /* Putting shadows around things. */
98 .shadow {
99     -moz-box-shadow: 0 0 30px 5px #999;
100     -webkit-box-shadow: 0 0 30px 5px #999;
101     box-shadow: 0 0 30px 5px #999;
102 }
103
104 /* Things to understand (lead-in to sections in book). */
105 .understand {
106     background-color: lightyellow;
107 }
108
109 /* Block quotations. */
110 blockquote {
111     margin: 1em;
112     padding: .7em;
113     width: 90%;
114 }
115
116 /* Citation for testimonial quote. */
117 blockquote.testimonial cite {
118     font-style: italic;
119 }
120
121 /* Callout Box */
122 .callout {
123     background-color: #EEE;
124     border: 5px solid #EEE;
125     margin: 1em 0;
126     padding: 0em 1em;
127 }
128
129 /* Tables used for displaying choices in challenges. */
130 table.choices tr td {
131     vertical-align : top;
132 }
133
134 /* Database tables do _not_ have double borders */
135 table.outlined {
136     border-collapse: collapse;
137 }
138
139 /* Code sample */
140 pre.sourceCode{
141     color: ForestGreen;
142 }
143 pre.output {
144     color: MediumBlue;
145 }
146 pre.error {
147     color: Red;
148 }
149
150 /* Printing */
151 @media print {
152   h1 {
153     font-size: 16pt;
154     line-height: 18pt;
155   }
156
157   h2,h3,h4,h5,h6 {
158     font-size: 12pt;
159     line-height: 13pt;
160   }
161
162   p,ul,ol,li,pre,code {
163     font-size: 8pt;
164     line-height: 9pt;
165   }
166
167   code {
168     padding: 0px;
169     border: 0px;
170     background: none;
171   }
172
173   #github-ribbon {
174     display: none;
175   }
176
177   .banner {
178     display: none;
179   }
180
181   .footer {
182     display: none;
183   }
184 }
185
186 /*----------------------------------------*/
187 /* Override Bootstrap CSS                 */
188 /*----------------------------------------*/
189
190 blockquote p {
191     font-size: inherit;
192     font-weight: inherit;
193     line-height: inherit;
194 }
195
196 blockquote h2{
197    margin-top: 0px;
198 }
199
200 /* readability: darken the alert colour for contrast with background */
201
202 .alert {
203     color: rgb(0, 0, 0);
204 }
205 /* Container for page contents. */
206
207 .container {
208     background-color: white;
209 }
210 .hero-unit {
211     padding: 20px;
212 }
213 .navbar .container {
214     background-color: inherit;
215 }
216 .navbar-inner {
217     min-height: 40px;
218     padding-right: 20px;
219     padding-left: 20px;
220     background-color: #F4F4F4;
221     background-image: none;
222     border: 1px solid #d4d4d4;
223     -webkit-border-radius: 0;
224     -moz-border-radius: 0;
225     border-radius: 0;
226 }
227 code {
228     color: #333333;
229 }
230 .navbar-inverse .navbar-inner {
231     background-color: #20267D;
232     background-image: none;
233     border-color: #20267D;
234 }
235 .navbar-inverse .nav .active > a,
236 .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus {
237     color: #ffffff;
238     background-color: #20267D;
239 }
240 .navbar-inverse .nav li.dropdown.open > .dropdown-toggle,
241 .navbar-inverse .nav li.dropdown.active > .dropdown-toggle,
242 .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle {
243     color: #ffffff;
244     background-color: #20267D;
245 }
246 .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret {
247     border-top-color: #999999;
248     border-bottom-color: #999999;
249 }
250 .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret {
251     border-top-color: #ffffff;
252     border-bottom-color: #ffffff;
253 }
254
255 /* GitHub Ribbon */
256 #github-ribbon a {
257     background: #000;
258     color: #fff;
259     text-decoration: none;
260     font-family: arial, sans-serif;
261     text-align: center;
262     font-weight: bold;
263     padding: 5px 40%;
264     font-size: 0.8rem;
265     line-height: 1.6rem;
266     position: relative;
267     transition: 0.5s;
268     width: 100%;
269     margin: 0 auto;
270     white-space: nowrap;
271     z-index: 10;
272 }
273 #github-ribbon a:hover {
274     background: #600;
275     color: #fff;
276 }
277 #github-ribbon a::before, #github-ribbon a::after {
278     content: "";
279     width: 100%;
280     display: block;
281     position: absolute;
282     top: 1px;
283     left: 0;
284     height: 1px;
285     background: #fff;
286 }
287 #github-ribbon a::after {
288     bottom: 1px;
289     top: auto;
290 }
291
292 /* GitHub ribbon breaking point */
293 @media screen and (min-width: 600px) {
294     .navbar .btn-navbar {
295         margin-right: 150px;
296     }
297     #github-ribbon {
298         position: absolute;
299         display: block;
300         top: 0;
301         right: 0;
302         width: 150px;
303         overflow: hidden;
304         height: 150px;
305     }
306     #github-ribbon a {
307         width: 200px;
308         position: absolute;
309         padding: 5px 40px;
310         top: 40px;
311         right: -80px;
312         transform: rotate(45deg);
313         -webkit-transform: rotate(45deg);
314         box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.8);
315     }
316 }
317 @media (max-width: 599px) {
318     .header h1 {
319         font-size: 20pt;
320     }
321     #header-text {
322         font-size: 16pt;
323     }
324     #github-ribbon {
325         width: 100%;
326     }
327     #github-ribbon a {
328         display: block;
329         padding: 0px 0px;
330         margin: 0px 0px;
331     }
332 }