4 //----------------------------------------
6 //----------------------------------------
9 $color-brand: #2b3990 !default;
12 $color-error: #bd2c00 !default;
13 $color-warning: #cda01d !default;
14 $color-output: #303030 !default;
15 $color-source: #360084 !default;
18 $color-callout: #f4fd9c !default;
19 $color-caution: #cf000e !default;
20 $color-challenge: #eec275 !default;
21 $color-checklist: #dfd2a0 !default;
22 $color-discussion: #eec275 !default;
23 $color-keypoints: #7ae78e !default;
24 $color-objectives: #daee84 !default;
25 $color-prereq: #9cd6dc !default;
26 $color-solution: #ded4b9 !default;
27 $color-testimonial: #fc8dc1 !default;
29 //----------------------------------------
30 // Specialized code blocks.
31 //----------------------------------------
33 @mixin cdSetup($color) {
35 border: solid 1px $color;
36 border-left: solid 5px $color;
37 margin: 15px 5px 10px 0;
38 border-radius: 4px 0 0 4px;
41 // Generic setup. Has to come before .error, .warning, and .output
42 div[class^='language-'] { @include cdSetup($color-source); }
44 div.source { @include cdSetup($color-source); }
45 div.error { @include cdSetup($color-error); }
46 div.warning { @include cdSetup($color-warning); }
47 div.output { @include cdSetup($color-output); }
53 div[class^='language-']::before {
54 background-color: #f2eff6;
60 div[class^='language-']::before,
61 div.source::before { content: "Code"; }
63 div.error::before { background-color: #ffebe6; content: "Error"; }
64 div.warning:before { background-color: #f8f4e8; content:" Warning"; }
65 div.output::before { background-color: #efefef; content: "Output"; }
67 div.language-bash::before { content: "Bash"; }
68 div.language-c::before { content: "C"; }
69 div.language-cmake::before { content: "CMake"; }
70 div.language-cpp::before { content: "C++"; }
71 div.language-make::before { content: "Make"; }
72 div.language-matlab::before { content: "MATLAB"; }
73 div.language-python::before { content: "Python"; }
74 div.language-r::before { content: "R"; }
75 div.language-sql::before { content: "SQL"; }
77 // Tab panels are used on Setup pages to show instructions for different Operating Systems
79 border: solid 1px #ddd; // #ddd == @nav-tabs-active-link-hover-border-color
81 padding: 20px 20px 10px 20px;
82 border-radius: 0 0 4px 4px; // 4px == @border-radius-base
85 // Stripe above tab panels where OS tabs are shown
88 border-radius: 4px 4px 0 0; // 4px == @border-radius-base
91 // adjust line height of links so that clickable area (of OS tabs) is 44px high
92 ul.nav.nav-tabs li a { line-height: 24px; } // or 1.714285716
94 // This color provides better contrast ratio on most backgrounds used on Carpentries websites
95 // 9.24 on FFFFFF: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=FFFFFF&api (body)
96 // 8.78 on F9F9F9: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=F9F9F9&api (tables)
97 // 7.07 on E1E1E1: https://webaim.org/resources/contrastchecker/?fcolor=204A6F&bcolor=E1E1E1&api (tab panels)
100 // .yt-wrapper2 can be used for limiting maximum width of YouTube iframes only
101 .yt-wrapper2 { max-width: 100%; margin: 0 auto; }
103 // Use full width on small displays
104 @media only screen and (max-width: 600px) { .yt-wrapper2 { max-width: 100%; } }
109 padding-bottom: 56.25%;
122 //----------------------------------------
123 // Specialized blockquote environments for learning objectives, callouts, etc.
124 //----------------------------------------
126 $codeblock-padding: 5px !default;
128 @mixin bkSetup($color, $glyph) {
130 $gradientcolor1: $color;
131 $gradientcolor2: scale-color($color, $lightness: 10%);
133 padding: 0 0 $codeblock-padding $codeblock-padding;
135 border-color: $color;
138 margin: 15px 5px 10px 0;
141 padding-top: $codeblock-padding;
142 padding-bottom: $codeblock-padding;
144 background: linear-gradient(to bottom, $gradientcolor1, $gradientcolor2);
145 border-color: $color;
147 margin-left: -$codeblock-padding; // to move back to the left margin of the enclosing blockquote
150 font-family: 'Glyphicons Halflings';
153 padding-left: $codeblock-padding;
154 padding-right: $codeblock-padding;
155 display: inline-block;
156 -webkit-font-smoothing: antialiased;
161 .callout{ @include bkSetup($color-callout, "\e146"); }
162 .caution{ @include bkSetup($color-caution, "\e107"); }
163 .challenge{ @include bkSetup($color-challenge, "\270f"); }
164 .checklist{ @include bkSetup($color-checklist, "\e067"); }
165 .discussion{ @include bkSetup($color-discussion, "\e123"); }
166 .keypoints{ @include bkSetup($color-keypoints, "\e101"); }
167 .objectives{ @include bkSetup($color-objectives, "\e085"); }
168 .prereq{ @include bkSetup($color-prereq, "\e124"); }
169 .solution{ @include bkSetup($color-solution, "\e105"); }
170 .testimonial{ @include bkSetup($color-testimonial, "\e143"); }
184 .challenge { background-color: #eec27520; }
185 .callout { background-color: #f4fd9c20; }
186 .challenge { background-color: #eec27520; }
187 .checklist { background-color: #dfd2a020; }
188 .discussion { background-color: #eec27520; }
189 .keypoints { background-color: #7ae78e20; }
190 .objectives { background-color: #daee8420; }
191 .prereq { background-color: #9cd6dc20; }
192 .solution { background-color: #ded4b94d; }
193 .testimonial { background-color: #fc8dc120; }
198 blockquote :not(h2) + p {
202 //----------------------------------------
203 // Override Bootstrap settings.
204 //----------------------------------------
206 blockquote { font-size: inherit; }
216 background-color: #e7e7e7;
219 samp { hyphens: none; }
221 dt { margin-top: 20px; }
222 dd { margin-left: 2em; }
232 border-bottom: solid 1px #eaecef;
233 padding-bottom: 0.3em;
237 article h3 { margin: 40px 0 16px; }
244 //----------------------------------------
246 //----------------------------------------
248 .figures h2 { margin-top: 100px; }
269 height: 40px; // synchronize with height of navbar
289 //----------------------------------------
291 //----------------------------------------
294 position: -webkit-sticky; /* Safari */
319 // Remove border around spans of text within code blocks
320 // that the highlighter (rouge) failed to recognize.
321 pre.highlight span.err {
326 //----------------------------------------
327 // keyboard key style, from StackExchange.
328 //----------------------------------------
331 display: inline-block;
334 font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
338 text-shadow: 0 1px 0 #FFF;
339 background-color: #e1e3e5;
340 border: 1px solid #adb3b9;
342 box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;