chulapa-jekyll 1.0.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 (204) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +27 -0
  3. data/LICENSE +21 -0
  4. data/README.md +126 -0
  5. data/_includes/components/author.html +40 -0
  6. data/_includes/components/breadcrumbdatesocial.html +63 -0
  7. data/_includes/components/categories.html +15 -0
  8. data/_includes/components/disqus.html +24 -0
  9. data/_includes/components/headers.html +124 -0
  10. data/_includes/components/indexcards.html +48 -0
  11. data/_includes/components/navbeforeafter.html +22 -0
  12. data/_includes/components/tags.html +15 -0
  13. data/_includes/components/toc.html +112 -0
  14. data/_includes/custom/custom_bottomscripts.html +5 -0
  15. data/_includes/custom/custom_head.html +8 -0
  16. data/_includes/custom/custom_head_before_css.html +5 -0
  17. data/_includes/custom/giscus.html +1 -0
  18. data/_includes/footer.html +129 -0
  19. data/_includes/head.html +309 -0
  20. data/_includes/navbar.html +205 -0
  21. data/_includes/search/algolia.html +3 -0
  22. data/_includes/search/google.html +11 -0
  23. data/_includes/search/lunr.html +7 -0
  24. data/_includes/snippets/bootstrapdemo.html +1390 -0
  25. data/_includes/snippets/carousel.html +61 -0
  26. data/_includes/snippets/datetranslate.html +48 -0
  27. data/_includes/snippets/masonry.html +23 -0
  28. data/_includes/snippets/video.html +26 -0
  29. data/_includes/snippets/youtube.html +6 -0
  30. data/_layouts/archive.html +82 -0
  31. data/_layouts/cloudcategory.html +89 -0
  32. data/_layouts/cloudtag.html +86 -0
  33. data/_layouts/compress.html +10 -0
  34. data/_layouts/default.html +39 -0
  35. data/_layouts/indexcategory.html +36 -0
  36. data/_layouts/landingpage.html +51 -0
  37. data/_layouts/minimal.html +21 -0
  38. data/_layouts/search.html +59 -0
  39. data/_sass/bootstrap/_alert.scss +51 -0
  40. data/_sass/bootstrap/_badge.scss +54 -0
  41. data/_sass/bootstrap/_breadcrumb.scss +44 -0
  42. data/_sass/bootstrap/_button-group.scss +163 -0
  43. data/_sass/bootstrap/_buttons.scss +142 -0
  44. data/_sass/bootstrap/_card.scss +282 -0
  45. data/_sass/bootstrap/_carousel.scss +197 -0
  46. data/_sass/bootstrap/_close.scss +40 -0
  47. data/_sass/bootstrap/_code.scss +48 -0
  48. data/_sass/bootstrap/_custom-forms.scss +522 -0
  49. data/_sass/bootstrap/_dropdown.scss +192 -0
  50. data/_sass/bootstrap/_forms.scss +347 -0
  51. data/_sass/bootstrap/_functions.scss +141 -0
  52. data/_sass/bootstrap/_grid.scss +77 -0
  53. data/_sass/bootstrap/_images.scss +42 -0
  54. data/_sass/bootstrap/_input-group.scss +192 -0
  55. data/_sass/bootstrap/_jumbotron.scss +17 -0
  56. data/_sass/bootstrap/_list-group.scss +154 -0
  57. data/_sass/bootstrap/_media.scss +8 -0
  58. data/_sass/bootstrap/_mixins.scss +47 -0
  59. data/_sass/bootstrap/_modal.scss +241 -0
  60. data/_sass/bootstrap/_nav.scss +121 -0
  61. data/_sass/bootstrap/_navbar.scss +324 -0
  62. data/_sass/bootstrap/_pagination.scss +74 -0
  63. data/_sass/bootstrap/_popover.scss +170 -0
  64. data/_sass/bootstrap/_print.scss +141 -0
  65. data/_sass/bootstrap/_progress.scss +47 -0
  66. data/_sass/bootstrap/_reboot.scss +480 -0
  67. data/_sass/bootstrap/_root.scss +20 -0
  68. data/_sass/bootstrap/_spinners.scss +56 -0
  69. data/_sass/bootstrap/_tables.scss +185 -0
  70. data/_sass/bootstrap/_toasts.scss +44 -0
  71. data/_sass/bootstrap/_tooltip.scss +115 -0
  72. data/_sass/bootstrap/_transitions.scss +20 -0
  73. data/_sass/bootstrap/_type.scss +125 -0
  74. data/_sass/bootstrap/_utilities.scss +18 -0
  75. data/_sass/bootstrap/_variables.scss +1147 -0
  76. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  77. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  78. data/_sass/bootstrap/bootstrap.scss +44 -0
  79. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  80. data/_sass/bootstrap/mixins/_background-variant.scss +23 -0
  81. data/_sass/bootstrap/mixins/_badge.scss +17 -0
  82. data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
  83. data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
  84. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  85. data/_sass/bootstrap/mixins/_buttons.scss +110 -0
  86. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  87. data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
  88. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  89. data/_sass/bootstrap/mixins/_float.scss +14 -0
  90. data/_sass/bootstrap/mixins/_forms.scss +177 -0
  91. data/_sass/bootstrap/mixins/_gradients.scss +45 -0
  92. data/_sass/bootstrap/mixins/_grid-framework.scss +81 -0
  93. data/_sass/bootstrap/mixins/_grid.scss +69 -0
  94. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  95. data/_sass/bootstrap/mixins/_image.scss +36 -0
  96. data/_sass/bootstrap/mixins/_list-group.scss +21 -0
  97. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  98. data/_sass/bootstrap/mixins/_nav-divider.scss +11 -0
  99. data/_sass/bootstrap/mixins/_pagination.scss +22 -0
  100. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  101. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  102. data/_sass/bootstrap/mixins/_screen-reader.scss +34 -0
  103. data/_sass/bootstrap/mixins/_size.scss +7 -0
  104. data/_sass/bootstrap/mixins/_table-row.scss +39 -0
  105. data/_sass/bootstrap/mixins/_text-emphasis.scss +17 -0
  106. data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
  107. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  108. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  109. data/_sass/bootstrap/mixins/_visibility.scss +8 -0
  110. data/_sass/bootstrap/utilities/_align.scss +8 -0
  111. data/_sass/bootstrap/utilities/_background.scss +19 -0
  112. data/_sass/bootstrap/utilities/_borders.scss +75 -0
  113. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  114. data/_sass/bootstrap/utilities/_display.scss +26 -0
  115. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  116. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  117. data/_sass/bootstrap/utilities/_float.scss +11 -0
  118. data/_sass/bootstrap/utilities/_interactions.scss +5 -0
  119. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  120. data/_sass/bootstrap/utilities/_position.scss +32 -0
  121. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  122. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  123. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  124. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  125. data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
  126. data/_sass/bootstrap/utilities/_text.scss +71 -0
  127. data/_sass/bootstrap/utilities/_visibility.scss +13 -0
  128. data/_sass/bootstrap/vendor/_rfs.scss +204 -0
  129. data/_sass/bootstrapv5-migration.scss +79 -0
  130. data/_sass/chulapa-classes.scss +844 -0
  131. data/_sass/chulapa-master.scss +11 -0
  132. data/_sass/chulapa-misc.scss +105 -0
  133. data/_sass/chulapa-mixins.scss +77 -0
  134. data/_sass/chulapa-vars.scss +48 -0
  135. data/_sass/highlight/README.md +23 -0
  136. data/_sass/highlight/UNLICENSE.txt +24 -0
  137. data/_sass/highlight/autumn.scss +58 -0
  138. data/_sass/highlight/borland.scss +46 -0
  139. data/_sass/highlight/bw.scss +34 -0
  140. data/_sass/highlight/colorful.scss +61 -0
  141. data/_sass/highlight/cran.scss +169 -0
  142. data/_sass/highlight/default.scss +61 -0
  143. data/_sass/highlight/dracula.scss +169 -0
  144. data/_sass/highlight/emacs.scss +61 -0
  145. data/_sass/highlight/friendly.scss +61 -0
  146. data/_sass/highlight/fruity.scss +70 -0
  147. data/_sass/highlight/github.scss +61 -0
  148. data/_sass/highlight/gruvbox.light.scss +84 -0
  149. data/_sass/highlight/manni.scss +61 -0
  150. data/_sass/highlight/monokai.scss +65 -0
  151. data/_sass/highlight/murphy.scss +61 -0
  152. data/_sass/highlight/native.scss +70 -0
  153. data/_sass/highlight/pastie.scss +60 -0
  154. data/_sass/highlight/perldoc.scss +58 -0
  155. data/_sass/highlight/skeletor.scss +140 -0
  156. data/_sass/highlight/tango.scss +69 -0
  157. data/_sass/highlight/thankful_eyes.scss +173 -0
  158. data/_sass/highlight/trac.scss +59 -0
  159. data/_sass/highlight/vim.scss +70 -0
  160. data/_sass/highlight/vs.scss +33 -0
  161. data/_sass/highlight/zenburn.scss +136 -0
  162. data/_sass/reset-algolia.scss +24 -0
  163. data/_sass/skins/academia.scss +26 -0
  164. data/_sass/skins/auto.scss +26 -0
  165. data/_sass/skins/chulapa.scss +52 -0
  166. data/_sass/skins/deeply.scss +89 -0
  167. data/_sass/skins/graymor.scss +26 -0
  168. data/_sass/skins/hootstrap.scss +17 -0
  169. data/_sass/skins/journal.scss +142 -0
  170. data/_sass/skins/lux.scss +377 -0
  171. data/_sass/skins/lymcha.scss +14 -0
  172. data/_sass/skins/minty.scss +165 -0
  173. data/_sass/skins/none.scss +2 -0
  174. data/_sass/skins/pear.scss +21 -0
  175. data/_sass/skins/preptor.scss +19 -0
  176. data/_sass/skins/sketchy.scss +745 -0
  177. data/_sass/skins/sunset.scss +14 -0
  178. data/_sass/skins/twitter-dim.scss +30 -0
  179. data/_sass/skins/twitter-lights-out.scss +31 -0
  180. data/_sass/skins/twitter.scss +30 -0
  181. data/_sass/skins/universal.scss +24 -0
  182. data/_sass/skins/wandoo.scss +15 -0
  183. data/assets/atom.xml +72 -0
  184. data/assets/css/custom.scss +4 -0
  185. data/assets/css/highlighter.scss +5 -0
  186. data/assets/css/main.scss +35 -0
  187. data/assets/fonts/Chulapa/Chulapa-Bold.otf +0 -0
  188. data/assets/fonts/Chulapa/Chulapa-Bold_v2.1.otf +0 -0
  189. data/assets/fonts/Chulapa/Chulapa-Bold_v2.2.otf +0 -0
  190. data/assets/fonts/Chulapa/Chulapa-Bold_v2.otf +0 -0
  191. data/assets/fonts/Chulapa/Chulapa-Bold_vmod.otf +0 -0
  192. data/assets/fonts/Chulapa/Chulapa-Light.otf +0 -0
  193. data/assets/fonts/Chulapa/Chulapa-Regular.otf +0 -0
  194. data/assets/fonts/Chulapa/LICENCIA DE USO.txt +2 -0
  195. data/assets/fonts/Ferpal/Ferpal-Regular.otf +0 -0
  196. data/assets/js/algolia/algolia-search.js +148 -0
  197. data/assets/js/ch_ytdefer/ch_ytdefer.js +81 -0
  198. data/assets/js/ch_ytdefer/ch_ytdefer.min.js +1 -0
  199. data/assets/js/clipboardrouge.js +95 -0
  200. data/assets/js/google/google-search.js +24 -0
  201. data/assets/js/lunr/lunr-search.js +122 -0
  202. data/assets/js/lunr/lunr-store.js +35 -0
  203. data/assets/rss.xml +65 -0
  204. metadata +356 -0
