]>
Commit | Line | Data |
---|---|---|
bc5b7100 | 1 | @import "variables"; |
91e44d91 | 2 | |
8e1ad516 | 3 | // Use all Bootstrap modules that we want |
bc5b7100 MT |
4 | @import "../bootstrap/scss/functions"; |
5 | @import "../bootstrap/scss/variables"; | |
6 | @import "../bootstrap/scss/mixins"; | |
8e1ad516 | 7 | @import "../bootstrap/scss/root"; |
bc5b7100 | 8 | @import "../bootstrap/scss/reboot"; |
bc5b7100 | 9 | @import "../bootstrap/scss/type"; |
8e1ad516 MT |
10 | @import "../bootstrap/scss/images"; |
11 | @import "../bootstrap/scss/code"; | |
bc5b7100 MT |
12 | @import "../bootstrap/scss/grid"; |
13 | @import "../bootstrap/scss/tables"; | |
14 | @import "../bootstrap/scss/forms"; | |
15 | @import "../bootstrap/scss/buttons"; | |
bc5b7100 | 16 | @import "../bootstrap/scss/transitions"; |
8e1ad516 | 17 | @import "../bootstrap/scss/dropdown"; |
bc5b7100 | 18 | @import "../bootstrap/scss/button-group"; |
8e1ad516 | 19 | @import "../bootstrap/scss/input-group"; |
54e768a2 | 20 | @import "../bootstrap/scss/custom-forms"; |
bc5b7100 MT |
21 | @import "../bootstrap/scss/nav"; |
22 | @import "../bootstrap/scss/navbar"; | |
8e1ad516 MT |
23 | @import "../bootstrap/scss/card"; |
24 | @import "../bootstrap/scss/pagination"; | |
6ac7e934 | 25 | @import "../bootstrap/scss/breadcrumb"; |
bc5b7100 | 26 | @import "../bootstrap/scss/badge"; |
8e1ad516 | 27 | @import "../bootstrap/scss/alert"; |
bc5b7100 MT |
28 | @import "../bootstrap/scss/progress"; |
29 | @import "../bootstrap/scss/media"; | |
30 | @import "../bootstrap/scss/list-group"; | |
8e1ad516 | 31 | @import "../bootstrap/scss/close"; |
95b30f84 | 32 | @import "../bootstrap/scss/modal"; |
2901b734 | 33 | @import "../bootstrap/scss/spinners"; |
bc5b7100 | 34 | @import "../bootstrap/scss/utilities"; |
8e1ad516 | 35 | @import "../bootstrap/scss/print"; |
1423222c | 36 | |
616bd6a5 | 37 | // Include fonts |
20cd8624 | 38 | @import "_fonts.scss"; |
616bd6a5 | 39 | |
5236a99a | 40 | // Custom stuff |
95483f04 | 41 | @import "icons"; |
c4657f62 | 42 | @import "code-highlighting"; |
5236a99a | 43 | |
60ad7705 MT |
44 | // Makes everything white with dark text on it |
45 | .inverse { | |
46 | background-color: $body-color; | |
47 | color: $body-bg; | |
48 | } | |
49 | ||
d5389cd7 | 50 | body { |
13ddfd7a | 51 | display: flex; |
a2b09808 | 52 | min-height: 100vh; |
13ddfd7a | 53 | flex-flow: column; |
cc59f0e1 MT |
54 | } |
55 | ||
41f3d31d MT |
56 | // Buttons |
57 | .btn { | |
58 | text-transform: uppercase; | |
59 | } | |
60 | ||
dd06f761 | 61 | @each $color, $value in $theme-colors { |
3e486013 | 62 | .btn-glow-#{$color} { |
dcaed004 | 63 | color: white; |
dd06f761 MT |
64 | background-color: rgba($value, .15); |
65 | } | |
66 | } | |
67 | ||
5ff649e9 MT |
68 | code { |
69 | background-color: $dark; | |
70 | border-radius: $border-radius; | |
71 | padding: 0.1rem 0.2rem; | |
72 | } | |
73 | ||
74 | pre { | |
75 | background-color: $dark; | |
76 | border-radius: $border-radius; | |
77 | padding: 0.5rem; | |
78 | ||
79 | code { | |
80 | background-color: inherit; | |
81 | padding: 0; | |
82 | } | |
83 | } | |
84 | ||
25346297 | 85 | .card { |
60ad7705 | 86 | @extend .inverse; |
f0c48740 MT |
87 | |
88 | // Reset padding for sections | |
89 | section { | |
90 | padding: 0; | |
91 | } | |
25346297 MT |
92 | } |
93 | ||
f4672785 MT |
94 | .list-group { |
95 | .list-group-item { | |
d8f64b59 | 96 | color: $body-bg; |
f4672785 MT |
97 | } |
98 | } | |
99 | ||
9f043320 MT |
100 | .nav { |
101 | .nav-link { | |
25346297 | 102 | color: $white; |
9f043320 MT |
103 | |
104 | &.active { | |
105 | color: $link-color; | |
106 | border-left: 2px solid $link-color; | |
107 | } | |
108 | } | |
109 | } | |
110 | ||
56fdd02c | 111 | .navbar { |
c56cbe8c MT |
112 | background-color: rgba($gray-400, .06); |
113 | ||
7dadc6f7 MT |
114 | // Webkit is being stupid and cannot figure out the height |
115 | // of the navbar by itself | |
116 | min-height: $navbar-height; | |
117 | ||
a9a5d02b MT |
118 | .navbar-brand { |
119 | color: inherit; | |
56fdd02c | 120 | } |
dce6f905 MT |
121 | |
122 | .navbar-nav { | |
123 | .nav-link { | |
a9a5d02b | 124 | color: inherit; |
dce6f905 MT |
125 | |
126 | &.active { | |
127 | border-bottom: 2px solid $link-color; | |
128 | } | |
129 | } | |
130 | } | |
56fdd02c MT |
131 | } |
132 | ||
a2b09808 MT |
133 | header { |
134 | &.cover { | |
135 | position: relative; | |
136 | width: 100%; | |
137 | height: auto; | |
138 | min-height: 35rem; | |
139 | ||
140 | @include media-breakpoint-up(lg) { | |
141 | height: calc(100vh - #{$navbar-height}); | |
142 | } | |
143 | } | |
144 | } | |
145 | ||
b6d6d80f MT |
146 | .icon-large { |
147 | font-size: 8em; | |
148 | ||
149 | @include media-breakpoint-up(md) { | |
150 | font-size: 6em; | |
151 | } | |
152 | ||
153 | @include media-breakpoint-up(lg) { | |
154 | font-size: 8em; | |
155 | } | |
156 | ||
157 | @include media-breakpoint-up(xl) { | |
158 | font-size: 10em; | |
159 | } | |
160 | } | |
161 | ||
c2cbe16d | 162 | footer { |
13ddfd7a | 163 | margin-top: auto; |
252d95b6 | 164 | |
c819ecf2 | 165 | .footer { |
0509f6fd | 166 | margin-top: $spacer * 3; |
2597b512 | 167 | |
0509f6fd MT |
168 | .footer-info { |
169 | padding: 2rem 0 0 0; | |
252d95b6 | 170 | |
0509f6fd MT |
171 | color: $white; |
172 | background-color: rgba($gray-400, .04); | |
2597b512 | 173 | |
0509f6fd MT |
174 | @include media-breakpoint-down(md) { |
175 | padding-top: 31px; | |
176 | } | |
c819ecf2 | 177 | |
0509f6fd | 178 | a, .btn-link { |
c819ecf2 | 179 | color: inherit; |
0509f6fd MT |
180 | |
181 | &:hover { | |
182 | color: inherit; | |
183 | } | |
c819ecf2 | 184 | } |
252d95b6 | 185 | |
0509f6fd MT |
186 | ul { |
187 | li { | |
188 | margin-bottom: $spacer / 4; | |
189 | } | |
c819ecf2 | 190 | } |
252d95b6 | 191 | } |
252d95b6 | 192 | |
0509f6fd MT |
193 | .copyright { |
194 | background-color: rgba($gray-400, .06); | |
195 | padding: $spacer 0; | |
252d95b6 | 196 | |
0509f6fd | 197 | font-size: $small-font-size; |
252d95b6 | 198 | |
0509f6fd MT |
199 | a { |
200 | color: $text-muted; | |
201 | } | |
252d95b6 MT |
202 | } |
203 | } | |
c2cbe16d S |
204 | } |
205 | ||
c2cbe16d | 206 | // Sections |
319dd276 | 207 | |
00026d8b | 208 | section { |
8ad3de4a | 209 | padding: 3rem 1rem; |
00026d8b | 210 | |
8ad3de4a | 211 | @include media-breakpoint-up(md) { |
bbaf0fc1 | 212 | padding: 5rem 0; |
8ad3de4a MT |
213 | } |
214 | ||
215 | @include media-breakpoint-up(md) { | |
216 | // Reset large headlines to normal size on mobile devices | |
217 | h1 { | |
218 | font-size: $display1-size; | |
219 | font-weight: $display1-weight; | |
220 | line-height: $display-line-height; | |
221 | } | |
00026d8b | 222 | } |
319dd276 MT |
223 | } |
224 | ||
321c58c3 MT |
225 | .blog-post { |
226 | .blog-header { | |
53a70dd6 MT |
227 | h4 { |
228 | margin-bottom: 0; | |
229 | ||
4b2975d2 | 230 | a { |
9632ca8b | 231 | color: $dark; |
4b2975d2 | 232 | } |
60e77f07 MT |
233 | } |
234 | } | |
8ebc98d4 | 235 | |
321c58c3 | 236 | .blog-content { |
fb37ac29 | 237 | h1, h2, h3, h4, h5, h6 { |
2ee63634 | 238 | font-size: 1.375rem; |
fb37ac29 | 239 | font-weight: $headings-font-weight; |
2ee63634 | 240 | line-height: $headings-line-height; |
fb37ac29 MT |
241 | margin-bottom: 0.25rem; |
242 | } | |
c5cfd0d5 MT |
243 | |
244 | img { | |
245 | @include img-fluid; | |
c738f6d3 MT |
246 | |
247 | // Center all images | |
248 | display: block; | |
249 | margin-left: auto; | |
250 | margin-right: auto; | |
251 | ||
252 | // Add some extra margin to the top & bottom | |
253 | padding: ($spacer * 2) 0 ($spacer * 2) 0; | |
c5cfd0d5 | 254 | } |
fb37ac29 MT |
255 | } |
256 | ||
8ebc98d4 | 257 | &.lightning-wire-labs { |
321c58c3 | 258 | .blog-header { |
4b2975d2 MT |
259 | h5 { |
260 | a { | |
261 | color: $lwl; | |
262 | } | |
263 | } | |
264 | ||
265 | a { | |
266 | color: $lwl; | |
267 | } | |
268 | } | |
269 | ||
321c58c3 | 270 | .blog-content { |
4b2975d2 MT |
271 | a { |
272 | color: $lwl; | |
273 | } | |
8ebc98d4 MT |
274 | } |
275 | } | |
12e5de7e MT |
276 | } |
277 | ||
9bc17e85 MT |
278 | .wiki-content { |
279 | h1, h2, h3, h4, h5, h6 { | |
280 | font-weight: $headings-font-weight; | |
281 | line-height: $headings-line-height; | |
457ead31 | 282 | margin-bottom: 0.5rem; |
9bc17e85 MT |
283 | } |
284 | ||
285 | h1 { | |
286 | font-size: $h4-font-size; | |
287 | } | |
288 | ||
289 | h2 { | |
290 | font-size: $h5-font-size; | |
291 | } | |
292 | ||
293 | h3, h4, h5, h6 { | |
294 | font-size: $h6-font-size; | |
295 | } | |
296 | ||
fa8c5edd MT |
297 | figure { |
298 | // Center images | |
299 | display: table; | |
9bc17e85 | 300 | margin-right: auto; |
fa8c5edd | 301 | margin-left: auto; |
9bc17e85 MT |
302 | |
303 | // Add some extra margin to the top & bottom | |
304 | padding: ($spacer * 2) 0 ($spacer * 2) 0; | |
305 | } | |
612e0574 | 306 | |
86bcb973 MT |
307 | blockquote { |
308 | @extend .blockquote; | |
309 | } | |
310 | ||
612e0574 MT |
311 | table { |
312 | @extend .table; | |
313 | @extend .table-sm; | |
9d3de77d | 314 | @extend .table-striped; |
c3772a5e MT |
315 | |
316 | // Apply CSS classes for alignment | |
317 | thead { | |
318 | th[align="left"], td[align="left"] { | |
319 | @extend .text-left; | |
320 | } | |
321 | ||
322 | th[align="center"], td[align="center"] { | |
323 | @extend .text-center; | |
324 | } | |
325 | ||
326 | th[align="right"], td[align="right"] { | |
327 | @extend .text-right; | |
328 | } | |
329 | } | |
612e0574 | 330 | } |
9bc17e85 MT |
331 | } |
332 | ||
2901b734 MT |
333 | #preview { |
334 | // Hide the spinner by default | |
335 | #spinner { | |
336 | display: none; | |
337 | } | |
338 | ||
339 | #preview-content { | |
340 | @include transition(opacity .5s linear); | |
341 | } | |
342 | ||
343 | &.updating { | |
344 | // Show the spinner during updates | |
345 | #spinner { | |
346 | display: block; | |
347 | } | |
348 | ||
349 | // While updating, we face out the content | |
350 | #preview-content { | |
351 | opacity: 0.5; | |
352 | } | |
353 | } | |
354 | } | |
355 | ||
ecea28b2 MT |
356 | hr.divider { |
357 | border-color: rgba($dark, .15); | |
358 | margin-top: 2rem; | |
359 | margin-bottom: 3rem; | |
360 | } | |
9f043320 | 361 | |
c2cbe16d S |
362 | .circle { |
363 | position: relative; | |
f8c4f791 | 364 | p.fireinfo_per { |
25346297 | 365 | color: $gray-800; |
c2cbe16d | 366 | position: absolute; |
d56f505e | 367 | top: calc(50% - 18px); |
c2cbe16d S |
368 | width: 100%; |
369 | } | |
20df8773 | 370 | } |
8cb0bea4 MT |
371 | |
372 | .pdf-viewer { | |
373 | width: 100%; | |
374 | min-height: 32rem; | |
375 | } |