radios-comunitarias-jekyll-theme 0.3.0rc0 → 0.3.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +69 -18
  3. data/_config.yml +85 -0
  4. data/_data/actions.yml +9 -0
  5. data/_data/activity_pub.yml +8 -0
  6. data/_data/components.yml +10 -0
  7. data/_data/en.yml +159 -23
  8. data/_data/es.yml +159 -22
  9. data/_data/full_width_components.yml +2 -0
  10. data/_data/layouts/menu.yml +72 -0
  11. data/_data/layouts/post.yml +11 -11
  12. data/_data/layouts/radio.yml +80 -0
  13. data/_data/layouts/theme.yml +291 -0
  14. data/_data/manifest.json +1340 -0
  15. data/_data/theme.yml +142 -0
  16. data/_includes/activity_pub/actor.html +11 -0
  17. data/_includes/activity_pub/actor_mention.html +28 -0
  18. data/_includes/activity_pub/button.html +22 -0
  19. data/_includes/activity_pub/button_bar.html +16 -0
  20. data/_includes/activity_pub/cards.html +28 -0
  21. data/_includes/activity_pub/fediverse_interactions.html +2 -0
  22. data/_includes/activity_pub/generic_modal.html +55 -0
  23. data/_includes/activity_pub/image_modal.html +27 -0
  24. data/_includes/activity_pub/interactions.html +78 -0
  25. data/_includes/activity_pub/login_modal.html +70 -0
  26. data/_includes/activity_pub/reaction.html +45 -0
  27. data/_includes/activity_pub/reactions.html +17 -0
  28. data/_includes/activity_pub/replying_to.html +23 -0
  29. data/_includes/activity_pub/text_modal.html +16 -0
  30. data/_includes/activity_pub/toot_card.html +95 -0
  31. data/_includes/activity_pub/url.html +8 -0
  32. data/_includes/activity_pub/video_modal.html +20 -0
  33. data/_includes/boolean.html +9 -1
  34. data/_includes/bootstrap/custom_select.html +18 -0
  35. data/_includes/buttons/button.html +9 -0
  36. data/_includes/buttons/copy.html +28 -0
  37. data/_includes/buttons/generic.html +15 -0
  38. data/_includes/buttons/link.html +14 -0
  39. data/_includes/contact.html +6 -8
  40. data/_includes/content.html +9 -1
  41. data/_includes/device_detector.html +30 -0
  42. data/_includes/email.html +9 -1
  43. data/_includes/embed_responsive.html +16 -0
  44. data/_includes/external_link.html +15 -0
  45. data/_includes/fa.html +11 -0
  46. data/_includes/file.html +9 -1
  47. data/_includes/floating_alert.html +6 -0
  48. data/_includes/footer.html +1 -12
  49. data/_includes/headings/generic.html +14 -0
  50. data/_includes/headings/h1.html +9 -0
  51. data/_includes/headings/h2.html +9 -0
  52. data/_includes/headings/h3.html +9 -0
  53. data/_includes/headings/with_link.html +15 -0
  54. data/_includes/image.html +9 -1
  55. data/_includes/input.html +34 -7
  56. data/_includes/item.html +38 -0
  57. data/_includes/logo.html +1 -0
  58. data/_includes/markdown_content.html +9 -1
  59. data/_includes/menu.html +27 -0
  60. data/_includes/navbar.html +5 -1
  61. data/_includes/notification.html +5 -0
  62. data/_includes/number.html +9 -1
  63. data/_includes/pack.html +10 -0
  64. data/_includes/password.html +10 -0
  65. data/_includes/picture.html +25 -0
  66. data/_includes/post.html +18 -7
  67. data/_includes/predefined_array.html +10 -2
  68. data/_includes/preload_font.html +1 -0
  69. data/_includes/reproductor.html +29 -12
  70. data/_includes/script.html +5 -0
  71. data/_includes/search.html +25 -0
  72. data/_includes/share.html +8 -8
  73. data/_includes/share_box.html +41 -12
  74. data/_includes/social_networks.html +6 -0
  75. data/_includes/stretched_link.html +15 -0
  76. data/_includes/string.html +10 -1
  77. data/_includes/submit.html +13 -1
  78. data/_includes/svg/copy-icon.svg +1 -0
  79. data/_includes/svg/done-icon.svg +1 -0
  80. data/_includes/svg/menu.svg +9 -0
  81. data/_includes/svg/x.svg +3 -0
  82. data/_includes/tel.html +9 -1
  83. data/_includes/text.html +9 -1
  84. data/_includes/theme/button_with_copy.html +1 -0
  85. data/_includes/theme/button_with_link.html +5 -0
  86. data/_includes/theme/buttons.html +33 -0
  87. data/_includes/theme/colors.html +14 -0
  88. data/_includes/theme/content.html +41 -0
  89. data/_includes/theme/embed_responsive.html +10 -0
  90. data/_includes/theme/font_sizes.html +18 -0
  91. data/_includes/theme/footer.html +1 -0
  92. data/_includes/theme/letter_spacing.html +3 -0
  93. data/_includes/theme/picture.html +5 -0
  94. data/_includes/toggler/toggler.html +21 -0
  95. data/_includes/toggler/toggler_label.html +21 -0
  96. data/_includes/toggler/toggler_related.html +23 -0
  97. data/_includes/url.html +9 -1
  98. data/_layouts/default.html +50 -22
  99. data/_layouts/home.html +7 -5
  100. data/_layouts/page.html +5 -0
  101. data/_layouts/theme.html +60 -0
  102. data/_sass/accessibility.scss +40 -7
  103. data/_sass/content.scss +28 -0
  104. data/_sass/editor.scss +17 -0
  105. data/_sass/embed.scss +8 -0
  106. data/_sass/floating_alert.scss +48 -0
  107. data/_sass/fonts.scss +29 -0
  108. data/_sass/menu.scss +36 -0
  109. data/_sass/snap.scss +60 -0
  110. data/_sass/toggler.scss +15 -34
  111. data/_sass/utilities.scss +527 -0
  112. data/assets/css/styles.scss +15 -16
  113. data/assets/data/site.json +10 -0
  114. data/assets/fonts/forkawesome-webfont.woff2 +0 -0
  115. data/assets/fonts/roboto/v27/KFOjCnqEu92Fr1Mu51TzBhc9-subset.woff2 +0 -0
  116. data/assets/fonts/roboto/v27/KFOkCnqEu92Fr1MmgWxP-subset.woff2 +0 -0
  117. data/assets/fonts/roboto/v27/KFOkCnqEu92Fr1Mu52xP-subset.woff2 +0 -0
  118. data/assets/fonts/roboto/v27/KFOlCnqEu92Fr1MmWUlvAw-subset.woff2 +0 -0
  119. data/assets/fonts/roboto/v27/KFOmCnqEu92Fr1Me5Q-subset.woff2 +0 -0
  120. data/assets/js/env.js +8 -0
  121. data/assets/js/pack.L3BFF2IJ.js +40 -0
  122. data/assets/js/pack.L3BFF2IJ.js.map +7 -0
  123. metadata +285 -21
  124. data/_data/forms/contacto.yml +0 -40
  125. data/_sass/helpers.scss +0 -54
  126. data/_sass/share.html +0 -12
  127. data/_sass/share_box.html +0 -16
  128. data/assets/js/script.js +0 -82
