imagen-jekyll-theme 0.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 (166) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +168 -0
  3. data/README.md +176 -0
  4. data/_config.yml +47 -0
  5. data/_data/components.yml +18 -0
  6. data/_data/en.yml +109 -0
  7. data/_data/es.yml +162 -0
  8. data/_data/fixtures/grilla.yml +37 -0
  9. data/_data/forms/subir_imagen.yml +43 -0
  10. data/_data/full_width_components.yml +4 -0
  11. data/_data/layouts/about.yml +155 -0
  12. data/_data/layouts/code_of_conduct.yml +60 -0
  13. data/_data/layouts/imagen.yml +67 -0
  14. data/_data/layouts/license.yml +60 -0
  15. data/_data/layouts/menu.yml +72 -0
  16. data/_data/layouts/post.yml +100 -0
  17. data/_data/layouts/privacy_policy.yml +60 -0
  18. data/_data/layouts/theme.yml +293 -0
  19. data/_data/manifest.json +14535 -0
  20. data/_data/schema.yml +9 -0
  21. data/_data/sutty.yml +6 -0
  22. data/_data/theme.yml +173 -0
  23. data/_includes/boolean.html +38 -0
  24. data/_includes/buttons/button.html +9 -0
  25. data/_includes/buttons/copy.html +28 -0
  26. data/_includes/buttons/generic.html +15 -0
  27. data/_includes/buttons/link.html +14 -0
  28. data/_includes/contact.html +17 -0
  29. data/_includes/content.html +9 -0
  30. data/_includes/descriptor.html +18 -0
  31. data/_includes/device_detector.html +30 -0
  32. data/_includes/email.html +9 -0
  33. data/_includes/embed_responsive.html +16 -0
  34. data/_includes/file.html +43 -0
  35. data/_includes/floating_alert.html +6 -0
  36. data/_includes/footer.html +5 -0
  37. data/_includes/form/boolean.html +1 -0
  38. data/_includes/form/content.html +1 -0
  39. data/_includes/form/email.html +1 -0
  40. data/_includes/form/file.html +1 -0
  41. data/_includes/form/hidden.html +1 -0
  42. data/_includes/form/image.html +1 -0
  43. data/_includes/form/input.html +1 -0
  44. data/_includes/form/markdown_content.html +1 -0
  45. data/_includes/form/number.html +1 -0
  46. data/_includes/form/predefined_array.html +1 -0
  47. data/_includes/form/section.html +1 -0
  48. data/_includes/form/separator.html +1 -0
  49. data/_includes/form/string.html +1 -0
  50. data/_includes/form/submit.html +1 -0
  51. data/_includes/form/tel.html +1 -0
  52. data/_includes/form/text.html +1 -0
  53. data/_includes/form/url.html +1 -0
  54. data/_includes/grilla.html +21 -0
  55. data/_includes/headings/generic.html +14 -0
  56. data/_includes/headings/h1.html +9 -0
  57. data/_includes/headings/h2.html +9 -0
  58. data/_includes/headings/h3.html +9 -0
  59. data/_includes/headings/with_link.html +15 -0
  60. data/_includes/hidden.html +5 -0
  61. data/_includes/image.html +57 -0
  62. data/_includes/imagen.html +13 -0
  63. data/_includes/imagen_enviada.html +6 -0
  64. data/_includes/imagen_enviada_error.html +9 -0
  65. data/_includes/imagen_grilla.html +31 -0
  66. data/_includes/input.html +61 -0
  67. data/_includes/item.html +38 -0
  68. data/_includes/logo.html +12 -0
  69. data/_includes/markdown_content.html +9 -0
  70. data/_includes/menu.html +69 -0
  71. data/_includes/notification.html +5 -0
  72. data/_includes/number.html +9 -0
  73. data/_includes/pack.html +10 -0
  74. data/_includes/password.html +10 -0
  75. data/_includes/picture.html +25 -0
  76. data/_includes/predefined_array.html +47 -0
  77. data/_includes/preload_font.html +1 -0
  78. data/_includes/question_mark_button.html +6 -0
  79. data/_includes/script.html +5 -0
  80. data/_includes/search.html +25 -0
  81. data/_includes/section.html +1 -0
  82. data/_includes/send_message.html +6 -0
  83. data/_includes/separator.html +1 -0
  84. data/_includes/share.html +22 -0
  85. data/_includes/share_box.html +31 -0
  86. data/_includes/stretched_link.html +15 -0
  87. data/_includes/string.html +12 -0
  88. data/_includes/subir_imagen.html +29 -0
  89. data/_includes/submit.html +18 -0
  90. data/_includes/svg/arrow-left.svg +29 -0
  91. data/_includes/svg/check.svg +1 -0
  92. data/_includes/svg/copy-icon.svg +1 -0
  93. data/_includes/svg/done-icon.svg +1 -0
  94. data/_includes/svg/location.svg +13 -0
  95. data/_includes/svg/menu.svg +8 -0
  96. data/_includes/svg/photo.svg +7 -0
  97. data/_includes/svg/signo-pregunta.svg +16 -0
  98. data/_includes/svg/x.svg +3 -0
  99. data/_includes/tel.html +9 -0
  100. data/_includes/text.html +40 -0
  101. data/_includes/theme/blue_button.html +1 -0
  102. data/_includes/theme/button_with_copy.html +1 -0
  103. data/_includes/theme/button_with_link.html +5 -0
  104. data/_includes/theme/buttons.html +33 -0
  105. data/_includes/theme/colors.html +14 -0
  106. data/_includes/theme/content.html +41 -0
  107. data/_includes/theme/descriptor.html +1 -0
  108. data/_includes/theme/embed_responsive.html +10 -0
  109. data/_includes/theme/font_sizes.html +18 -0
  110. data/_includes/theme/footer.html +1 -0
  111. data/_includes/theme/grilla.html +3 -0
  112. data/_includes/theme/imagen.html +8 -0
  113. data/_includes/theme/imagen_enviada.html +5 -0
  114. data/_includes/theme/imagen_enviada_error.html +7 -0
  115. data/_includes/theme/imagen_grilla.html +8 -0
  116. data/_includes/theme/letter_spacing.html +3 -0
  117. data/_includes/theme/menu.html +1 -0
  118. data/_includes/theme/picture.html +5 -0
  119. data/_includes/theme/question.html +2 -0
  120. data/_includes/theme/subir_imagen.html +1 -0
  121. data/_includes/toggler/toggler.html +21 -0
  122. data/_includes/toggler/toggler_label.html +21 -0
  123. data/_includes/toggler/toggler_related.html +23 -0
  124. data/_includes/toggler.html +19 -0
  125. data/_includes/toggler_label.html +22 -0
  126. data/_includes/toggler_related.html +24 -0
  127. data/_includes/url.html +9 -0
  128. data/_layouts/ayuda.html +40 -0
  129. data/_layouts/code_of_conduct.html +45 -0
  130. data/_layouts/default.html +93 -0
  131. data/_layouts/home.html +49 -0
  132. data/_layouts/imagen.html +45 -0
  133. data/_layouts/imagen_enviada.html +17 -0
  134. data/_layouts/imagenes.html +21 -0
  135. data/_layouts/institucional.html +20 -0
  136. data/_layouts/license.html +45 -0
  137. data/_layouts/login.html +26 -0
  138. data/_layouts/page.html +5 -0
  139. data/_layouts/post.html +71 -0
  140. data/_layouts/privacy_policy.html +45 -0
  141. data/_layouts/subir_imagen.html +19 -0
  142. data/_layouts/theme.html +60 -0
  143. data/_sass/accessibility.scss +46 -0
  144. data/_sass/content.scss +28 -0
  145. data/_sass/editor.scss +17 -0
  146. data/_sass/embed.scss +13 -0
  147. data/_sass/floating_alert.scss +48 -0
  148. data/_sass/fonts.scss +36 -0
  149. data/_sass/menu.scss +36 -0
  150. data/_sass/share_box.scss +26 -0
  151. data/_sass/snap.scss +60 -0
  152. data/_sass/toggler.scss +20 -0
  153. data/_sass/utilities.scss +531 -0
  154. data/assets/css/styles.scss +39 -0
  155. data/assets/data/site.json +10 -0
  156. data/assets/fonts/Helvetica.woff2 +0 -0
  157. data/assets/fonts/forkawesome-webfont.woff2 +0 -0
  158. data/assets/fonts/roboto/v27/KFOjCnqEu92Fr1Mu51TzBhc9-subset.woff2 +0 -0
  159. data/assets/fonts/roboto/v27/KFOkCnqEu92Fr1MmgWxP-subset.woff2 +0 -0
  160. data/assets/fonts/roboto/v27/KFOkCnqEu92Fr1Mu52xP-subset.woff2 +0 -0
  161. data/assets/fonts/roboto/v27/KFOlCnqEu92Fr1MmWUlvAw-subset.woff2 +0 -0
  162. data/assets/fonts/roboto/v27/KFOmCnqEu92Fr1Me5Q-subset.woff2 +0 -0
  163. data/assets/js/env.js +8 -0
  164. data/assets/js/pack.5JQIOXYX.js +48 -0
  165. data/assets/js/pack.5JQIOXYX.js.map +7 -0
  166. metadata +544 -0
