chulapa-jekyll 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +154 -31
  3. data/README.md +96 -76
  4. data/_data/version.yml +2 -2
  5. data/_includes/components/breadcrumbdatesocial.html +15 -11
  6. data/_includes/components/headers.html +17 -10
  7. data/_includes/components/indexcards.html +2 -2
  8. data/_includes/components/navbeforeafter.html +2 -2
  9. data/_includes/components/random.html +103 -0
  10. data/_includes/components/related.html +84 -60
  11. data/_includes/components/simplelist.html +26 -0
  12. data/_includes/footer.html +53 -1
  13. data/_includes/head.html +237 -98
  14. data/_includes/search/fusejs.html +36 -0
  15. data/_includes/search/lunr.html +27 -7
  16. data/_includes/search/simplesearch.html +46 -0
  17. data/_includes/snippets/article-images.html +25 -0
  18. data/_includes/snippets/bootstrapdemo.html +1454 -1303
  19. data/_includes/snippets/breadcrumb-names.html +5 -0
  20. data/_includes/snippets/canonical-url.html +17 -0
  21. data/_includes/snippets/datetranslate.html +7 -1
  22. data/_includes/snippets/jsonld-string.html +16 -0
  23. data/_includes/snippets/og-locale.html +19 -0
  24. data/_includes/snippets/page-language.html +4 -0
  25. data/_includes/snippets/publisher.html +25 -0
  26. data/_includes/snippets/video-metadata.html +15 -0
  27. data/_includes/snippets/video.html +20 -17
  28. data/_includes/snippets/youtube.html +9 -4
  29. data/_includes/welcomments/template.html +1 -1
  30. data/_layouts/archive.html +1 -1
  31. data/_layouts/cloudcategory.html +34 -16
  32. data/_layouts/cloudcategory2.html +4 -85
  33. data/_layouts/cloudtag.html +39 -16
  34. data/_layouts/cloudtag2.html +4 -81
  35. data/_layouts/default.html +4 -4
  36. data/_layouts/landingpage.html +8 -5
  37. data/_layouts/minimal.html +10 -4
  38. data/_layouts/search.html +12 -13
  39. data/_sass/chulapa/_classes.scss +68 -58
  40. data/_sass/chulapa/_reboot.scss +31 -0
  41. data/_sass/chulapa/_variables.scss +8 -1
  42. data/_sass/highlight/README.md +176 -14
  43. data/_sass/highlight/abap.scss +62 -0
  44. data/_sass/highlight/algol.scss +46 -0
  45. data/_sass/highlight/algol_nu.scss +46 -0
  46. data/_sass/highlight/arduino.scss +63 -0
  47. data/_sass/highlight/autumn.scss +69 -58
  48. data/_sass/highlight/base16.scss +90 -0
  49. data/_sass/highlight/borland.scss +55 -46
  50. data/_sass/highlight/bw.scss +70 -34
  51. data/_sass/highlight/cobalt2.scss +197 -0
  52. data/_sass/highlight/coffee.scss +82 -0
  53. data/_sass/highlight/colorful.scss +178 -61
  54. data/_sass/highlight/cran.scss +185 -169
  55. data/_sass/highlight/default.scss +72 -61
  56. data/_sass/highlight/dracula.scss +93 -169
  57. data/_sass/highlight/emacs.scss +72 -61
  58. data/_sass/highlight/friendly.scss +72 -61
  59. data/_sass/highlight/friendly_grayscale.scss +72 -0
  60. data/_sass/highlight/fruity.scss +82 -70
  61. data/_sass/highlight/github.dark.scss +83 -0
  62. data/_sass/highlight/github.scss +116 -61
  63. data/_sass/highlight/gruvbox.dark.scss +83 -0
  64. data/_sass/highlight/gruvbox.light.scss +68 -84
  65. data/_sass/highlight/gruvbox.scss +97 -0
  66. data/_sass/highlight/igor.scss +36 -0
  67. data/_sass/highlight/igorpro.scss +45 -0
  68. data/_sass/highlight/inkpot.scss +78 -0
  69. data/_sass/highlight/lightbulb.scss +82 -0
  70. data/_sass/highlight/lilypond.scss +58 -0
  71. data/_sass/highlight/lovelace.scss +74 -0
  72. data/_sass/highlight/magritte.scss +175 -0
  73. data/_sass/highlight/manni.scss +72 -61
  74. data/_sass/highlight/material.scss +81 -0
  75. data/_sass/highlight/molokai.scss +211 -0
  76. data/_sass/highlight/monokai.scss +217 -65
  77. data/_sass/highlight/monokai.sublime.scss +203 -0
  78. data/_sass/highlight/murphy.scss +72 -61
  79. data/_sass/highlight/native.scss +82 -70
  80. data/_sass/highlight/night-owl.scss +201 -0
  81. data/_sass/highlight/nord.darker.scss +82 -0
  82. data/_sass/highlight/nord.scss +82 -0
  83. data/_sass/highlight/oksolar.dark.scss +175 -0
  84. data/_sass/highlight/oksolar.light.scss +175 -0
  85. data/_sass/highlight/one.dark.scss +82 -0
  86. data/_sass/highlight/panda.scss +195 -0
  87. data/_sass/highlight/paraiso.dark.scss +76 -0
  88. data/_sass/highlight/paraiso.light.scss +76 -0
  89. data/_sass/highlight/pastie.scss +154 -60
  90. data/_sass/highlight/perldoc.scss +69 -58
  91. data/_sass/highlight/rainbow_dash.scss +65 -0
  92. data/_sass/highlight/rrt.scss +82 -0
  93. data/_sass/highlight/sas.scss +63 -0
  94. data/_sass/highlight/selenized.black.scss +175 -0
  95. data/_sass/highlight/selenized.dark.scss +175 -0
  96. data/_sass/highlight/selenized.light.scss +175 -0
  97. data/_sass/highlight/selenized.white.scss +175 -0
  98. data/_sass/highlight/skeletor.scss +190 -140
  99. data/_sass/highlight/solarized.dark.scss +82 -0
  100. data/_sass/highlight/solarized.light.scss +82 -0
  101. data/_sass/highlight/stackoverflow.dark.scss +175 -0
  102. data/_sass/highlight/stackoverflow.light.scss +175 -0
  103. data/_sass/highlight/staroffice.scss +82 -0
  104. data/_sass/highlight/stata.dark.scss +82 -0
  105. data/_sass/highlight/stata.light.scss +49 -0
  106. data/_sass/highlight/tango.scss +81 -69
  107. data/_sass/highlight/template.scss +290 -0
  108. data/_sass/highlight/thankful_eyes.scss +180 -173
  109. data/_sass/highlight/trac.scss +70 -59
  110. data/_sass/highlight/tulip.scss +171 -0
  111. data/_sass/highlight/vim.scss +82 -70
  112. data/_sass/highlight/vs.scss +41 -33
  113. data/_sass/highlight/xcode.scss +65 -0
  114. data/_sass/highlight/zenburn.scss +82 -136
  115. data/_sass/reset-algolia.scss +27 -17
  116. data/_sass/skins/academia.scss +19 -10
  117. data/_sass/skins/auto.scss +5 -2
  118. data/_sass/skins/butterfly-dark.scss +54 -0
  119. data/_sass/skins/butterfly-dim.scss +54 -0
  120. data/_sass/skins/butterfly.scss +33 -0
  121. data/_sass/skins/chulapa.scss +10 -3
  122. data/_sass/skins/cyborg.scss +512 -0
  123. data/_sass/skins/dark-bg.scss +83 -49
  124. data/_sass/skins/darkly.scss +424 -0
  125. data/_sass/skins/deeply.scss +262 -63
  126. data/_sass/skins/electro.scss +24 -17
  127. data/_sass/skins/flatly.scss +386 -0
  128. data/_sass/skins/focal.scss +24 -18
  129. data/_sass/skins/gitdev-dark.scss +12 -20
  130. data/_sass/skins/gitdev.scss +20 -17
  131. data/_sass/skins/graymor.scss +22 -14
  132. data/_sass/skins/hootstrap.scss +17 -10
  133. data/_sass/skins/journal.scss +74 -86
  134. data/_sass/skins/listen.scss +51 -0
  135. data/_sass/skins/lux.scss +171 -237
  136. data/_sass/skins/lymcha.scss +14 -9
  137. data/_sass/skins/materia.scss +889 -0
  138. data/_sass/skins/media.scss +29 -11
  139. data/_sass/skins/mickie.scss +27 -11
  140. data/_sass/skins/minco.scss +30 -10
  141. data/_sass/skins/minty.scss +226 -85
  142. data/_sass/skins/monotone.scss +15 -1
  143. data/_sass/skins/navi.scss +26 -0
  144. data/_sass/skins/pear.scss +16 -5
  145. data/_sass/skins/preptor.scss +13 -12
  146. data/_sass/skins/skeeblu.scss +11 -11
  147. data/_sass/skins/sketchy.scss +366 -377
  148. data/_sass/skins/slate.scss +719 -0
  149. data/_sass/skins/solar.scss +425 -0
  150. data/_sass/skins/sunset.scss +27 -12
  151. data/_sass/skins/towards.scss +19 -5
  152. data/_sass/skins/twitter-dim.scss +20 -11
  153. data/_sass/skins/twitter-lights-out.scss +22 -11
  154. data/_sass/skins/twitter.scss +22 -10
  155. data/_sass/skins/united.scss +57 -0
  156. data/_sass/skins/universal.scss +29 -27
  157. data/_sass/skins/wandoo.scss +12 -11
  158. data/_sass/skins/yeti.scss +673 -0
  159. data/assets/atom.xml +10 -6
  160. data/assets/js/better404/better404.js +75 -0
  161. data/assets/js/ch_ytdefer/ch_ytdefer.js +0 -1
  162. data/assets/js/chulapa_script.js +2 -2
  163. data/assets/js/fusejs/fusejs-search.js +197 -0
  164. data/assets/js/fusejs/fusejs-search.min.js +4 -0
  165. data/assets/js/fusejs/fusejs-store.js +43 -0
  166. data/assets/js/lunr/lunr-search.js +249 -114
  167. data/assets/js/lunr/lunr-search.min.js +4 -0
  168. data/assets/js/lunr/lunr-store.js +31 -23
  169. data/assets/js/simplesearch/simplesearch-store.json +45 -0
  170. data/assets/rss.xml +4 -3
  171. metadata +81 -8
  172. data/_sass/highlight/UNLICENSE.txt +0 -24
