upgrade to bootstrap 3.4.1
[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-output:      #303030 !default;
14 $color-source:      #6e5494 !default;
15
16 // blockquotes
17 $color-callout:     #f4fd9c !default;
18 $color-challenge:   #eec275 !default;
19 $color-checklist:   #dfd2a0 !default;
20 $color-discussion:  #eec275 !default;
21 $color-keypoints:   #7ae78e !default;
22 $color-objectives:  #daee84 !default;
23 $color-prereq:      #9cd6dc !default;
24 $color-solution:    #ded4b9 !default;
25 $color-testimonial: #fc8dc1 !default;
26
27 //----------------------------------------
28 // Specialized code blocks.
29 //----------------------------------------
30
31 @mixin cdSetup($color) {
32     color: $color;
33     border: solid 0.5px $color;
34     border-left: solid 5px $color;
35     margin: 15px 5px 10px 0;
36     border-radius: 4px 0 0 4px;
37 }
38
39 .error  { @include cdSetup($color-error); }
40 .output { @include cdSetup($color-output); }
41 .source { @include cdSetup($color-source); }
42
43 .bash, .language-bash     { @include cdSetup($color-source); }
44 .make, .language-make     { @include cdSetup($color-source); }
45 .matlab, .language-matlab { @include cdSetup($color-source); }
46 .python, .language-python { @include cdSetup($color-source); }
47 .r, .language-r           { @include cdSetup($color-source); }
48 .sql, .language-sql       { @include cdSetup($color-source); }
49
50 .error::before,
51 .output::before,
52 .source::before,
53 .bash::before, .language-bash::before,
54 .make::before, .language-make::before,
55 .matlab::before, .language-matlab::before,
56 .python::before, .language-python::before,
57 .r::before, .language-r::before,
58 .sql::before, .language-sql::before {
59   background-color: #f2eff6;
60   display: block;
61   font-weight: bold;
62   padding: 5px 10px;
63 }
64
65 .error::before  { background-color: #ffebe6; content: "Error"; }
66 .output::before { background-color: #efefef; content: "Output"; }
67 .source::before { content: "Code"; }
68 .bash::before, .language-bash::before { content: "Bash"; }
69 .make::before, .language-make::before { content: "Make"; }
70 .matlab::before, .language-matlab::before { content: "Matlab"; }
71 .python::before, .language-python::before { content: "Python"; }
72 .r::before, .language-r::before { content: "R"; }
73 .sql::before, .language-sql::before { content: "SQL"; }
74
75
76 //----------------------------------------
77 // Specialized blockquote environments for learning objectives, callouts, etc.
78 //----------------------------------------
79
80 $codeblock-padding: 5px !default;
81
82 @mixin bkSetup($color, $glyph) {
83
84   $gradientcolor1: $color;
85   $gradientcolor2: scale-color($color, $lightness: 10%);
86
87   padding: 0 0 $codeblock-padding $codeblock-padding;
88   border: 1px solid;
89   border-color: $color;
90   border-radius: 4px;
91
92   margin: 15px 5px 10px 0;
93
94   h2 {
95     padding-top: $codeblock-padding;
96     padding-bottom: $codeblock-padding;
97     font-size: 20px;
98     background: linear-gradient(to bottom, $gradientcolor1, $gradientcolor2);
99     border-color: $color;
100     margin-top: 0px;
101     margin-left: -$codeblock-padding; // to move back to the left margin of the enclosing blockquote
102   }
103   h2:before {
104     font-family: 'Glyphicons Halflings';
105     content: $glyph;
106     float: left;
107     padding-left: $codeblock-padding;
108     padding-right: $codeblock-padding;
109     display: inline-block;
110     -webkit-font-smoothing: antialiased;
111   }
112
113 }
114
115 .callout{ @include bkSetup($color-callout, "\e146"); }
116 .challenge{ @include bkSetup($color-challenge, "\270f"); }
117 .checklist{ @include bkSetup($color-checklist, "\e067"); }
118 .discussion{ @include bkSetup($color-discussion, "\e123"); }
119 .keypoints{ @include bkSetup($color-keypoints, "\e101"); }
120 .objectives{ @include bkSetup($color-objectives, "\e085"); }
121 .prereq{ @include bkSetup($color-prereq, "\e124"); }
122 .solution{ @include bkSetup($color-solution, "\e105"); }
123 .testimonial{ @include bkSetup($color-testimonial, "\e143"); }
124
125 .callout h3,
126 .challenge h3,
127 .checklist h3,
128 .discussion h3,
129 .keypoints h3,
130 .objectives h3,
131 .prereq h3,
132 .solution h3,
133 .testimonial h3 {
134 font-size: 18px;
135 }
136
137 .challenge    { background-color: #eec27520; }
138 .callout      { background-color: #f4fd9c20; }
139 .challenge    { background-color: #eec27520; }
140 .checklist    { background-color: #dfd2a020; }
141 .discussion   { background-color: #eec27520; }
142 .keypoints    { background-color: #7ae78e20; }
143 .objectives   { background-color: #daee8420; }
144 .prereq       { background-color: #9cd6dc20; }
145 .solution     { background-color: #ded4b94d; }
146 .testimonial  { background-color: #fc8dc120; }
147
148 blockquote p {
149     margin: 5px;
150 }
151
152 //----------------------------------------
153 // Override Bootstrap settings.
154 //----------------------------------------
155
156 code {
157   white-space: nowrap;
158   padding: 2px 5px;
159   color: #006cad;
160   background-color: #e7e7e7;
161 }
162
163 article img {
164     display: block;
165     margin: 20px auto;
166     max-width: 100%;
167 }
168
169 article h2 {
170   margin: 48px 0 16px;
171   border-bottom: solid 1px #eaecef;
172   padding-bottom: 0.3em;
173   line-height: 1.25;
174 }
175
176 article h3 { margin: 40px 0 16px; }
177
178 article pre {
179     margin: 0;
180     border: 0;
181 }
182
183 //----------------------------------------
184 // Miscellaneous.
185 //----------------------------------------
186
187 .figures h2 { margin-top: 100px; }
188
189 .maintitle {
190   text-align: center;
191 }
192
193 .footertext {
194   text-align: center;
195 }
196
197 footer .copyright,
198 footer .help-links
199 {
200     font-size: inherit;
201     margin-top: 10px;
202     margin-bottom: 10px;
203     font-weight: 500;
204     line-height: 1.1;
205 }
206
207 img.navbar-logo {
208   height: 40px; // synchronize with height of navbar
209   padding-top: 5px;
210   padding-right: 10px;
211 }
212
213 div.branding {
214   color: $color-brand;
215 }
216
217 ul,
218 ol {
219   padding-left: 2em;
220 }
221
222 span.fold-unfold {
223   margin-left: 1em;
224   opacity: 0.5;
225 }
226
227
228 //----------------------------------------
229 // Life cycle box
230 //----------------------------------------
231
232 div.life-cycle {
233     position: -webkit-sticky; /* Safari */
234     position: sticky;
235     top: 0;
236     z-index: 100;
237     font-size: 1.2em;
238     text-align: center;
239     margin-bottom: -1px;
240     border-radius: 0;
241 }
242
243 .pre-alpha {
244     color: #a94442;
245     background: #f2dede;
246 }
247
248 .alpha {
249     color: #8a6d3b;
250     background: #fcf8e3;
251 }
252
253 .beta {
254     color: #31708f;
255     background: #d9edf7;
256 }
257
258
259 //----------------------------------------
260 // keyboard key style, from StackExchange.
261 //----------------------------------------
262
263 kbd {
264     display: inline-block;
265     margin: 0 .1em;
266     padding: .1em .6em;
267     font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
268     font-size: 11px;
269     line-height: 1.4;
270     color: #242729;
271     text-shadow: 0 1px 0 #FFF;
272     background-color: #e1e3e5;
273     border: 1px solid #adb3b9;
274     border-radius: 3px;
275     box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;
276     white-space: nowrap;
277     font-style: normal;
278 }