@@ -0,0 +1,531 @@
1
+ ////
2
+ /// @group Utilidades
3
+ ////
4
+
5
+ /// Crea una propiedad con prefijos de navegador, cuando no es
6
+ /// soportada por estándares, por ejemplo el guionado de texto.
7
+ @mixin vendor-prefix($property, $definition...) {
8
+ @each $prefix in $vendor-prefixes {
9
+ #{$prefix}#{$property}: $definition;
10
+ }
11
+ }
12
+
13
+ /// Los recursos que cargan a demanda muestran el espacio que ocupan.
14
+ [loading="lazy"] {
15
+ background: linear-gradient(215deg, #{$white} 0%, #{$primary} 100%);
16
+ }
17
+
18
+ @each $breakpoint in map-keys($grid-breakpoints) {
19
+ @include media-breakpoint-up($breakpoint) {
20
+ /// Obtiene el sufijo para cada clase responsive usando mixins de
21
+ /// Bootstrap. Valores posibles:
22
+ /// `""` (nada, aplica a todas las resoluciones), `-xs`, `-sm`,
23
+ /// `-md`, `-lg`, `-xl`.
24
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
25
+
26
+ /// Z-Indexes según Bootstrap
27
+ .z-index#{$infix}-dropdown { z-index: $zindex-dropdown !important; }
28
+ .z-index#{$infix}-sticky { z-index: $zindex-sticky !important; }
29
+ .z-index#{$infix}-fixed { z-index: $zindex-fixed !important; }
30
+ .z-index#{$infix}-backdrop { z-index: $zindex-modal-backdrop !important; }
31
+ .z-index#{$infix}-modal { z-index: $zindex-modal !important; }
32
+ .z-index#{$infix}-popover { z-index: $zindex-popover !important; }
33
+ .z-index#{$infix}-tooltip { z-index: $zindex-tooltip !important; }
34
+
35
+ /// Guionado, complemento para .text-justify
36
+ @each $hyphen in $hyphens {
37
+ .hyphens#{$infix}-#{$hyphen} {
38
+ hyphens: $hyphen;
39
+ }
40
+ }
41
+
42
+ /// Grilla en CSS, soporta armar una cantidad de columnas, indicar las
43
+ /// columnas que ocupan los elementos descendientes e incluso
44
+ /// solapamiento.
45
+ ///
46
+ /// @example html
47
+ /// <div class="d-grid grid-cols-5">
48
+ /// <div class="grid-row-1 grid-col-1-to-2"></div>
49
+ /// <div class="grid-row-2 grid-col-2-to-3"></div>
50
+ /// </div>
51
+ .d#{$infix}-grid {
52
+ display: grid !important;
53
+
54
+ @each $spacer, $_ in $spacers {
55
+ &.grid-cols#{$infix}-#{$spacer} {
56
+ grid-template-columns: repeat($spacer, 1fr) !important;
57
+ }
58
+
59
+ & > .grid-row#{$infix}-#{$spacer} {
60
+ grid-row: $spacer !important;
61
+ }
62
+
63
+ & > .grid-col#{$infix}-#{$spacer} {
64
+ grid-column: $spacer !important;
65
+ }
66
+
67
+ @each $spacer_to, $_ in $spacers {
68
+ & > .grid-col#{$infix}-#{$spacer}-to-#{$spacer_to} {
69
+ grid-column: #{$spacer} / #{$spacer_to} !important;
70
+ }
71
+ }
72
+ }
73
+ }
74
+
75
+ /// Ocultar la barra de scroll, útil para sliders horizontales.
76
+ ///
77
+ /// @example html
78
+ /// <div class="no-scrollbar-md"></div>
79
+ .no-scrollbar#{$infix} {
80
+ scrollbar-width: none;
81
+ -webkit-overflow-scrolling: touch;
82
+
83
+ &::-webkit-scrollbar { display: none; }
84
+ }
85
+
86
+ :enabled {
87
+ .show-when-disabled#{$infix} {
88
+ display: none !important;
89
+ }
90
+ }
91
+
92
+ :disabled {
93
+ .hide-when-disabled#{$infix} {
94
+ display: none !important;
95
+ }
96
+ }
97
+
98
+ /// Asigna decoración al texto, pudiendo combinarlas!
99
+ @each $text-decoration in $text-decoration-lines {
100
+ .text-decoration#{$infix}-#{$text-decoration} {
101
+ text-decoration-line: $text-decoration !important;
102
+ }
103
+
104
+ @each $text-decoration-2 in $text-decoration-lines {
105
+ .text-decoration#{$infix}-#{$text-decoration}-#{$text-decoration-2} {
106
+ text-decoration-line: $text-decoration $text-decoration-2 !important;
107
+ }
108
+ }
109
+ }
110
+
111
+ @each $text-decoration in $text-decoration-styles {
112
+ .text-decoration#{$infix}-#{$text-decoration} {
113
+ text-decoration-style: $text-decoration !important;
114
+ }
115
+ }
116
+
117
+ /// Cursores
118
+ @each $cursor in $cursors {
119
+ /// El elemento va a tener un cursor
120
+ ///
121
+ /// @example html
122
+ /// <div class="cursor-pointer"></div>
123
+ .cursor#{$infix}-#{$cursor} {
124
+ cursor: $cursor !important;
125
+ }
126
+ }
127
+
128
+ /// Eventos del cursor
129
+ @each $event in $events {
130
+ /// Habilita o deshabilita recibir eventos al tocar o clickear.
131
+ ///
132
+ /// @example html
133
+ /// <div class="pointer-event-none"></div>
134
+ .pointer-event#{$infix}-#{$event} {
135
+ pointer-events: $event;
136
+ }
137
+ }
138
+
139
+ /// Agrega una transición a cualquier modificación de atributos
140
+ .transition#{$infix} {
141
+ @include transition($transition-base);
142
+ }
143
+
144
+ /// Valores posibles para la propiedad `object-fit`
145
+ @each $object in $objects {
146
+ /// Ajustes de imagen y video con respecto al contenedor
147
+ ///
148
+ /// @example html
149
+ /// <img class="object-cover object-lg-contain"/>
150
+ .fit#{$infix}-#{$object} {
151
+ object-fit: #{$object};
152
+ }
153
+ }
154
+
155
+ /// _Overflow_, qué hacer cuando el contenido sobrepasa los límites del
156
+ /// contenedor.
157
+ /// También puede ser solo dentro de un eje
158
+ @each $overflow in $overflows {
159
+ /// Manejar el contenido sobre cualquier eje
160
+ ///
161
+ /// @example html
162
+ /// <div class="overflow-hidden overflow-scroll-md"></div>
163
+ .overflow#{$infix}-#{$overflow} {
164
+ overflow: $overflow !important;
165
+ }
166
+
167
+ @each $axis in $overflow-axis {
168
+ /// Manejar el contenido sobre un eje particular
169
+ ///
170
+ /// @example html
171
+ /// <div class="overflow-hidden-y overflow-scroll-x"></div>
172
+ .overflow-#{$axis}#{$infix}-#{$overflow} {
173
+ overflow-#{$axis}: $overflow !important;
174
+ }
175
+ }
176
+ }
177
+
178
+ @each $spacer, $length in $spacers {
179
+ /// Border radius
180
+ ///
181
+ /// @example html
182
+ /// <h1 class="f-3"></h1>
183
+ .f#{$infix}-#{$spacer} {
184
+ font-size: $length !important;
185
+
186
+ &,
187
+ & p,
188
+ & li {
189
+ min-height: #{$length * $line-height-base};
190
+ }
191
+ }
192
+
193
+ /// <div class="rounded-3"></div>
194
+ .rounded#{$infix}-#{$spacer} {
195
+ border-radius: $length !important;
196
+ }
197
+
198
+ /// Columnas de texto
199
+ ///
200
+ /// @example html
201
+ /// <div class="text-column-1 text-column-md-3"></div>
202
+ .text-column#{$infix}-#{$spacer} {
203
+ column-count: $spacer;
204
+ }
205
+
206
+ /// Limitar la cantidad de líneas de un bloque de texto,
207
+ /// reemplazando el sobrante por puntos suspensivos. Es útil cuando
208
+ /// el diseño solo pide una cantidad de líneas pero no sabemos cuál
209
+ /// va a ser el largo.
210
+ ///
211
+ /// @example html
212
+ /// <h1 class="line-clamp-1"></h1>
213
+ .line-clamp#{$infix}-#{$spacer} {
214
+ overflow: hidden;
215
+ display: -webkit-box;
216
+ -webkit-line-clamp: $spacer;
217
+ -webkit-box-orient: vertical;
218
+ }
219
+
220
+ @each $direction in $directions {
221
+ /// Ubicación absoluta, usar con position-*
222
+ ///
223
+ /// @example html
224
+ /// <div class="position-absolute top-0 left-3"></div>
225
+ .#{$direction}#{$infix}-#{$spacer} {
226
+ #{$direction}: $length
227
+ }
228
+ }
229
+ }
230
+
231
+ /// Anchos y altos en base a `$sizes` definido por Bootstrap. Para
232
+ /// personalizar los tamaños, modificarlos o agregarlos en `styles.scss`
233
+ ///
234
+ /// @link assets/css/styles.scss
235
+ @each $prop, $abbrev in (width: w, height: h) {
236
+ @each $size, $length in $sizes {
237
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
238
+ .#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; }
239
+ .min-#{$abbrev}#{$infix}-#{$size} { min-#{$prop}: $length !important; }
240
+ .max-#{$abbrev}#{$infix}-#{$size} { max-#{$prop}: $length !important; }
241
+ }
242
+ }
243
+
244
+ /// Tipos de _scroll_ posible
245
+ @each $scroll in $scrolls {
246
+ /// Poder modificar el tipo de _scroll_ de forma _responsive_
247
+ ///
248
+ /// @example html
249
+ /// <div class="scroll-auto scroll-md-smooth"></div>
250
+ .scroll#{$infix}-#{$scroll} {
251
+ scroll-behavior: #{$scroll};
252
+ }
253
+ }
254
+
255
+ /// Bordes. Bootstrap no define bordes _responsive_
256
+ ///
257
+ /// @link node_modules/bootstrap/scss/utilities/_borders.scss
258
+ /// @example html
259
+ /// <div class="border border-md-top-0 border-3"></div>
260
+ .border#{$infix} { border: $border-width solid $border-color !important; }
261
+ .border#{$infix}-0 { border: 0 !important; }
262
+
263
+ @each $direction in $directions {
264
+ .border#{$infix}-#{$direction} { border-#{$direction}: $border-width solid $border-color !important; }
265
+ .border#{$infix}-#{$direction}-0 { border-#{$direction}: 0 !important; }
266
+ }
267
+
268
+ @each $border-width, $length in $border-widths {
269
+ .border#{$infix}-#{$border-width} { border-width: $length !important; }
270
+ }
271
+
272
+ @each $align in $aligns {
273
+ /// Alineación _responsive_
274
+ ///
275
+ /// @example html
276
+ /// <div class="text-center text-md-right"></div>
277
+ .text#{$infix}-#{$align} { text-align: $align !important; }
278
+ }
279
+
280
+ @each $position in $positions {
281
+ /// Posicionamiento
282
+ ///
283
+ /// @example html
284
+ /// <div class="position-relative position-md-absolute"></div>
285
+ .position#{$infix}-#{$position} { position: $position !important; }
286
+ }
287
+
288
+ @each $color, $rgb in $colors {
289
+ /// Colores de fondo. Es raro que usemos versiones _responsive_, pero
290
+ /// no está de más tenerlas.
291
+ ///
292
+ /// @link assets/css/styles.scss
293
+ /// @example html
294
+ /// <div class="background-red"></div>
295
+ .background#{$infix}-#{$color} {
296
+ background-color: var(--#{$color});
297
+
298
+ &:focus {
299
+ background-color: var(--#{$color});
300
+ }
301
+ }
302
+
303
+ /// Color de la decoración del texto
304
+ .text-decoration#{$infix}-#{$color} {
305
+ text-decoration-color: $rgb !important;
306
+ }
307
+
308
+ @each $opacity, $degree in $opacities {
309
+ .o#{$infix}-#{$opacity} {
310
+ opacity: calc(#{$degree} + 100%) !important;
311
+ }
312
+
313
+ .hover-o#{$infix}-#{$opacity} {
314
+ &:hover,
315
+ &:focus,
316
+ &:active {
317
+ opacity: calc(#{$degree} + 100%) !important;
318
+ }
319
+ }
320
+
321
+ /// Color de fondo con transparencia (opacidad)
322
+ ///
323
+ /// @example html
324
+ /// <div class="background-red-t2"></div>
325
+ .background#{$infix}-#{$color}-t#{$opacity} {
326
+ background-color: scale-color($rgb, $alpha: $degree);
327
+ }
328
+
329
+ .hover-background#{$infix}-#{$color}-t#{$opacity} {
330
+ &:hover,
331
+ &:focus,
332
+ &:active {
333
+ background-color: scale-color($rgb, $alpha: $degree);
334
+ }
335
+ }
336
+ }
337
+
338
+ /// Atributos de SVG
339
+ @each $attr in $svg-attributes {
340
+ /// Poder cambiar el relleno o la línea de un SVG
341
+ ///
342
+ /// @example html
343
+ /// <div class="stroke-black fill-red">
344
+ /// <svg/>
345
+ /// </div>
346
+ .#{$attr}#{$infix}-#{$color} {
347
+ svg {
348
+ * {
349
+ #{$attr}: var(--#{$color});
350
+ }
351
+ }
352
+ }
353
+ }
354
+
355
+ /// Barras de _scroll_ de colores
356
+ ///
357
+ /// @example html
358
+ /// <div class="scrollbar-green"></div>
359
+ .scrollbar#{$infix}-#{$color} {
360
+ scrollbar-color: var(--#{$color}) transparent;
361
+ scrollbar-width: thin;
362
+
363
+ &::-webkit-scrollbar {
364
+ width: 5px;
365
+ height: 8px;
366
+ background-color: transparent;
367
+ }
368
+
369
+ &::-webkit-scrollbar-thumb {
370
+ background: var(--#{$color});
371
+ }
372
+ }
373
+
374
+ /// Bordes de color
375
+ ///
376
+ /// @example html
377
+ /// <div class="border-red"></div>
378
+ .border#{$infix}-#{$color} {
379
+ border-color: var(--#{$color}) !important;
380
+ }
381
+
382
+ /// Cambiar el fondo al pasar por encima o hacer foco
383
+ ///
384
+ /// @example html
385
+ /// <div class="background-black background-hover-red"></div>
386
+ .background-hover#{$infix}-#{$color} {
387
+ &:hover,
388
+ &:focus-within {
389
+ background-color: var(--#{$color});
390
+ }
391
+ }
392
+
393
+ /// Cambiar el color al pasar por encima o hacer foco
394
+ ///
395
+ /// @example html
396
+ /// <div class="black hover-red"></div>
397
+ .hover-#{$color} {
398
+ &:hover,
399
+ &:focus-within {
400
+ color: var(--#{$color}) !important;
401
+ }
402
+ }
403
+
404
+ /// Oscurecer un link al pasarle por encima con el cursor, en base a su color original
405
+ ///
406
+ /// @example html
407
+ /// <div class="pink"></div>
408
+ a.#{$color}#{$infix}:hover {
409
+ color: darken($rgb, 15%);
410
+ }
411
+
412
+ /// Cambiar el color, también aplica a la selección de texto.
413
+ ///
414
+ /// @example html
415
+ /// <div class="black hover-red"></div>
416
+ .#{$color}#{$infix} {
417
+ color: var(--#{$color});
418
+
419
+ &:focus {
420
+ color: var(--#{$color});
421
+ }
422
+
423
+ /// Invertir el color en la selección, con el mismo color de fondo y
424
+ /// texto en blanco.
425
+ ::-moz-selection,
426
+ ::selection {
427
+ background: var(--#{$color});
428
+ color: white;
429
+ }
430
+
431
+ /// Si el contenedor tiene un color, también aplica a los bordes de los
432
+ /// elementos de un formulario.
433
+ ///
434
+ /// @todo Evaluar si es realmente necesario hacerlo así, porque no
435
+ /// aplica a las sombras.
436
+ .form-control {
437
+ border-color: var(--#{$color});
438
+ color: var(--#{$color});
439
+ }
440
+
441
+ /// Los `<hr/>` también cambian de color.
442
+ ///
443
+ /// @example html
444
+ /// <div class="red">
445
+ /// <hr/>
446
+ /// </div>
447
+ hr {
448
+ border-color: var(--#{$color});
449
+ }
450
+ }
451
+ }
452
+
453
+ /// Espacio entre caracteres
454
+ ///
455
+ /// @example html
456
+ /// <div class="letter-spacing-2"></div>
457
+ @each $letter-spacing, $value in $letter-spacings {
458
+ .letter-spacing#{$infix}-#{$letter-spacing} {
459
+ letter-spacing: $value !important;
460
+ }
461
+ }
462
+
463
+ .lead#{$infix} {
464
+ font-size: $lead-font-size !important;
465
+ }
466
+
467
+ .display#{$infix}-1 {
468
+ font-size: $display1-size !important;
469
+ }
470
+
471
+ .display#{$infix}-2 {
472
+ font-size: $display2-size !important;
473
+ }
474
+
475
+ .display#{$infix}-3 {
476
+ font-size: $display3-size !important;
477
+ }
478
+
479
+ .display#{$infix}-4 {
480
+ font-size: $display4-size !important;
481
+ }
482
+
483
+ @each $font-size, $value in $font-sizes {
484
+ .f#{$infix}-#{$font-size} {
485
+ font-size: $font-size-base * $value !important;
486
+ }
487
+ }
488
+
489
+ @each $transform-scale, $value in $transform-scales {
490
+ .transform-scale#{$infix}-#{$transform-scale} {
491
+ transform: scale($value) !important;
492
+ }
493
+
494
+ .transform-scale-hover#{$infix}-#{$transform-scale} {
495
+ &:hover, &:focus {
496
+ transform: scale($value) !important;
497
+ }
498
+ }
499
+ }
500
+
501
+ @each $background-size, $value in $background-sizes {
502
+ /// Tamaño de imagen de fondo
503
+ ///
504
+ /// @example html
505
+ /// <div class="background-size-md-cover"></div>
506
+ .background-size#{$infix}-#{$background-size} {
507
+ background-size: $value !important;
508
+ }
509
+ }
510
+
511
+ @each $x in $background-positions-x {
512
+ @each $y in $background-positions-y {
513
+ .background-position#{$infix}-#{$x}-#{$y} {
514
+ background-position: $x $y;
515
+ }
516
+ }
517
+ }
518
+
519
+ @each $background-image, $value in $background-images {
520
+ .background-image#{$infix}-#{$background-image} {
521
+ background-image: url("#{$value}");
522
+ }
523
+ }
524
+
525
+ @each $resize in $resizes {
526
+ .resize#{$infix}-#{$resize} {
527
+ resize: $resize !important;
528
+ }
529
+ }
530
+ }
531
+ }
@@ -0,0 +1,39 @@
1
+ ---
2
+ ---
3
+
4
+ $background-example: '../../{{ "public/placeholder.png" | default: "public/placeholder.png" | uri_escape }}';
5
+
6
+ // Convertir datos editables desde el panel en variables para usar directamente
7
+
8
+ {{ site.posts | find: "layout", "theme" | yaml_to_scss: site.data.layouts.theme }}
9
+
10
+ /// Redefinir variables de Boostrap en _data/theme.yml - Se las puede ver en
11
+ /// node_modules/bootstrap/scss/_variables.scss
12
+
13
+ {{ site.data.theme | yaml_to_scss }}
14
+
15
+ /// @todo Solo importar los archivos necesarios de bootstrap para
16
+ /// facilitar la reducción de CSS. Por ahora pedimos todo para poder
17
+ /// empezar a trabajar en el HTML sin pensar en CSS.
18
+ @import "bootstrap/scss/bootstrap";
19
+ @import "fork-awesome/scss/fork-awesome";
20
+ @import "accessibility";
21
+ @import "utilities";
22
+ @import "toggler";
23
+ @import "share_box";
24
+ @import "embed";
25
+ @import "snap";
26
+ @import "editor";
27
+ @import "menu";
28
+ @import "content";
29
+ @import "fonts";
30
+ @import "floating_alert";
31
+ @import "leaflet/dist/leaflet";
32
+
33
+ .leaflet-container {
34
+ font-family: inherit !important;
35
+ background-color: transparent;
36
+ }
37
+
38
+
39
+ .turbo-progress-bar { background-color: $primary; }
@@ -0,0 +1,10 @@
1
+ ---
2
+ ---
3
+
4
+ {% comment %}
5
+ Genera un site.json con las traducciones del sitio.
6
+ {% endcomment %}
7
+
8
+ {
9
+ "i18n": {{ site.i18n | jsonify }}
10
+ }
Binary file
data/assets/js/env.js ADDED
@@ -0,0 +1,8 @@
1
+ ---
2
+ ---
3
+
4
+ window.env = {
5
+ AIRBRAKE_PROJECT_ID: {{ site.env.AIRBRAKE_PROJECT_ID | default: 0 }},
6
+ AIRBRAKE_PROJECT_KEY: '{{ site.env.AIRBRAKE_PROJECT_KEY }}',
7
+ JEKYLL_ENV: '{{ site.env.JEKYLL_ENV }}'
8
+ };