@@ -0,0 +1,522 @@
1
+ // Embedded icons from Open Iconic.
2
+ // Released under MIT and copyright 2014 Waybury.
3
+ // https://useiconic.com/open
4
+
5
+
6
+ // Checkboxes and radios
7
+ //
8
+ // Base class takes care of all the key behavioral aspects.
9
+
10
+ .custom-control {
11
+ position: relative;
12
+ display: block;
13
+ min-height: $font-size-base * $line-height-base;
14
+ padding-left: $custom-control-gutter + $custom-control-indicator-size;
15
+ }
16
+
17
+ .custom-control-inline {
18
+ display: inline-flex;
19
+ margin-right: $custom-control-spacer-x;
20
+ }
21
+
22
+ .custom-control-input {
23
+ position: absolute;
24
+ left: 0;
25
+ z-index: -1; // Put the input behind the label so it doesn't overlay text
26
+ width: $custom-control-indicator-size;
27
+ height: ($font-size-base * $line-height-base + $custom-control-indicator-size) / 2;
28
+ opacity: 0;
29
+
30
+ &:checked ~ .custom-control-label::before {
31
+ color: $custom-control-indicator-checked-color;
32
+ border-color: $custom-control-indicator-checked-border-color;
33
+ @include gradient-bg($custom-control-indicator-checked-bg);
34
+ @include box-shadow($custom-control-indicator-checked-box-shadow);
35
+ }
36
+
37
+ &:focus ~ .custom-control-label::before {
38
+ // the mixin is not used here to make sure there is feedback
39
+ @if $enable-shadows {
40
+ box-shadow: $input-box-shadow, $input-focus-box-shadow;
41
+ } @else {
42
+ box-shadow: $custom-control-indicator-focus-box-shadow;
43
+ }
44
+ }
45
+
46
+ &:focus:not(:checked) ~ .custom-control-label::before {
47
+ border-color: $custom-control-indicator-focus-border-color;
48
+ }
49
+
50
+ &:not(:disabled):active ~ .custom-control-label::before {
51
+ color: $custom-control-indicator-active-color;
52
+ background-color: $custom-control-indicator-active-bg;
53
+ border-color: $custom-control-indicator-active-border-color;
54
+ @include box-shadow($custom-control-indicator-active-box-shadow);
55
+ }
56
+
57
+ // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
58
+ &[disabled],
59
+ &:disabled {
60
+ ~ .custom-control-label {
61
+ color: $custom-control-label-disabled-color;
62
+
63
+ &::before {
64
+ background-color: $custom-control-indicator-disabled-bg;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ // Custom control indicators
71
+ //
72
+ // Build the custom controls out of pseudo-elements.
73
+
74
+ .custom-control-label {
75
+ position: relative;
76
+ margin-bottom: 0;
77
+ color: $custom-control-label-color;
78
+ vertical-align: top;
79
+ cursor: $custom-control-cursor;
80
+
81
+ // Background-color and (when enabled) gradient
82
+ &::before {
83
+ position: absolute;
84
+ top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
85
+ left: -($custom-control-gutter + $custom-control-indicator-size);
86
+ display: block;
87
+ width: $custom-control-indicator-size;
88
+ height: $custom-control-indicator-size;
89
+ pointer-events: none;
90
+ content: "";
91
+ background-color: $custom-control-indicator-bg;
92
+ border: $custom-control-indicator-border-color solid $custom-control-indicator-border-width;
93
+ @include box-shadow($custom-control-indicator-box-shadow);
94
+ }
95
+
96
+ // Foreground (icon)
97
+ &::after {
98
+ position: absolute;
99
+ top: ($font-size-base * $line-height-base - $custom-control-indicator-size) / 2;
100
+ left: -($custom-control-gutter + $custom-control-indicator-size);
101
+ display: block;
102
+ width: $custom-control-indicator-size;
103
+ height: $custom-control-indicator-size;
104
+ content: "";
105
+ background: no-repeat 50% / #{$custom-control-indicator-bg-size};
106
+ }
107
+ }
108
+
109
+
110
+ // Checkboxes
111
+ //
112
+ // Tweak just a few things for checkboxes.
113
+
114
+ .custom-checkbox {
115
+ .custom-control-label::before {
116
+ @include border-radius($custom-checkbox-indicator-border-radius);
117
+ }
118
+
119
+ .custom-control-input:checked ~ .custom-control-label {
120
+ &::after {
121
+ background-image: escape-svg($custom-checkbox-indicator-icon-checked);
122
+ }
123
+ }
124
+
125
+ .custom-control-input:indeterminate ~ .custom-control-label {
126
+ &::before {
127
+ border-color: $custom-checkbox-indicator-indeterminate-border-color;
128
+ @include gradient-bg($custom-checkbox-indicator-indeterminate-bg);
129
+ @include box-shadow($custom-checkbox-indicator-indeterminate-box-shadow);
130
+ }
131
+ &::after {
132
+ background-image: escape-svg($custom-checkbox-indicator-icon-indeterminate);
133
+ }
134
+ }
135
+
136
+ .custom-control-input:disabled {
137
+ &:checked ~ .custom-control-label::before {
138
+ background-color: $custom-control-indicator-checked-disabled-bg;
139
+ }
140
+ &:indeterminate ~ .custom-control-label::before {
141
+ background-color: $custom-control-indicator-checked-disabled-bg;
142
+ }
143
+ }
144
+ }
145
+
146
+ // Radios
147
+ //
148
+ // Tweak just a few things for radios.
149
+
150
+ .custom-radio {
151
+ .custom-control-label::before {
152
+ // stylelint-disable-next-line property-blacklist
153
+ border-radius: $custom-radio-indicator-border-radius;
154
+ }
155
+
156
+ .custom-control-input:checked ~ .custom-control-label {
157
+ &::after {
158
+ background-image: escape-svg($custom-radio-indicator-icon-checked);
159
+ }
160
+ }
161
+
162
+ .custom-control-input:disabled {
163
+ &:checked ~ .custom-control-label::before {
164
+ background-color: $custom-control-indicator-checked-disabled-bg;
165
+ }
166
+ }
167
+ }
168
+
169
+
170
+ // switches
171
+ //
172
+ // Tweak a few things for switches
173
+
174
+ .custom-switch {
175
+ padding-left: $custom-switch-width + $custom-control-gutter;
176
+
177
+ .custom-control-label {
178
+ &::before {
179
+ left: -($custom-switch-width + $custom-control-gutter);
180
+ width: $custom-switch-width;
181
+ pointer-events: all;
182
+ // stylelint-disable-next-line property-blacklist
183
+ border-radius: $custom-switch-indicator-border-radius;
184
+ }
185
+
186
+ &::after {
187
+ top: add(($font-size-base * $line-height-base - $custom-control-indicator-size) / 2, $custom-control-indicator-border-width * 2);
188
+ left: add(-($custom-switch-width + $custom-control-gutter), $custom-control-indicator-border-width * 2);
189
+ width: $custom-switch-indicator-size;
190
+ height: $custom-switch-indicator-size;
191
+ background-color: $custom-control-indicator-border-color;
192
+ // stylelint-disable-next-line property-blacklist
193
+ border-radius: $custom-switch-indicator-border-radius;
194
+ @include transition(transform .15s ease-in-out, $custom-forms-transition);
195
+ }
196
+ }
197
+
198
+ .custom-control-input:checked ~ .custom-control-label {
199
+ &::after {
200
+ background-color: $custom-control-indicator-bg;
201
+ transform: translateX($custom-switch-width - $custom-control-indicator-size);
202
+ }
203
+ }
204
+
205
+ .custom-control-input:disabled {
206
+ &:checked ~ .custom-control-label::before {
207
+ background-color: $custom-control-indicator-checked-disabled-bg;
208
+ }
209
+ }
210
+ }
211
+
212
+
213
+ // Select
214
+ //
215
+ // Replaces the browser default select with a custom one, mostly pulled from
216
+ // https://primer.github.io/.
217
+ //
218
+
219
+ .custom-select {
220
+ display: inline-block;
221
+ width: 100%;
222
+ height: $custom-select-height;
223
+ padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
224
+ font-family: $custom-select-font-family;
225
+ @include font-size($custom-select-font-size);
226
+ font-weight: $custom-select-font-weight;
227
+ line-height: $custom-select-line-height;
228
+ color: $custom-select-color;
229
+ vertical-align: middle;
230
+ background: $custom-select-bg $custom-select-background;
231
+ border: $custom-select-border-width solid $custom-select-border-color;
232
+ @include border-radius($custom-select-border-radius, 0);
233
+ @include box-shadow($custom-select-box-shadow);
234
+ appearance: none;
235
+
236
+ &:focus {
237
+ border-color: $custom-select-focus-border-color;
238
+ outline: 0;
239
+ @if $enable-shadows {
240
+ @include box-shadow($custom-select-box-shadow, $custom-select-focus-box-shadow);
241
+ } @else {
242
+ // Avoid using mixin so we can pass custom focus shadow properly
243
+ box-shadow: $custom-select-focus-box-shadow;
244
+ }
245
+
246
+ &::-ms-value {
247
+ // For visual consistency with other platforms/browsers,
248
+ // suppress the default white text on blue background highlight given to
249
+ // the selected option text when the (still closed) <select> receives focus
250
+ // in IE and (under certain conditions) Edge.
251
+ // See https://github.com/twbs/bootstrap/issues/19398.
252
+ color: $input-color;
253
+ background-color: $input-bg;
254
+ }
255
+ }
256
+
257
+ &[multiple],
258
+ &[size]:not([size="1"]) {
259
+ height: auto;
260
+ padding-right: $custom-select-padding-x;
261
+ background-image: none;
262
+ }
263
+
264
+ &:disabled {
265
+ color: $custom-select-disabled-color;
266
+ background-color: $custom-select-disabled-bg;
267
+ }
268
+
269
+ // Hides the default caret in IE11
270
+ &::-ms-expand {
271
+ display: none;
272
+ }
273
+
274
+ // Remove outline from select box in FF
275
+ &:-moz-focusring {
276
+ color: transparent;
277
+ text-shadow: 0 0 0 $custom-select-color;
278
+ }
279
+ }
280
+
281
+ .custom-select-sm {
282
+ height: $custom-select-height-sm;
283
+ padding-top: $custom-select-padding-y-sm;
284
+ padding-bottom: $custom-select-padding-y-sm;
285
+ padding-left: $custom-select-padding-x-sm;
286
+ @include font-size($custom-select-font-size-sm);
287
+ }
288
+
289
+ .custom-select-lg {
290
+ height: $custom-select-height-lg;
291
+ padding-top: $custom-select-padding-y-lg;
292
+ padding-bottom: $custom-select-padding-y-lg;
293
+ padding-left: $custom-select-padding-x-lg;
294
+ @include font-size($custom-select-font-size-lg);
295
+ }
296
+
297
+
298
+ // File
299
+ //
300
+ // Custom file input.
301
+
302
+ .custom-file {
303
+ position: relative;
304
+ display: inline-block;
305
+ width: 100%;
306
+ height: $custom-file-height;
307
+ margin-bottom: 0;
308
+ }
309
+
310
+ .custom-file-input {
311
+ position: relative;
312
+ z-index: 2;
313
+ width: 100%;
314
+ height: $custom-file-height;
315
+ margin: 0;
316
+ opacity: 0;
317
+
318
+ &:focus ~ .custom-file-label {
319
+ border-color: $custom-file-focus-border-color;
320
+ box-shadow: $custom-file-focus-box-shadow;
321
+ }
322
+
323
+ // Use [disabled] and :disabled to work around https://github.com/twbs/bootstrap/issues/28247
324
+ &[disabled] ~ .custom-file-label,
325
+ &:disabled ~ .custom-file-label {
326
+ background-color: $custom-file-disabled-bg;
327
+ }
328
+
329
+ @each $lang, $value in $custom-file-text {
330
+ &:lang(#{$lang}) ~ .custom-file-label::after {
331
+ content: $value;
332
+ }
333
+ }
334
+
335
+ ~ .custom-file-label[data-browse]::after {
336
+ content: attr(data-browse);
337
+ }
338
+ }
339
+
340
+ .custom-file-label {
341
+ position: absolute;
342
+ top: 0;
343
+ right: 0;
344
+ left: 0;
345
+ z-index: 1;
346
+ height: $custom-file-height;
347
+ padding: $custom-file-padding-y $custom-file-padding-x;
348
+ font-family: $custom-file-font-family;
349
+ font-weight: $custom-file-font-weight;
350
+ line-height: $custom-file-line-height;
351
+ color: $custom-file-color;
352
+ background-color: $custom-file-bg;
353
+ border: $custom-file-border-width solid $custom-file-border-color;
354
+ @include border-radius($custom-file-border-radius);
355
+ @include box-shadow($custom-file-box-shadow);
356
+
357
+ &::after {
358
+ position: absolute;
359
+ top: 0;
360
+ right: 0;
361
+ bottom: 0;
362
+ z-index: 3;
363
+ display: block;
364
+ height: $custom-file-height-inner;
365
+ padding: $custom-file-padding-y $custom-file-padding-x;
366
+ line-height: $custom-file-line-height;
367
+ color: $custom-file-button-color;
368
+ content: "Browse";
369
+ @include gradient-bg($custom-file-button-bg);
370
+ border-left: inherit;
371
+ @include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
372
+ }
373
+ }
374
+
375
+ // Range
376
+ //
377
+ // Style range inputs the same across browsers. Vendor-specific rules for pseudo
378
+ // elements cannot be mixed. As such, there are no shared styles for focus or
379
+ // active states on prefixed selectors.
380
+
381
+ .custom-range {
382
+ width: 100%;
383
+ height: add($custom-range-thumb-height, $custom-range-thumb-focus-box-shadow-width * 2);
384
+ padding: 0; // Need to reset padding
385
+ background-color: transparent;
386
+ appearance: none;
387
+
388
+ &:focus {
389
+ outline: none;
390
+
391
+ // Pseudo-elements must be split across multiple rulesets to have an effect.
392
+ // No box-shadow() mixin for focus accessibility.
393
+ &::-webkit-slider-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
394
+ &::-moz-range-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
395
+ &::-ms-thumb { box-shadow: $custom-range-thumb-focus-box-shadow; }
396
+ }
397
+
398
+ &::-moz-focus-outer {
399
+ border: 0;
400
+ }
401
+
402
+ &::-webkit-slider-thumb {
403
+ width: $custom-range-thumb-width;
404
+ height: $custom-range-thumb-height;
405
+ margin-top: ($custom-range-track-height - $custom-range-thumb-height) / 2; // Webkit specific
406
+ @include gradient-bg($custom-range-thumb-bg);
407
+ border: $custom-range-thumb-border;
408
+ @include border-radius($custom-range-thumb-border-radius);
409
+ @include box-shadow($custom-range-thumb-box-shadow);
410
+ @include transition($custom-forms-transition);
411
+ appearance: none;
412
+
413
+ &:active {
414
+ @include gradient-bg($custom-range-thumb-active-bg);
415
+ }
416
+ }
417
+
418
+ &::-webkit-slider-runnable-track {
419
+ width: $custom-range-track-width;
420
+ height: $custom-range-track-height;
421
+ color: transparent; // Why?
422
+ cursor: $custom-range-track-cursor;
423
+ background-color: $custom-range-track-bg;
424
+ border-color: transparent;
425
+ @include border-radius($custom-range-track-border-radius);
426
+ @include box-shadow($custom-range-track-box-shadow);
427
+ }
428
+
429
+ &::-moz-range-thumb {
430
+ width: $custom-range-thumb-width;
431
+ height: $custom-range-thumb-height;
432
+ @include gradient-bg($custom-range-thumb-bg);
433
+ border: $custom-range-thumb-border;
434
+ @include border-radius($custom-range-thumb-border-radius);
435
+ @include box-shadow($custom-range-thumb-box-shadow);
436
+ @include transition($custom-forms-transition);
437
+ appearance: none;
438
+
439
+ &:active {
440
+ @include gradient-bg($custom-range-thumb-active-bg);
441
+ }
442
+ }
443
+
444
+ &::-moz-range-track {
445
+ width: $custom-range-track-width;
446
+ height: $custom-range-track-height;
447
+ color: transparent;
448
+ cursor: $custom-range-track-cursor;
449
+ background-color: $custom-range-track-bg;
450
+ border-color: transparent; // Firefox specific?
451
+ @include border-radius($custom-range-track-border-radius);
452
+ @include box-shadow($custom-range-track-box-shadow);
453
+ }
454
+
455
+ &::-ms-thumb {
456
+ width: $custom-range-thumb-width;
457
+ height: $custom-range-thumb-height;
458
+ margin-top: 0; // Edge specific
459
+ margin-right: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
460
+ margin-left: $custom-range-thumb-focus-box-shadow-width; // Workaround that overflowed box-shadow is hidden.
461
+ @include gradient-bg($custom-range-thumb-bg);
462
+ border: $custom-range-thumb-border;
463
+ @include border-radius($custom-range-thumb-border-radius);
464
+ @include box-shadow($custom-range-thumb-box-shadow);
465
+ @include transition($custom-forms-transition);
466
+ appearance: none;
467
+
468
+ &:active {
469
+ @include gradient-bg($custom-range-thumb-active-bg);
470
+ }
471
+ }
472
+
473
+ &::-ms-track {
474
+ width: $custom-range-track-width;
475
+ height: $custom-range-track-height;
476
+ color: transparent;
477
+ cursor: $custom-range-track-cursor;
478
+ background-color: transparent;
479
+ border-color: transparent;
480
+ border-width: $custom-range-thumb-height / 2;
481
+ @include box-shadow($custom-range-track-box-shadow);
482
+ }
483
+
484
+ &::-ms-fill-lower {
485
+ background-color: $custom-range-track-bg;
486
+ @include border-radius($custom-range-track-border-radius);
487
+ }
488
+
489
+ &::-ms-fill-upper {
490
+ margin-right: 15px; // arbitrary?
491
+ background-color: $custom-range-track-bg;
492
+ @include border-radius($custom-range-track-border-radius);
493
+ }
494
+
495
+ &:disabled {
496
+ &::-webkit-slider-thumb {
497
+ background-color: $custom-range-thumb-disabled-bg;
498
+ }
499
+
500
+ &::-webkit-slider-runnable-track {
501
+ cursor: default;
502
+ }
503
+
504
+ &::-moz-range-thumb {
505
+ background-color: $custom-range-thumb-disabled-bg;
506
+ }
507
+
508
+ &::-moz-range-track {
509
+ cursor: default;
510
+ }
511
+
512
+ &::-ms-thumb {
513
+ background-color: $custom-range-thumb-disabled-bg;
514
+ }
515
+ }
516
+ }
517
+
518
+ .custom-control-label::before,
519
+ .custom-file-label,
520
+ .custom-select {
521
+ @include transition($custom-forms-transition);
522
+ }
@@ -0,0 +1,192 @@
1
+ // The dropdown wrapper (`<div>`)
2
+ .dropup,
3
+ .dropright,
4
+ .dropdown,
5
+ .dropleft {
6
+ position: relative;
7
+ }
8
+
9
+ .dropdown-toggle {
10
+ white-space: nowrap;
11
+
12
+ // Generate the caret automatically
13
+ @include caret();
14
+ }
15
+
16
+ // The dropdown menu
17
+ .dropdown-menu {
18
+ position: absolute;
19
+ top: 100%;
20
+ left: 0;
21
+ z-index: $zindex-dropdown;
22
+ display: none; // none by default, but block on "open" of the menu
23
+ float: left;
24
+ min-width: $dropdown-min-width;
25
+ padding: $dropdown-padding-y 0;
26
+ margin: $dropdown-spacer 0 0; // override default ul
27
+ @include font-size($dropdown-font-size);
28
+ color: $dropdown-color;
29
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
30
+ list-style: none;
31
+ background-color: $dropdown-bg;
32
+ background-clip: padding-box;
33
+ border: $dropdown-border-width solid $dropdown-border-color;
34
+ @include border-radius($dropdown-border-radius);
35
+ @include box-shadow($dropdown-box-shadow);
36
+ }
37
+
38
+ @each $breakpoint in map-keys($grid-breakpoints) {
39
+ @include media-breakpoint-up($breakpoint) {
40
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
41
+
42
+ .dropdown-menu#{$infix}-left {
43
+ right: auto;
44
+ left: 0;
45
+ }
46
+
47
+ .dropdown-menu#{$infix}-right {
48
+ right: 0;
49
+ left: auto;
50
+ }
51
+ }
52
+ }
53
+
54
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
55
+ // Just add .dropup after the standard .dropdown class and you're set.
56
+ .dropup {
57
+ .dropdown-menu {
58
+ top: auto;
59
+ bottom: 100%;
60
+ margin-top: 0;
61
+ margin-bottom: $dropdown-spacer;
62
+ }
63
+
64
+ .dropdown-toggle {
65
+ @include caret(up);
66
+ }
67
+ }
68
+
69
+ .dropright {
70
+ .dropdown-menu {
71
+ top: 0;
72
+ right: auto;
73
+ left: 100%;
74
+ margin-top: 0;
75
+ margin-left: $dropdown-spacer;
76
+ }
77
+
78
+ .dropdown-toggle {
79
+ @include caret(right);
80
+ &::after {
81
+ vertical-align: 0;
82
+ }
83
+ }
84
+ }
85
+
86
+ .dropleft {
87
+ .dropdown-menu {
88
+ top: 0;
89
+ right: 100%;
90
+ left: auto;
91
+ margin-top: 0;
92
+ margin-right: $dropdown-spacer;
93
+ }
94
+
95
+ .dropdown-toggle {
96
+ @include caret(left);
97
+ &::before {
98
+ vertical-align: 0;
99
+ }
100
+ }
101
+ }
102
+
103
+ // When enabled Popper.js, reset basic dropdown position
104
+ // stylelint-disable-next-line no-duplicate-selectors
105
+ .dropdown-menu {
106
+ &[x-placement^="top"],
107
+ &[x-placement^="right"],
108
+ &[x-placement^="bottom"],
109
+ &[x-placement^="left"] {
110
+ right: auto;
111
+ bottom: auto;
112
+ }
113
+ }
114
+
115
+ // Dividers (basically an `<hr>`) within the dropdown
116
+ .dropdown-divider {
117
+ @include nav-divider($dropdown-divider-bg, $dropdown-divider-margin-y, true);
118
+ }
119
+
120
+ // Links, buttons, and more within the dropdown menu
121
+ //
122
+ // `<button>`-specific styles are denoted with `// For <button>s`
123
+ .dropdown-item {
124
+ display: block;
125
+ width: 100%; // For `<button>`s
126
+ padding: $dropdown-item-padding-y $dropdown-item-padding-x;
127
+ clear: both;
128
+ font-weight: $font-weight-normal;
129
+ color: $dropdown-link-color;
130
+ text-align: inherit; // For `<button>`s
131
+ text-decoration: if($link-decoration == none, null, none);
132
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
133
+ background-color: transparent; // For `<button>`s
134
+ border: 0; // For `<button>`s
135
+
136
+ // Prevent dropdown overflow if there's no padding
137
+ // See https://github.com/twbs/bootstrap/pull/27703
138
+ @if $dropdown-padding-y == 0 {
139
+ &:first-child {
140
+ @include border-top-radius($dropdown-inner-border-radius);
141
+ }
142
+
143
+ &:last-child {
144
+ @include border-bottom-radius($dropdown-inner-border-radius);
145
+ }
146
+ }
147
+
148
+ @include hover-focus() {
149
+ color: $dropdown-link-hover-color;
150
+ text-decoration: none;
151
+ @include gradient-bg($dropdown-link-hover-bg);
152
+ }
153
+
154
+ &.active,
155
+ &:active {
156
+ color: $dropdown-link-active-color;
157
+ text-decoration: none;
158
+ @include gradient-bg($dropdown-link-active-bg);
159
+ }
160
+
161
+ &.disabled,
162
+ &:disabled {
163
+ color: $dropdown-link-disabled-color;
164
+ pointer-events: none;
165
+ background-color: transparent;
166
+ // Remove CSS gradients if they're enabled
167
+ @if $enable-gradients {
168
+ background-image: none;
169
+ }
170
+ }
171
+ }
172
+
173
+ .dropdown-menu.show {
174
+ display: block;
175
+ }
176
+
177
+ // Dropdown section headers
178
+ .dropdown-header {
179
+ display: block;
180
+ padding: $dropdown-header-padding;
181
+ margin-bottom: 0; // for use with heading elements
182
+ @include font-size($font-size-sm);
183
+ color: $dropdown-header-color;
184
+ white-space: nowrap; // as with > li > a
185
+ }
186
+
187
+ // Dropdown text
188
+ .dropdown-item-text {
189
+ display: block;
190
+ padding: $dropdown-item-padding-y $dropdown-item-padding-x;
191
+ color: $dropdown-link-color;
192
+ }