License is not a copyright. License info ID (#472)
[rnaseq-cwl-training.git] / assets / css / lesson.scss
1 ---
2 ---
3
4 //----------------------------------------
5 // Colors.
6 //----------------------------------------
7
8 // branding
9 $color-brand:       #2b3990 !default;
10
11 // code boxes
12 $color-error:       #bd2c00 !default;
13 $color-warning:     #cda01d !default;
14 $color-output:      #303030 !default;
15 $color-source:      #360084 !default;
16
17 // blockquotes
18 $color-callout:     #f4fd9c !default;
19 $color-challenge:   #eec275 !default;
20 $color-checklist:   #dfd2a0 !default;
21 $color-discussion:  #eec275 !default;
22 $color-keypoints:   #7ae78e !default;
23 $color-objectives:  #daee84 !default;
24 $color-prereq:      #9cd6dc !default;
25 $color-solution:    #ded4b9 !default;
26 $color-testimonial: #fc8dc1 !default;
27
28 //----------------------------------------
29 // Specialized code blocks.
30 //----------------------------------------
31
32 @mixin cdSetup($color) {
33     color: $color;
34     border: solid 1px $color;
35     border-left: solid 5px $color;
36     margin: 15px 5px 10px 0;
37     border-radius: 4px 0 0 4px;
38 }
39
40 .error   { @include cdSetup($color-error); }
41 .warning { @include cdSetup($color-warning); }
42 .output  { @include cdSetup($color-output); }
43 .source  { @include cdSetup($color-source); }
44
45 .bash, .language-bash     { @include cdSetup($color-source); }
46 .make, .language-make     { @include cdSetup($color-source); }
47 .matlab, .language-matlab { @include cdSetup($color-source); }
48 .python, .language-python { @include cdSetup($color-source); }
49 .r, .language-r           { @include cdSetup($color-source); }
50 .sql, .language-sql       { @include cdSetup($color-source); }
51
52 .error::before,
53 .warning:before,
54 .output::before,
55 .source::before,
56 .bash::before, .language-bash::before,
57 .make::before, .language-make::before,
58 .matlab::before, .language-matlab::before,
59 .python::before, .language-python::before,
60 .r::before, .language-r::before,
61 .sql::before, .language-sql::before {
62     background-color: #f2eff6;
63     display: block;
64     font-weight: bold;
65     padding: 5px 10px;
66 }
67
68 .error::before  { background-color: #ffebe6; content: "Error"; }
69 .warning:before { background-color: #f8f4e8; content:" Warning"; }
70 .output::before { background-color: #efefef; content: "Output"; }
71 .source::before { content: "Code"; }
72 .bash::before, .language-bash::before { content: "Bash"; }
73 .make::before, .language-make::before { content: "Make"; }
74 .matlab::before, .language-matlab::before { content: "Matlab"; }
75 .python::before, .language-python::before { content: "Python"; }
76 .r::before, .language-r::before { content: "R"; }
77 .sql::before, .language-sql::before { content: "SQL"; }
78
79 // Tab panels are used on Setup pages to show instructions for different Operating Systems
80 .tab-pane {
81   border: solid 1px #ddd; // #ddd == @nav-tabs-active-link-hover-border-color
82   border-top: none;
83   padding: 20px 20px 10px 20px;
84   border-radius: 0 0 4px 4px; // 4px == @border-radius-base
85 }
86
87 // Stripe above tab panels where OS tabs are shown
88 ul.nav.nav-tabs {
89   background: #E1E1E1;
90   border-radius: 4px 4px 0 0;  // 4px == @border-radius-base
91 }
92
93 // This color provides better contrast ratio on most backgrounds used on Carpentries websites
94 // 9.24 on FFFFFF: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=FFFFFF&api (body)
95 // 8.78 on F9F9F9: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=F9F9F9&api (tables)
96 // 7.07 on E1E1E1: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=E1E1E1&api (tab panels)
97 a { color: #204A6F; }
98
99 //----------------------------------------
100 // Specialized blockquote environments for learning objectives, callouts, etc.
101 //----------------------------------------
102
103 $codeblock-padding: 5px !default;
104
105 @mixin bkSetup($color, $glyph) {
106
107   $gradientcolor1: $color;
108   $gradientcolor2: scale-color($color, $lightness: 10%);
109
110   padding: 0 0 $codeblock-padding $codeblock-padding;
111   border: 1px solid;
112   border-color: $color;
113   border-radius: 4px;
114
115   margin: 15px 5px 10px 0;
116
117   h2 {
118     padding-top: $codeblock-padding;
119     padding-bottom: $codeblock-padding;
120     font-size: 20px;
121     background: linear-gradient(to bottom, $gradientcolor1, $gradientcolor2);
122     border-color: $color;
123     margin-top: 0px;
124     margin-left: -$codeblock-padding; // to move back to the left margin of the enclosing blockquote
125   }
126   h2:before {
127     font-family: 'Glyphicons Halflings';
128     content: $glyph;
129     float: left;
130     padding-left: $codeblock-padding;
131     padding-right: $codeblock-padding;
132     display: inline-block;
133     -webkit-font-smoothing: antialiased;
134   }
135
136 }
137
138 .callout{ @include bkSetup($color-callout, "\e146"); }
139 .challenge{ @include bkSetup($color-challenge, "\270f"); }
140 .checklist{ @include bkSetup($color-checklist, "\e067"); }
141 .discussion{ @include bkSetup($color-discussion, "\e123"); }
142 .keypoints{ @include bkSetup($color-keypoints, "\e101"); }
143 .objectives{ @include bkSetup($color-objectives, "\e085"); }
144 .prereq{ @include bkSetup($color-prereq, "\e124"); }
145 .solution{ @include bkSetup($color-solution, "\e105"); }
146 .testimonial{ @include bkSetup($color-testimonial, "\e143"); }
147
148 .callout h3,
149 .challenge h3,
150 .checklist h3,
151 .discussion h3,
152 .keypoints h3,
153 .objectives h3,
154 .prereq h3,
155 .solution h3,
156 .testimonial h3 {
157 font-size: 18px;
158 }
159
160 .challenge    { background-color: #eec27520; }
161 .callout      { background-color: #f4fd9c20; }
162 .challenge    { background-color: #eec27520; }
163 .checklist    { background-color: #dfd2a020; }
164 .discussion   { background-color: #eec27520; }
165 .keypoints    { background-color: #7ae78e20; }
166 .objectives   { background-color: #daee8420; }
167 .prereq       { background-color: #9cd6dc20; }
168 .solution     { background-color: #ded4b94d; }
169 .testimonial  { background-color: #fc8dc120; }
170
171 blockquote p {
172     margin: 5px;
173 }
174 blockquote :not(h2) + p {
175     padding-top: 1em;
176 }
177
178 //----------------------------------------
179 // Override Bootstrap settings.
180 //----------------------------------------
181
182 blockquote { font-size: inherit; }
183
184 code {
185   white-space: nowrap;
186   padding: 2px 5px;
187   color: #006cad;
188   background-color: #e7e7e7;
189 }
190
191 samp { hyphens: none; }
192
193 dt { margin-top: 20px; }
194 dd { margin-left: 2em; }
195
196 article img {
197     display: block;
198     margin: 20px auto;
199     max-width: 100%;
200 }
201
202 article h2 {
203   margin: 48px 0 16px;
204   border-bottom: solid 1px #eaecef;
205   padding-bottom: 0.3em;
206   line-height: 1.25;
207 }
208
209 article h3 { margin: 40px 0 16px; }
210
211 article pre {
212     margin: 0;
213     border: 0;
214 }
215
216 //----------------------------------------
217 // Miscellaneous.
218 //----------------------------------------
219
220 .figures h2 { margin-top: 100px; }
221
222 .maintitle {
223   text-align: center;
224 }
225
226 .footertext {
227   text-align: center;
228 }
229
230 footer .license,
231 footer .help-links
232 {
233     font-size: inherit;
234     margin-top: 10px;
235     margin-bottom: 10px;
236     font-weight: 500;
237     line-height: 1.1;
238 }
239
240 img.navbar-logo {
241   height: 40px; // synchronize with height of navbar
242   padding-top: 5px;
243   padding-right: 10px;
244 }
245
246 div.branding {
247   color: $color-brand;
248 }
249
250 ul,
251 ol {
252   padding-left: 2em;
253 }
254
255 span.fold-unfold {
256   margin-left: 1em;
257   opacity: 0.5;
258 }
259
260
261 //----------------------------------------
262 // Life cycle box
263 //----------------------------------------
264
265 div.life-cycle {
266     position: -webkit-sticky; /* Safari */
267     position: sticky;
268     top: 0;
269     z-index: 100;
270     font-size: 1.2em;
271     text-align: center;
272     margin-bottom: -1px;
273     border-radius: 0;
274 }
275
276 .pre-alpha {
277     color: #a94442;
278     background: #f2dede;
279 }
280
281 .alpha {
282     color: #8a6d3b;
283     background: #fcf8e3;
284 }
285
286 .beta {
287     color: #31708f;
288     background: #d9edf7;
289 }
290
291
292 //----------------------------------------
293 // keyboard key style, from StackExchange.
294 //----------------------------------------
295
296 kbd {
297     display: inline-block;
298     margin: 0 .1em;
299     padding: .1em .6em;
300     font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
301     font-size: 11px;
302     line-height: 1.4;
303     color: #242729;
304     text-shadow: 0 1px 0 #FFF;
305     background-color: #e1e3e5;
306     border: 1px solid #adb3b9;
307     border-radius: 3px;
308     box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;
309     white-space: nowrap;
310     font-style: normal;
311 }