Merge pull request #214 from katrinleinweber/resolve-DOIs-securely
[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-left: solid 5px $color;
34   margin-bottom: 0px;
35   border-radius: 4px 0 0 4px;
36 }
37
38 .error  { @include cdSetup($color-error); }
39 .output { @include cdSetup($color-output); }
40 .source { @include cdSetup($color-source); }
41
42 .bash, .language-bash     { @include cdSetup($color-source); }
43 .make, .language-make     { @include cdSetup($color-source); }
44 .matlab, .language-matlab { @include cdSetup($color-source); }
45 .python, .language-python { @include cdSetup($color-source); }
46 .r, .language-r           { @include cdSetup($color-source); }
47 .sql, .langauge-sql       { @include cdSetup($color-source); }
48
49 .error pre,
50 .output pre,
51 .source pre,
52 .bash pre,
53 .language-bash pre,
54 .make pre,
55 .language-make pre,
56 .matlab pre,
57 .language-matlab pre,
58 .python pre,
59 .language-python pre,
60 .r pre,
61 .language-r pre,
62 .sql pre ,
63 .language-sql pre {
64   border-radius: 0 4px 4px 0;
65 }
66
67 //----------------------------------------
68 // Specialized blockquote environments for learning objectives, callouts, etc.
69 //----------------------------------------
70
71 $codeblock-padding: 5px !default;
72
73 @mixin bkSetup($color, $glyph) {
74
75   $gradientcolor1: $color;
76   $gradientcolor2: scale-color($color, $lightness: 10%);
77
78   padding-left: $codeblock-padding;
79   padding-top: 0;
80   padding-bottom: 0;
81   padding-right: 0;
82   border: 1px solid;
83   border-color: $color;
84   padding-bottom: $codeblock-padding;
85
86   h2 {
87     padding-top: $codeblock-padding;
88     padding-bottom: $codeblock-padding;
89     font-size: 20px;
90     background: linear-gradient(to bottom, $gradientcolor1, $gradientcolor2);
91     border-color: $color;
92     margin-top: 0px;
93     margin-left: -$codeblock-padding; // to move back to the left margin of the enclosing blockquote
94   }
95   h2:before {
96     font-family: 'Glyphicons Halflings';
97     content: $glyph;
98     float: left;
99     padding-left: $codeblock-padding;
100     padding-right: $codeblock-padding;
101     display: inline-block;
102     -webkit-font-smoothing: antialiased;
103   }
104
105 }
106
107 .callout{ @include bkSetup($color-callout, "\e146"); }
108 .challenge{ @include bkSetup($color-challenge, "\270f"); }
109 .checklist{ @include bkSetup($color-checklist, "\e067"); }
110 .discussion{ @include bkSetup($color-discussion, "\e123"); }
111 .keypoints{ @include bkSetup($color-keypoints, "\e101"); }
112 .objectives{ @include bkSetup($color-objectives, "\e085"); }
113 .prereq{ @include bkSetup($color-prereq, "\e124"); }
114 .solution{ @include bkSetup($color-solution, "\e105"); }
115 .testimonial{ @include bkSetup($color-testimonial, "\e143"); }
116
117 //----------------------------------------
118 // Override Bootstrap settings.
119 //----------------------------------------
120
121 code {
122   padding: 2px 5px;
123   color: #3d90d9;
124   background-color: #e7e7e7;
125 }
126
127 img {
128   max-width: 100%;
129 }
130
131 //----------------------------------------
132 // Miscellaneous.
133 //----------------------------------------
134
135 .maintitle {
136   text-align: center;
137 }
138
139 .footertext {
140   text-align: center;
141 }
142
143 img.navbar-logo {
144   height: 40px; // synchronize with height of navbar
145   padding-top: 5px;
146   padding-right: 10px;
147 }
148
149 div.branding {
150   color: $color-brand;
151 }
152
153 ul,
154 ol {
155   padding-left: 2em;
156 }
157
158 span.fold-unfold {
159   margin-left: 1em;
160   opacity: 0.5;
161 }
162
163
164 //----------------------------------------
165 // keyboard key style, from StackExchange.
166 //----------------------------------------
167
168 kbd {
169     display: inline-block;
170     margin: 0 .1em;
171     padding: .1em .6em;
172     font-family: Arial,"Helvetica Neue",Helvetica,sans-serif;
173     font-size: 11px;
174     line-height: 1.4;
175     color: #242729;
176     text-shadow: 0 1px 0 #FFF;
177     background-color: #e1e3e5;
178     border: 1px solid #adb3b9;
179     border-radius: 3px;
180     box-shadow: 0 1px 0 rgba(12,13,14,0.2), 0 0 0 2px #FFF inset;
181     white-space: nowrap;
182     font-style: normal;
183 }