4 //----------------------------------------
6 //----------------------------------------
9 $color-brand: #2b3990 !default;
12 $color-error: #bd2c00 !default;
13 $color-output: #303030 !default;
14 $color-source: #360084 !default;
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;
27 //----------------------------------------
28 // Specialized code blocks.
29 //----------------------------------------
31 @mixin cdSetup($color) {
33 border: solid 1px $color;
34 border-left: solid 5px $color;
35 margin: 15px 5px 10px 0;
36 border-radius: 4px 0 0 4px;
39 .error { @include cdSetup($color-error); }
40 .output { @include cdSetup($color-output); }
41 .source { @include cdSetup($color-source); }
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); }
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;
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"; }
76 //----------------------------------------
77 // Specialized blockquote environments for learning objectives, callouts, etc.
78 //----------------------------------------
80 $codeblock-padding: 5px !default;
82 @mixin bkSetup($color, $glyph) {
84 $gradientcolor1: $color;
85 $gradientcolor2: scale-color($color, $lightness: 10%);
87 padding: 0 0 $codeblock-padding $codeblock-padding;
92 margin: 15px 5px 10px 0;
95 padding-top: $codeblock-padding;
96 padding-bottom: $codeblock-padding;
98 background: linear-gradient(to bottom, $gradientcolor1, $gradientcolor2);
101 margin-left: -$codeblock-padding; // to move back to the left margin of the enclosing blockquote
104 font-family: 'Glyphicons Halflings';
107 padding-left: $codeblock-padding;
108 padding-right: $codeblock-padding;
109 display: inline-block;
110 -webkit-font-smoothing: antialiased;
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"); }
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; }
151 blockquote :not(h2) + p {
155 //----------------------------------------
156 // Override Bootstrap settings.
157 //----------------------------------------
159 blockquote { font-size: inherit; }
165 background-color: #e7e7e7;
168 samp { hyphens: none; }
170 dt { margin-top: 20px; }
171 dd { margin-left: 2em; }
181 border-bottom: solid 1px #eaecef;
182 padding-bottom: 0.3em;
186 article h3 { margin: 40px 0 16px; }
193 //----------------------------------------
195 //----------------------------------------
197 .figures h2 { margin-top: 100px; }
218 height: 40px; // synchronize with height of navbar
238 //----------------------------------------
240 //----------------------------------------
243 position: -webkit-sticky; /* Safari */
269 //----------------------------------------
270 // keyboard key style, from StackExchange.
271 //----------------------------------------
274 display: inline-block;
277 font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
281 text-shadow: 0 1px 0 #FFF;
282 background-color: #e1e3e5;
283 border: 1px solid #adb3b9;
285 box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;