@@ -0,0 +1,527 @@
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
+ }
520
+
521
+ .zindex-dropdown { z-index: 1000; }
522
+ .zindex-sticky { z-index: 1020; }
523
+ .zindex-fixed { z-index: 1030; }
524
+ .zindex-modal-backdrop { z-index: 1040; }
525
+ .zindex-modal { z-index: 1050; }
526
+ .zindex-popover { z-index: 1060; }
527
+ .zindex-tooltip { z-index: 1070; }
@@ -1,9 +1,8 @@
1
1
  ---
2
- # Ponemos un frontmatter porque queremos que Jekyll procese este archivo
3
2
  ---
4
3
 
5
4
  // El primer artículo que sea de tipo radio
6
- {%- assign radio = site.posts | find: 'layout', 'radio' -%}
5
+ {%- assign radio = site.about -%}
7
6
 
8
7
  // Pasar variables de Liquid a SASS
9
8
  $navbar-background: {{ radio.navbar_background_color | default: '#6dc381' }};
@@ -19,17 +18,19 @@ $link-color: $navbar-background;
19
18
  // Tamaño del nombre de la radio
20
19
  $navbar-brand-font-size: 1rem;
21
20
 
22
- /*
23
- * XXX: Solo importar los archivos necesarios de bootstrap para
24
- * facilitar la reducción de CSS. Por ahora pedimos todo para poder
25
- * empezar a trabajar en el HTML sin pensar en CSS.
26
- *
27
- * Los archivos se encuentran en node_modules/bootstrap/scss
28
- */
21
+ // Convertir datos editables desde el panel en variables para usar directamente
22
+
23
+ {{ site.posts | find: "layout", "theme" | yaml_to_scss: site.data.layouts.theme }}
24
+
25
+ /// Redefinir variables de Boostrap en _data/theme.yml - Se las puede ver en
26
+ /// node_modules/bootstrap/scss/_variables.scss
27
+
28
+ {{ site.data.theme | yaml_to_scss }}
29
+
29
30
  @import "bootstrap/scss/bootstrap";
30
31
  @import "fork-awesome/scss/fork-awesome";
31
32
  @import "accessibility";
32
- @import "helpers";
33
+ @import "utilities";
33
34
  @import "toggler";
34
35
  @import "share_box";
35
36
  @import "embed";
@@ -62,10 +63,8 @@ $navbar-brand-font-size: 1rem;
62
63
  }
63
64
  }
64
65
 
65
- .turbolinks-progress-bar {
66
- background-color: $navbar-foreground;
67
- }
66
+ @import "editor";
67
+ @import "content";
68
+ @import "fonts";
68
69
 
69
- img, video {
70
- max-width: 100%;
71
- }
70
+ .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
+ };