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