@@ -0,0 +1,889 @@
1
+ // Materia 4.6.2
2
+ // Bootswatch
3
+
4
+ //
5
+ // Color system
6
+ //
7
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
8
+
9
+ $white: #fff !default;
10
+ $gray-100: #f8f9fa !default;
11
+ $gray-200: #eee !default;
12
+ $gray-300: #dee2e6 !default;
13
+ $gray-400: #ced4da !default;
14
+ $gray-500: #bbb !default;
15
+ $gray-600: #666 !default;
16
+ $gray-700: #444 !default;
17
+ $gray-800: #222 !default;
18
+ $gray-900: #212121 !default;
19
+ $black: #000 !default;
20
+
21
+ $blue: #2196f3 !default;
22
+ $indigo: #6610f2 !default;
23
+ $purple: #6f42c1 !default;
24
+ $pink: #e83e8c !default;
25
+ $red: #e51c23 !default;
26
+ $orange: #fd7e14 !default;
27
+ $yellow: #ff9800 !default;
28
+ $green: #4caf50 !default;
29
+ $teal: #20c997 !default;
30
+ $cyan: #9c27b0 !default;
31
+
32
+ $primary: $blue !default;
33
+ $secondary: $white !default;
34
+ $success: $green !default;
35
+ $info: $cyan !default;
36
+ $warning: $yellow !default;
37
+ $danger: $red !default;
38
+ $light: $white !default;
39
+ $dark: $gray-800 !default;
40
+
41
+ $yiq-contrasted-threshold: 170 !default;
42
+
43
+ $enable-gradients: true !default;
44
+
45
+ // Body
46
+
47
+ $body-color: $gray-700 !default;
48
+
49
+ // Fonts
50
+
51
+ // stylelint-disable-next-line value-keyword-case
52
+ $font-family-sans-serif: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !default;
53
+ $font-size-base: .8125rem !default;
54
+ $font-weight-base: 400 !default;
55
+
56
+ // Buttons
57
+
58
+ $input-btn-padding-y: .8rem !default;
59
+ $input-btn-padding-x: 1rem !default;
60
+
61
+ // Forms
62
+
63
+ $input-padding-y: 1rem !default;
64
+ $input-padding-x: 0 !default;
65
+ $input-padding-y-sm: 0 !default;
66
+ $input-padding-x-sm: 0 !default;
67
+ $input-padding-y-lg: ($font-size-base * 1.25) !default;
68
+ $input-padding-x-lg: 0 !default;
69
+ $input-bg: transparent !default;
70
+ $input-disabled-bg: transparent !default;
71
+ $input-color: $gray-600 !default;
72
+ $input-border-color: transparent !default;
73
+ $input-border-width: 0 !default;
74
+ $input-border-radius: 0 !default;
75
+ $input-border-radius-lg: 0 !default;
76
+ $input-border-radius-sm: 0 !default;
77
+ $input-placeholder-color: rgba(0, 0, 0, .4) !default;
78
+ $input-group-addon-bg: transparent !default;
79
+ $custom-control-gutter: 1.75rem !default;
80
+ $custom-control-indicator-focus-box-shadow: 0 !default;
81
+ $custom-control-indicator-size: 1.25rem !default;
82
+ $custom-control-indicator-bg: $white !default;
83
+ $custom-checkbox-indicator-border-radius: 2px !default;
84
+ $custom-control-indicator-disabled-bg: $gray-100 !default;
85
+ $custom-radio-indicator-icon-checked: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='4' fill='#{$blue}'/></svg>") !default;
86
+ $custom-select-border-radius: 0 !default;
87
+ $custom-select-box-shadow: none !default;
88
+
89
+ // Navs
90
+
91
+ $nav-link-disabled-color: $gray-500 !default;
92
+ $nav-tabs-border-color: transparent !default;
93
+
94
+ // Navbar
95
+
96
+ $navbar-dark-color: rgba($white, .75) !default;
97
+ $navbar-dark-hover-color: $white !default;
98
+
99
+ // Cards
100
+
101
+ $card-border-width: 0 !default;
102
+ $card-border-color: transparent !default;
103
+
104
+ // Tooltips
105
+
106
+ $tooltip-bg: $gray-700 !default;
107
+
108
+ // Modals
109
+
110
+ $modal-content-border-color: transparent !default;
111
+
112
+ // Progress bars
113
+
114
+ $progress-height: .375rem !default;
115
+ $progress-border-radius: 0 !default;
116
+
117
+ // Close
118
+
119
+ $close-font-size: 2.125rem !default;
120
+ $close-font-weight: 300 !default;
121
+
122
+ // Box shadows
123
+
124
+ $enable-shadows: true !default;
125
+ $btn-box-shadow: 0 1px 4px rgba($black, .4) !default;
126
+ $btn-active-box-shadow: 2px 2px 4px rgba($black, .4) !default;
127
+ $btn-focus-box-shadow: 0 0 0 2px mix(rgba($white, .5), rgba($black, .5), 80%) !default;
128
+ $input-box-shadow: inset 0 -1px 0 mix($white, $black, 86.7%) !default;
129
+ $input-focus-box-shadow: inset 0 -2px 0 $primary !default;
130
+
131
+ $navbar-chulapa-hover-color: $gray-800 !default;
132
+
133
+ // Import bootstrap
134
+ @import "bootstrap/bootstrap";
135
+
136
+ // Materia 4.6.2
137
+ // Bootswatch
138
+
139
+ // Mixins ======================================================================
140
+
141
+ @mixin ripple($color) {
142
+ position: relative;
143
+
144
+ &::before {
145
+ content: "";
146
+ display: block;
147
+ position: absolute;
148
+ width: 100%;
149
+ height: 100%;
150
+ top: 0;
151
+ left: 0;
152
+ margin-left: 0;
153
+ @include gradient-radial($color 10%, transparent 10.01%);
154
+ background-size: 1000% 1000%;
155
+ background-position: 50%;
156
+ border: none;
157
+ opacity: 0;
158
+ pointer-events: none;
159
+ transition: background .5s, opacity 1s;
160
+ }
161
+
162
+ &:active::before {
163
+ background-size: 0 0;
164
+ opacity: .2;
165
+ transition: none;
166
+ }
167
+
168
+ &.disabled,
169
+ &[disabled] {
170
+ &::before {
171
+ display: none;
172
+ }
173
+ }
174
+ }
175
+
176
+ @mixin btn($class, $bg, $color) {
177
+ .btn-#{$class} {
178
+ &:focus {
179
+ background-color: $bg;
180
+ box-shadow: $btn-focus-box-shadow;
181
+ }
182
+
183
+ &:hover,
184
+ &:active:hover {
185
+ background-color: darken($bg, 6%);
186
+ }
187
+
188
+ &:active {
189
+ box-shadow: $btn-active-box-shadow;
190
+ }
191
+
192
+ @include ripple($color);
193
+ }
194
+
195
+ .btn-outline-#{$class} {
196
+ @include ripple($color);
197
+ }
198
+ }
199
+
200
+ .dropdown-toggle::after,
201
+ .dropup .dropdown-toggle::after,
202
+ .dropright .dropdown-toggle::after,
203
+ .dropleft .dropdown-toggle::after {
204
+ border-width: 4px;
205
+ }
206
+
207
+ // Navbar ======================================================================
208
+
209
+ .navbar {
210
+ border: none;
211
+ box-shadow: 0 1px 2px rgba($black, .3);
212
+
213
+ &-brand {
214
+ font-size: 24px;
215
+ }
216
+
217
+ &.bg-dark,
218
+ &.bg-primary {
219
+ input[type="text"],
220
+ input[type="password"],
221
+ input[type="email"],
222
+ input[type="number"],
223
+ input[type="tel"] {
224
+ color: $white;
225
+ box-shadow: inset 0 -1px 0 rgba($white, .5);
226
+
227
+ &:focus {
228
+ box-shadow: inset 0 -2px 0 $white;
229
+ }
230
+
231
+ &::placeholder {
232
+ color: rgba($white, .5);
233
+ }
234
+ }
235
+ }
236
+ }
237
+
238
+ // Buttons =====================================================================
239
+
240
+ @include btn(primary, $primary, $white);
241
+ @include btn(secondary, $secondary, $gray-500);
242
+ @include btn(success, $success, $white);
243
+ @include btn(info, $info, $white);
244
+ @include btn(warning, $warning, $white);
245
+ @include btn(danger, $danger, $white);
246
+ @include btn(dark, $dark, $white);
247
+ @include btn(light, $light, $white);
248
+
249
+ .btn {
250
+ text-transform: uppercase;
251
+ border: none;
252
+ box-shadow: $btn-box-shadow;
253
+ transition: color .4s, background-color .4s, border-color .4s, box-shadow .4s;
254
+
255
+ &-link {
256
+ box-shadow: none;
257
+ color: $link-color;
258
+
259
+ &:hover,
260
+ &:focus {
261
+ box-shadow: none;
262
+ color: $link-hover-color;
263
+ text-decoration: $link-hover-decoration;
264
+ }
265
+
266
+ &.disabled, // Although btn-link is intended for buttons, which want to look like link, I include here a.disable for the sake of consistency
267
+ &[disabled],
268
+ fieldset[disabled] & {
269
+ &:hover,
270
+ &:active:hover {
271
+ color: $btn-link-disabled-color;
272
+ text-decoration: none;
273
+ }
274
+ }
275
+ }
276
+
277
+ &-secondary {
278
+ &.disabled,
279
+ &[disabled],
280
+ fieldset[disabled] & {
281
+ background-color: rgba($black, .1) !important;
282
+ color: rgba($black, .4) !important;
283
+ opacity: 1;
284
+
285
+ &:hover,
286
+ &:focus {
287
+ background-color: rgba($black, .1);
288
+ color: $dark !important;
289
+ }
290
+ }
291
+ }
292
+
293
+ &-outline-secondary {
294
+ border-color: $gray-200 !important;
295
+ color: $gray-300 !important;
296
+
297
+ &:hover,
298
+ &:focus {
299
+ color: $dark !important;
300
+ }
301
+ }
302
+
303
+ &-warning {
304
+ color: $white !important;
305
+ }
306
+ }
307
+
308
+ .btn-group {
309
+ .btn + .btn,
310
+ .btn + .btn-group,
311
+ .btn-group + .btn,
312
+ .btn-group + .btn-group {
313
+ margin-left: 0;
314
+ }
315
+
316
+ &-vertical {
317
+ > .btn + .btn,
318
+ > .btn + .btn-group,
319
+ > .btn-group + .btn,
320
+ > .btn-group + .btn-group {
321
+ margin-top: 0;
322
+ }
323
+ }
324
+
325
+ .btn + .btn,
326
+ .btn + .btn-group > .dropdown-toggle {
327
+ box-shadow: 1px 1px 4px rgba($black, .4);
328
+ }
329
+
330
+ .btn:not(:disabled):not(.disabled):active,
331
+ .btn:not(:disabled):not(.disabled).active {
332
+ box-shadow: $btn-box-shadow;
333
+ }
334
+ }
335
+
336
+ .border-secondary {
337
+ border: 1px solid mix($white, $black, 86.7%) !important;
338
+ }
339
+
340
+ // Typography ==================================================================
341
+
342
+ body,
343
+ input,
344
+ button {
345
+ -webkit-font-smoothing: antialiased;
346
+ letter-spacing: .1px;
347
+ }
348
+
349
+ p {
350
+ margin: 0 0 1em;
351
+ }
352
+
353
+ .text-secondary {
354
+ color: $gray-500 !important;
355
+ }
356
+
357
+ // Tables ======================================================================
358
+
359
+ .table-hover {
360
+ > tbody > tr,
361
+ > tbody > tr > th,
362
+ > tbody > tr > td {
363
+ transition: background-color .2s, color .2s;
364
+ }
365
+ }
366
+
367
+ .thead-inverse th {
368
+ background-color: $primary;
369
+ color: $white;
370
+ }
371
+
372
+ // Forms =======================================================================
373
+
374
+ .col-form-label {
375
+ font-size: 16px;
376
+
377
+ &-sm {
378
+ font-size: $font-size-sm;
379
+ }
380
+
381
+ &-lg {
382
+ font-size: $font-size-lg;
383
+ }
384
+ }
385
+
386
+ textarea,
387
+ textarea.form-control,
388
+ input.form-control,
389
+ input[type="text"],
390
+ input[type="password"],
391
+ input[type="email"],
392
+ input[type="number"],
393
+ [type="text"].form-control,
394
+ [type="password"].form-control,
395
+ [type="email"].form-control,
396
+ [type="tel"].form-control,
397
+ [contenteditable].form-control {
398
+ box-shadow: $input-box-shadow;
399
+ transition: box-shadow .2s;
400
+
401
+ &:focus {
402
+ box-shadow: $input-focus-box-shadow;
403
+ }
404
+
405
+ &[disabled],
406
+ &[readonly] {
407
+ box-shadow: none;
408
+ border-bottom: 1px dotted mix($white, $black, 86.7%);
409
+ }
410
+
411
+ &[disabled],
412
+ &[disabled]::placeholder {
413
+ color: mix($white, $black, 86.7%);
414
+ }
415
+
416
+ &::-ms-clear {
417
+ display: none;
418
+ }
419
+ }
420
+
421
+ select,
422
+ select.form-control {
423
+ appearance: none;
424
+ padding: .5rem 0;
425
+ background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-600}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
426
+ background-size: 8px 4px;
427
+ background-repeat: no-repeat;
428
+ background-position: right center;
429
+ box-shadow: $input-box-shadow;
430
+
431
+ &::-ms-expand {
432
+ display: none;
433
+ }
434
+
435
+ &.input {
436
+ &-sm {
437
+ font-size: $font-size-sm;
438
+ }
439
+
440
+ &-lg {
441
+ font-size: $font-size-lg;
442
+ }
443
+ }
444
+
445
+ &:focus {
446
+ box-shadow: $input-focus-box-shadow;
447
+ background-image: escape-svg(url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3e%3cpolygon fill='#{$gray-900}' points='8 0 4 4 0 0'/%3e%3c/svg%3e%0a"));
448
+ }
449
+
450
+ &[multiple] {
451
+ background: none;
452
+ }
453
+ }
454
+
455
+ .custom-control {
456
+ min-height: 1.5rem;
457
+ }
458
+
459
+ .custom-control-label {
460
+ &::before {
461
+ top: 0;
462
+ border: 2px solid $gray-400;
463
+ box-shadow: none;
464
+ }
465
+ &::after {
466
+ top: 0;
467
+ }
468
+
469
+ .custom-control-input:checked ~ &::before {
470
+ border-color: $primary;
471
+ }
472
+ }
473
+
474
+ .custom-checkbox .custom-control-input:checked {
475
+ ~ .custom-control-label::before {
476
+ background-image: none;
477
+ }
478
+
479
+ ~ .custom-control-label::after {
480
+ transform: scale(1.5);
481
+ }
482
+ }
483
+
484
+ .custom-radio .custom-control-input {
485
+ ~ .custom-control-label::after {
486
+ transform: scale(.75);
487
+ }
488
+
489
+ &:checked {
490
+ ~ .custom-control-label::before {
491
+ background-color: $white;
492
+ background-image: none;
493
+ transition: border-color .24s;
494
+ }
495
+ ~ .custom-control-label::after {
496
+ transform: scale(1.125);
497
+ transition: background-image .24s, transform .24s;
498
+ }
499
+ }
500
+ }
501
+
502
+ .custom-switch {
503
+ .custom-control-label::before {
504
+ top: .125rem;
505
+ height: .875rem;
506
+ background-color: $gray-500;
507
+ border: none;
508
+ }
509
+
510
+ .custom-control-input:disabled ~ .custom-control-label {
511
+ opacity: .7;
512
+ }
513
+
514
+ .custom-control-input:disabled ~ .custom-control-label::before {
515
+ background-color: $gray-500;
516
+ }
517
+
518
+ .custom-control-label::after {
519
+ background-color: $white;
520
+ box-shadow: 0 1px 4px rgba($black, .3);
521
+ }
522
+
523
+ .custom-control-input:checked ~ .custom-control-label::before {
524
+ opacity: .38;
525
+ }
526
+
527
+ .custom-control-input:checked ~ .custom-control-label::after {
528
+ background-color: $primary;
529
+ }
530
+
531
+ .custom-control-input:hover:not(:disabled) ~ .custom-control-label::after {
532
+ box-shadow: 0 1px 4px rgba($black, .3), 0 0 0 9px rgba($black, .05);
533
+ }
534
+
535
+ .custom-control-input:focus:not(:disabled) ~ .custom-control-label::after {
536
+ box-shadow: 0 1px 4px rgba($black, .3), 0 0 0 9px rgba($black, .09);
537
+ }
538
+
539
+ .custom-control-input:active:not(:disabled) ~ .custom-control-label::after {
540
+ box-shadow: 0 1px 4px rgba($black, .3), 0 0 0 9px rgba($black, .16);
541
+ }
542
+
543
+ .custom-control-input:hover:checked:not(:disabled) ~ .custom-control-label::after {
544
+ box-shadow: 0 1px 4px rgba($black, .3), 0 0 0 9px rgba(33, 150, 243, .05);
545
+ }
546
+
547
+ .custom-control-input:focus:checked:not(:disabled) ~ .custom-control-label::after {
548
+ box-shadow: 0 1px 4px rgba($black, .3), 0 0 0 9px rgba(33, 150, 243, .09);
549
+ }
550
+
551
+ .custom-control-input:active:checked:not(:disabled) ~ .custom-control-label::after {
552
+ box-shadow: 0 1px 4px rgba($black, .3), 0 0 0 9px rgba(33, 150, 243, .16);
553
+ }
554
+
555
+ .custom-control-input:active:not(:checked) ~ .custom-control-label::before {
556
+ background-color: $gray-500;
557
+ }
558
+ }
559
+
560
+ .has-warning {
561
+ input:not([type="checkbox"]),
562
+ .form-control,
563
+ input.form-control[readonly],
564
+ input[type="text"][readonly],
565
+ [type="text"].form-control[readonly],
566
+ input:not([type="checkbox"]):focus,
567
+ .form-control:focus {
568
+ border-bottom: none;
569
+ box-shadow: inset 0 -2px 0 $warning;
570
+ }
571
+ }
572
+
573
+ .has-danger {
574
+ input:not([type="checkbox"]),
575
+ .form-control,
576
+ input.form-control[readonly],
577
+ input[type="text"][readonly],
578
+ [type="text"].form-control[readonly],
579
+ input:not([type="checkbox"]):focus,
580
+ .form-control:focus {
581
+ border-bottom: none;
582
+ box-shadow: inset 0 -2px 0 $danger;
583
+ }
584
+ }
585
+
586
+ .has-success {
587
+ input:not([type="checkbox"]),
588
+ .form-control,
589
+ input.form-control[readonly],
590
+ input[type="text"][readonly],
591
+ [type="text"].form-control[readonly],
592
+ input:not([type="checkbox"]):focus,
593
+ .form-control:focus {
594
+ border-bottom: none;
595
+ box-shadow: inset 0 -2px 0 $success;
596
+ }
597
+ }
598
+
599
+ // Remove the Bootstrap feedback styles for input addons
600
+ .input-group-addon {
601
+ .has-warning &,
602
+ .has-danger &,
603
+ .has-success & {
604
+ color: $input-color;
605
+ border-color: $input-group-addon-border-color;
606
+ background-color: $input-group-addon-bg;
607
+ }
608
+ }
609
+
610
+ .input-group {
611
+ > .input-group-prepend > .input-group-text {
612
+ padding-right: .25rem;
613
+ }
614
+
615
+ > .input-group-append > .input-group-text {
616
+ padding-left: .25rem;
617
+ }
618
+
619
+ .form-control {
620
+ padding-left: .25rem;
621
+ padding-right: .25rem;
622
+ }
623
+ }
624
+
625
+ .input-group-sm {
626
+ > .input-group-prepend > .btn,
627
+ > .input-group-append > .btn {
628
+ padding: $input-btn-padding-y-sm $input-btn-padding-x-sm;
629
+ }
630
+
631
+ > .input-group-prepend > .input-group-text {
632
+ padding: 0 $input-btn-padding-x-sm $input-btn-padding-y-sm $input-btn-padding-x-sm;
633
+ }
634
+
635
+ > .input-group-append > .input-group-text {
636
+ padding: 0 $input-btn-padding-x-sm $input-btn-padding-y-sm $input-btn-padding-x-sm;
637
+ }
638
+
639
+ > .input-group-prepend > .btn {
640
+ border-top-left-radius: $btn-border-radius-sm;
641
+ border-bottom-left-radius: $btn-border-radius-sm;
642
+ }
643
+
644
+ > .input-group-append > .btn {
645
+ border-top-right-radius: $btn-border-radius-sm;
646
+ border-bottom-right-radius: $btn-border-radius-sm;
647
+ }
648
+ }
649
+
650
+ .input-group-lg {
651
+ > .input-group-prepend > .btn,
652
+ > .input-group-append > .btn {
653
+ padding: $input-btn-padding-y-lg $input-btn-padding-x-lg;
654
+ }
655
+
656
+ > .input-group-prepend > .input-group-text {
657
+ padding: $input-btn-padding-y-lg $input-btn-padding-x-lg $input-btn-padding-y-lg 0;
658
+ }
659
+
660
+ > .input-group-append > .input-group-text {
661
+ padding: $input-btn-padding-y-lg 0 $input-btn-padding-y-lg $input-btn-padding-x-lg;
662
+ }
663
+
664
+ > .input-group-prepend > .btn {
665
+ border-top-left-radius: $btn-border-radius-lg;
666
+ border-bottom-left-radius: $btn-border-radius-lg;
667
+ }
668
+
669
+ > .input-group-append > .btn {
670
+ border-top-right-radius: $btn-border-radius-lg;
671
+ border-bottom-right-radius: $btn-border-radius-lg;
672
+ }
673
+ }
674
+
675
+ .form-group-lg {
676
+ select,
677
+ select.form-control {
678
+ line-height: 1.5;
679
+ }
680
+ }
681
+
682
+ // Navs ========================================================================
683
+
684
+ .nav-tabs {
685
+ .nav-item + .nav-item {
686
+ margin-left: 0;
687
+ }
688
+
689
+ .nav-link,
690
+ .nav-link:focus {
691
+ margin-right: 0;
692
+ background-color: transparent;
693
+ border: none;
694
+ color: $body-color;
695
+ box-shadow: inset 0 -1px 0 mix($white, $black, 86.7%);
696
+ transition: color .2s, box-shadow .2s;
697
+
698
+ &:hover {
699
+ background-color: transparent;
700
+ box-shadow: inset 0 -2px 0 $primary;
701
+ color: $primary;
702
+ }
703
+ }
704
+
705
+ .nav-link.active,
706
+ .nav-link.active:focus {
707
+ border: none;
708
+ box-shadow: inset 0 -2px 0 $primary;
709
+ color: $primary;
710
+
711
+ &:hover {
712
+ border: none;
713
+ color: $primary;
714
+ }
715
+ }
716
+
717
+ .nav-link.disabled {
718
+ box-shadow: inset 0 -1px 0 mix($white, $black, 86.7%);
719
+ }
720
+
721
+ &.nav-justified {
722
+ .nav-link,
723
+ .nav-link:hover,
724
+ .nav-link:focus,
725
+ .nav-link.active,
726
+ .nav-link.active:hover,
727
+ .nav-link.active:focus {
728
+ border: none;
729
+ }
730
+ }
731
+
732
+ .dropdown-menu {
733
+ margin-top: 0;
734
+ }
735
+ }
736
+
737
+ .dropdown-menu {
738
+ margin-top: 0;
739
+ border: none;
740
+ box-shadow: 0 1px 4px rgba($black, .3);
741
+ }
742
+
743
+ // Indicators ==================================================================
744
+
745
+ .alert {
746
+ padding-right: 2.5rem !important;
747
+ border: none !important;
748
+ color: $white !important;
749
+
750
+ &,
751
+ h1,
752
+ h2,
753
+ h3,
754
+ h4,
755
+ h5,
756
+ h6 {
757
+ color: $white !important;
758
+ margin-top: 0;
759
+ }
760
+
761
+ @each $color, $value in $theme-colors {
762
+ &-#{$color} {
763
+ @if $enable-gradients {
764
+ background: $value linear-gradient(180deg, mix($body-bg, $value, 15%), $value) repeat-x !important;
765
+ } @else {
766
+ background-color: $value;
767
+ }
768
+ }
769
+ }
770
+
771
+ a:not(.btn),
772
+ .alert-link {
773
+ color: $white;
774
+ font-weight: 700;
775
+ }
776
+
777
+ .close {
778
+ color: $white !important;
779
+ }
780
+
781
+ &-secondary,
782
+ &-light {
783
+ &,
784
+ a:not(.btn),
785
+ .alert-link {
786
+ color: $body-color !important;
787
+ }
788
+ }
789
+ }
790
+
791
+ .badge {
792
+ &-secondary {
793
+ background-color: $gray-500 !important;
794
+ color: $white !important;
795
+ }
796
+
797
+ &-light {
798
+ background-color: $gray-200 !important;
799
+ }
800
+
801
+ &-warning {
802
+ color: $white !important;
803
+ }
804
+ }
805
+
806
+ .tag {
807
+ padding: 4px 6px;
808
+ }
809
+
810
+ // Containers ==================================================================
811
+
812
+ .close {
813
+ line-height: .5 !important;
814
+ opacity: .6 !important;
815
+ transition: opacity .2s !important;
816
+
817
+ &:hover {
818
+ opacity: 1 !important;
819
+ }
820
+ }
821
+
822
+ .card {
823
+ box-shadow: 0 1px 4px rgba($black, .4);
824
+
825
+ &.border-primary,
826
+ &.border-secondary,
827
+ &.border-success,
828
+ &.border-info,
829
+ &.border-warning,
830
+ &.border-danger,
831
+ &.border-light,
832
+ &.border-dark {
833
+ border-width: 1px;
834
+ }
835
+ }
836
+
837
+ .alert-dismissible {
838
+ .close {
839
+ padding: .5rem .75rem !important;
840
+ }
841
+ }
842
+
843
+ .list-group {
844
+ &-item-action.active {
845
+ h1,
846
+ h2,
847
+ h3,
848
+ h4,
849
+ h5,
850
+ h6 {
851
+ color: $white;
852
+ }
853
+ }
854
+ }
855
+
856
+ .modal-content {
857
+ border-radius: .2rem;
858
+ box-shadow: 0 6px 36px rgba($black, .3);
859
+ }
860
+
861
+ .popover {
862
+ border: none;
863
+ box-shadow: 0 1px 4px rgba($black, .3);
864
+ }
865
+
866
+ .carousel {
867
+ &-caption {
868
+ h1,
869
+ h2,
870
+ h3,
871
+ h4,
872
+ h5,
873
+ h6 {
874
+ color: inherit;
875
+ }
876
+ }
877
+ }
878
+
879
+ .card.bg-primary{
880
+ color: $white;
881
+ }
882
+
883
+ .card.border-secondary {
884
+ color: $danger;
885
+ }
886
+
887
+ .card.border-secondary.text-secondary {
888
+ color: $dark !important;
889
+ }