desy-html 11.0.1 → 11.0.3
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.
- package/config/tailwind.config.js +134 -0
- package/docs/ds/_ds.section.color.njk +1 -4
- package/docs/ds/_ds.section.espaciado.njk +5 -8
- package/docs/ds/_ds.section.layout.njk +4 -11
- package/docs/ds/_ds.section.textos.njk +52 -45
- package/docs/ds/_ds.section.typography.njk +1 -4
- package/docs/estilos.html +18 -0
- package/docs/index.html +33 -23
- package/package.json +1 -1
- package/src/css/styles.css +1 -1
- package/src/templates/components/footer/_examples.footer.njk +2 -1
- package/src/templates/components/footer/_template.footer.njk +6 -6
- package/src/templates/components/header/_template.header.njk +1 -1
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +46 -23
- package/src/templates/components/menu-navigation/_template.menu-navigation.njk +2 -2
- package/src/templates/components/pagination/_template.pagination.njk +5 -1
- package/src/templates/components/table/_examples.table.njk +59 -1
- package/src/templates/components/table/_styles.table.css +20 -0
- package/src/templates/components/table/_template.table.njk +1 -1
- package/src/css/component.text.css +0 -157
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { fontFamily as _fontFamily } from 'tailwindcss/defaultTheme'
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
// Helper funcions from: https://github.com/tailwindlabs/tailwindcss-typography/blob/master/src/styles.js
|
|
4
5
|
const round = (num) =>
|
|
5
6
|
num
|
|
@@ -211,7 +212,140 @@ export const theme = {
|
|
|
211
212
|
},
|
|
212
213
|
},
|
|
213
214
|
}
|
|
215
|
+
|
|
216
|
+
const plugin = require('tailwindcss/plugin')
|
|
217
|
+
|
|
214
218
|
export const plugins = [
|
|
215
219
|
require('@tailwindcss/forms'),
|
|
216
220
|
require('@tailwindcss/typography'),
|
|
221
|
+
function({ addUtilities, theme }) {
|
|
222
|
+
addUtilities({
|
|
223
|
+
'.c-h0': {
|
|
224
|
+
marginBottom: theme('spacing.8'),
|
|
225
|
+
fontSize: '2.5rem',
|
|
226
|
+
fontWeight: theme('fontWeight.bold'),
|
|
227
|
+
lineHeight: theme('lineHeight.tight'),
|
|
228
|
+
},
|
|
229
|
+
'.c-h1': {
|
|
230
|
+
marginBottom: theme('spacing.lg'),
|
|
231
|
+
fontSize: theme('fontSize.3xl'),
|
|
232
|
+
fontWeight: theme('fontWeight.bold'),
|
|
233
|
+
lineHeight: theme('lineHeight.tight'),
|
|
234
|
+
},
|
|
235
|
+
'.c-h2': {
|
|
236
|
+
marginBottom: theme('spacing.base'),
|
|
237
|
+
fontSize: theme('fontSize.2xl'),
|
|
238
|
+
fontWeight: theme('fontWeight.bold'),
|
|
239
|
+
lineHeight: theme('lineHeight.tight'),
|
|
240
|
+
},
|
|
241
|
+
'.c-h3': {
|
|
242
|
+
marginBottom: theme('spacing.sm'),
|
|
243
|
+
fontSize: theme('fontSize.lg'),
|
|
244
|
+
fontWeight: theme('fontWeight.bold'),
|
|
245
|
+
lineHeight: theme('lineHeight.tight'),
|
|
246
|
+
},
|
|
247
|
+
'.c-h4': {
|
|
248
|
+
marginBottom: theme('spacing.sm'),
|
|
249
|
+
fontSize: theme('fontSize.base'),
|
|
250
|
+
fontWeight: theme('fontWeight.bold'),
|
|
251
|
+
lineHeight: theme('lineHeight.tight'),
|
|
252
|
+
},
|
|
253
|
+
'.c-link': {
|
|
254
|
+
color: theme('colors.primary.base'),
|
|
255
|
+
textDecoration: 'underline',
|
|
256
|
+
'&:hover': {
|
|
257
|
+
color: theme('colors.primary.dark'),
|
|
258
|
+
},
|
|
259
|
+
'&:focus': {
|
|
260
|
+
backgroundColor: theme('colors.warning.base'),
|
|
261
|
+
boxShadow: theme('boxShadow.outline-focus'),
|
|
262
|
+
outline: 'none',
|
|
263
|
+
color: theme('colors.black'),
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
'.c-link--alert': {
|
|
267
|
+
color: theme('colors.alert.base'),
|
|
268
|
+
textDecoration: 'underline',
|
|
269
|
+
fontWeight: theme('fontWeight.semibold'),
|
|
270
|
+
'&:hover': {
|
|
271
|
+
color: theme('colors.alert.dark'),
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
'.c-link--neutral': {
|
|
275
|
+
color: theme('colors.neutral.dark'),
|
|
276
|
+
textDecoration: 'underline',
|
|
277
|
+
'&:hover': {
|
|
278
|
+
color: theme('colors.black'),
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
'.c-link--full': {
|
|
282
|
+
'&::after': {
|
|
283
|
+
content: '""',
|
|
284
|
+
position: 'absolute',
|
|
285
|
+
inset: '0',
|
|
286
|
+
},
|
|
287
|
+
},
|
|
288
|
+
'.c-paragraph-lg': {
|
|
289
|
+
marginBottom: theme('spacing.lg'),
|
|
290
|
+
fontSize: theme('fontSize.lg'),
|
|
291
|
+
},
|
|
292
|
+
'.c-paragraph-base': {
|
|
293
|
+
marginBottom: theme('spacing.base'),
|
|
294
|
+
fontSize: theme('fontSize.base'),
|
|
295
|
+
},
|
|
296
|
+
'.c-paragraph-sm': {
|
|
297
|
+
marginBottom: theme('spacing.sm'),
|
|
298
|
+
fontSize: theme('fontSize.sm'),
|
|
299
|
+
},
|
|
300
|
+
'.c-ul': {
|
|
301
|
+
marginBottom: theme('spacing.base'),
|
|
302
|
+
listStyleType: 'none',
|
|
303
|
+
'& li': {
|
|
304
|
+
position: 'relative',
|
|
305
|
+
marginBottom: theme('spacing.base'),
|
|
306
|
+
paddingLeft: theme('spacing.8'),
|
|
307
|
+
'&::before': {
|
|
308
|
+
content: '""',
|
|
309
|
+
position: 'absolute',
|
|
310
|
+
top: '0.625rem',
|
|
311
|
+
left: '0.25rem',
|
|
312
|
+
width: '0.375rem',
|
|
313
|
+
height: '0.375rem',
|
|
314
|
+
backgroundColor: theme('colors.black'),
|
|
315
|
+
borderRadius: '9999px',
|
|
316
|
+
},
|
|
317
|
+
'&:last-of-type': {
|
|
318
|
+
marginBottom: '0',
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
},
|
|
322
|
+
'.c-ul--no-bullets': {
|
|
323
|
+
'& li': {
|
|
324
|
+
paddingLeft: '0',
|
|
325
|
+
'&::before': {
|
|
326
|
+
display: 'none',
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
'.c-ol': {
|
|
331
|
+
marginBottom: theme('spacing.base'),
|
|
332
|
+
counterReset: 'list-counter',
|
|
333
|
+
'& li': {
|
|
334
|
+
position: 'relative',
|
|
335
|
+
marginBottom: theme('spacing.base'),
|
|
336
|
+
paddingLeft: theme('spacing.8'),
|
|
337
|
+
'&::before': {
|
|
338
|
+
counterIncrement: 'list-counter',
|
|
339
|
+
content: 'counter(list-counter) "."',
|
|
340
|
+
position: 'absolute',
|
|
341
|
+
left: '0.25rem',
|
|
342
|
+
color: theme('colors.black'),
|
|
343
|
+
},
|
|
344
|
+
'&:last-of-type': {
|
|
345
|
+
marginBottom: '0',
|
|
346
|
+
},
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
})
|
|
350
|
+
}
|
|
217
351
|
]
|
|
@@ -2,14 +2,11 @@
|
|
|
2
2
|
<!-- _ds.section.spacing.njk -->
|
|
3
3
|
|
|
4
4
|
<div class="container mx-auto">
|
|
5
|
-
|
|
6
|
-
{{ DSSectionTitle({
|
|
7
|
-
title: "Espaciado"
|
|
8
|
-
}) }}
|
|
5
|
+
|
|
9
6
|
<div class="pb-lg"></div>
|
|
10
7
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
11
8
|
{{ DSSubsectionTitle({
|
|
12
|
-
title: "Espaciado
|
|
9
|
+
title: "Espaciado para elementos"
|
|
13
10
|
}) }}
|
|
14
11
|
<div class="prose">
|
|
15
12
|
<p>
|
|
@@ -130,7 +127,7 @@
|
|
|
130
127
|
<div class="pb-xl"></div>
|
|
131
128
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
132
129
|
{{ DSSubsectionTitle({
|
|
133
|
-
title: "Espaciado
|
|
130
|
+
title: "Espaciado para anchuras"
|
|
134
131
|
}) }}
|
|
135
132
|
<div class="prose max-w-none">
|
|
136
133
|
<p>
|
|
@@ -225,13 +222,13 @@
|
|
|
225
222
|
<div class="pb-xl"></div>
|
|
226
223
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
227
224
|
{{ DSSubsectionTitle({
|
|
228
|
-
title: "Espaciado
|
|
225
|
+
title: "Espaciado máximo"
|
|
229
226
|
}) }}
|
|
230
227
|
<div class="prose max-w-none">
|
|
231
228
|
<p>
|
|
232
229
|
desy-html usa los valores de Tailwind CSS y adicionalmente estos otros:
|
|
233
230
|
</p>
|
|
234
|
-
<table>
|
|
231
|
+
<table class="text-left">
|
|
235
232
|
<thead>
|
|
236
233
|
<tr>
|
|
237
234
|
<th>Nombre</th>
|
|
@@ -5,9 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<div class="container mx-auto">
|
|
7
7
|
{% from "ds/_ds.macro.section-title.njk" import DSSectionTitle %}
|
|
8
|
-
|
|
9
|
-
title: "Breakpoints y retícula"
|
|
10
|
-
}) }}
|
|
8
|
+
|
|
11
9
|
<div class="pb-lg"></div>
|
|
12
10
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
13
11
|
{{ DSSubsectionTitle({
|
|
@@ -35,10 +33,7 @@
|
|
|
35
33
|
}) }}
|
|
36
34
|
<p class="c-paragraph-base">Usamos un sistema basado en 4 columnas, con un espacio de <code>gap-lg</code> - <code>1.75rem</code> - <code>28px / 16px</code>. Utiliza las combinaciones reflejadas a continuación. Evita utilizar el layout a una columna (100%) para textos en pantallas de gran tamaño, afectaría negativamente a la legibilidad.</p>
|
|
37
35
|
<div class="pb-lg"></div>
|
|
38
|
-
|
|
39
|
-
{{ DSSubsectionTitle({
|
|
40
|
-
title: "Pantallas grandes. Escritorio"
|
|
41
|
-
}) }}
|
|
36
|
+
<h3 class="c-h4">Pantallas grandes. Escritorio</h3>
|
|
42
37
|
{% call componentExample() %}
|
|
43
38
|
{% include "ds/_ds.example.layout-sidebar.njk" %}
|
|
44
39
|
{% endcall %}
|
|
@@ -50,10 +45,8 @@
|
|
|
50
45
|
{{ showHtmlFromFile("ds/_ds.example.layout-escritorio.njk") }}
|
|
51
46
|
<div class="pb-xl"></div>
|
|
52
47
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}) }}
|
|
56
|
-
<div class="grid lg:grid-cols-2 gap-xl -mt-base">
|
|
48
|
+
<h3 class="c-h4">Pantallas pequeñas. Móvil</h3>
|
|
49
|
+
<div class="grid lg:grid-cols-2 gap-xl">
|
|
57
50
|
{% call componentExample() %}
|
|
58
51
|
{% include "ds/_ds.example.layout-movil.njk" %}
|
|
59
52
|
{% endcall %}
|
|
@@ -4,23 +4,20 @@
|
|
|
4
4
|
<!-- _ds.section.textos.njk -->
|
|
5
5
|
|
|
6
6
|
<div class="container mx-auto">
|
|
7
|
-
|
|
8
|
-
{{ DSSectionTitle({
|
|
9
|
-
title: "Textos"
|
|
10
|
-
}) }}
|
|
7
|
+
|
|
11
8
|
<div class="pb-lg"></div>
|
|
12
9
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
13
10
|
{{ DSSubsectionTitle({
|
|
14
11
|
title: "Fuentes"
|
|
15
12
|
}) }}
|
|
16
13
|
<p>La tipografía principal es <a class="c-link" href="https://fonts.google.com/specimen/Open+Sans?sidebar.open&selection.family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700">Open Sans</a> en sus pesos Bold, Semibold y Regular. Utilizar en la medida de lo posible, el código que ofrece Google Fonts para integrarlo.</p>
|
|
17
|
-
<div class="pb-
|
|
14
|
+
<div class="pb-2xl"></div>
|
|
18
15
|
{{ DSSubsectionTitle({
|
|
19
16
|
title: "Estilos de base"
|
|
20
17
|
}) }}
|
|
21
|
-
<ul>
|
|
18
|
+
<ul class="divide-y divide-neutral-base ">
|
|
22
19
|
<li>
|
|
23
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-lg
|
|
20
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-lg my-base">
|
|
24
21
|
<dt>
|
|
25
22
|
<p>Esto simula un <strong class="font-bold">Encabezado</strong>.</p>
|
|
26
23
|
</dt>
|
|
@@ -30,7 +27,7 @@
|
|
|
30
27
|
</dl>
|
|
31
28
|
</li>
|
|
32
29
|
<li>
|
|
33
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-lg
|
|
30
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-lg my-base">
|
|
34
31
|
<dt>
|
|
35
32
|
<p>Esto es un <strong>strong</strong> en un texto.</p>
|
|
36
33
|
</dt>
|
|
@@ -40,7 +37,7 @@
|
|
|
40
37
|
</dl>
|
|
41
38
|
</li>
|
|
42
39
|
<li>
|
|
43
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-lg
|
|
40
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-lg my-base">
|
|
44
41
|
<dt>
|
|
45
42
|
<p>Esto es un <em>em</em> en un texto.</p>
|
|
46
43
|
</dt>
|
|
@@ -50,15 +47,17 @@
|
|
|
50
47
|
</dl>
|
|
51
48
|
</li>
|
|
52
49
|
</ul>
|
|
50
|
+
<div class="pb-2xl"></div>
|
|
51
|
+
|
|
53
52
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
54
53
|
{{ DSSubsectionTitle({
|
|
55
54
|
title: "Encabezados"
|
|
56
55
|
}) }}
|
|
57
|
-
<ul>
|
|
56
|
+
<ul class="divide-y divide-neutral-base">
|
|
58
57
|
<li>
|
|
59
|
-
<dl class="flex flex-wrap items-center
|
|
58
|
+
<dl class="flex flex-wrap items-center my-base">
|
|
60
59
|
<dt class="lg:w-1/3 lg:mr-8">
|
|
61
|
-
<p class="c-h0">Encabezado 0 (h1)</p>
|
|
60
|
+
<p class="c-h0 mb-base">Encabezado 0 (h1)</p>
|
|
62
61
|
</dt>
|
|
63
62
|
<dd class="lg:flex-1">
|
|
64
63
|
<p class="text-neutral-dark text-sm"><code>.c-h0</code> - <code>bold</code> - <code>black</code> - font-size: <code>2.5rem</code> - <code>40px</code> - line-height: <code>.leading-tight</code> - <code>1.25</code> - <code>50px</code> - margin-bottom: <code>.mb-8</code> - <code>2rem</code> - <code>32px</code></p>
|
|
@@ -66,9 +65,9 @@
|
|
|
66
65
|
</dl>
|
|
67
66
|
</li>
|
|
68
67
|
<li>
|
|
69
|
-
<dl class="flex flex-wrap items-center
|
|
68
|
+
<dl class="flex flex-wrap items-center my-base">
|
|
70
69
|
<dt class="lg:w-1/3 lg:mr-8">
|
|
71
|
-
<p class="c-h1">Encabezado 1 (h1)</p>
|
|
70
|
+
<p class="c-h1 mb-base">Encabezado 1 (h1)</p>
|
|
72
71
|
</dt>
|
|
73
72
|
<dd class="lg:flex-1">
|
|
74
73
|
<p class="text-neutral-dark text-sm"><code>.c-h1</code> - <code>bold</code> - <code>black</code> - font-size: <code>.text-3xl</code> - <code>1.875rem</code> - <code>30px</code> - line-height: <code>.leading-tight</code> - <code>1.25</code> - <code>37.5px</code> - margin-bottom: <code>.mb-lg</code> - <code>1.75rem</code> - <code>28px</code></p>
|
|
@@ -76,9 +75,9 @@
|
|
|
76
75
|
</dl>
|
|
77
76
|
</li>
|
|
78
77
|
<li>
|
|
79
|
-
<dl class="flex flex-wrap items-center
|
|
78
|
+
<dl class="flex flex-wrap items-center my-base">
|
|
80
79
|
<dt class="lg:w-1/3 lg:mr-8">
|
|
81
|
-
<p class="c-h2">Encabezado 2 (h2)</p>
|
|
80
|
+
<p class="c-h2 mb-base">Encabezado 2 (h2)</p>
|
|
82
81
|
</dt>
|
|
83
82
|
<dd class="lg:flex-1">
|
|
84
83
|
<p class="text-neutral-dark text-sm"><code>.c-h2</code> - <code>bold</code> - <code>black</code> - font-size: <code>.text-2xl</code> - <code>1.5rem</code> - <code>24px</code> - line-height: <code>.leading-tight</code> - <code>1.25</code> - <code>30px</code> - margin-bottom: <code>.mb-base</code> - <code>1</code> - <code>16px</code></p>
|
|
@@ -86,9 +85,9 @@
|
|
|
86
85
|
</dl>
|
|
87
86
|
</li>
|
|
88
87
|
<li>
|
|
89
|
-
<dl class="flex flex-wrap items-center
|
|
88
|
+
<dl class="flex flex-wrap items-center my-base">
|
|
90
89
|
<dt class="lg:w-1/3 lg:mr-8">
|
|
91
|
-
<p class="c-h3">Encabezado 3 (h3)</p>
|
|
90
|
+
<p class="c-h3 mb-base">Encabezado 3 (h3)</p>
|
|
92
91
|
</dt>
|
|
93
92
|
<dd class="lg:flex-1">
|
|
94
93
|
<p class="text-neutral-dark text-sm"><code>.c-h3</code> - <code>bold</code> - <code>black</code> - font-size: <code>.text-lg</code> - <code>1.125rem</code> - <code>18px</code> - line-height: <code>.leading-tight</code> - <code>1.25</code> - <code>22.5px</code> - margin-bottom: <code>.mb-sm</code> - <code>0.5rem</code> - <code>8px</code></p>
|
|
@@ -96,9 +95,9 @@
|
|
|
96
95
|
</dl>
|
|
97
96
|
</li>
|
|
98
97
|
<li>
|
|
99
|
-
<dl class="flex flex-wrap items-center
|
|
98
|
+
<dl class="flex flex-wrap items-center my-4">
|
|
100
99
|
<dt class="lg:w-1/3 lg:mr-8">
|
|
101
|
-
<p class="c-h4">Encabezado 4 (h4)</p>
|
|
100
|
+
<p class="c-h4 mb-base">Encabezado 4 (h4)</p>
|
|
102
101
|
</dt>
|
|
103
102
|
<dd class="lg:flex-1">
|
|
104
103
|
<p class="text-neutral-dark text-sm"><code>.c-h4</code> - <code>bold</code> - <code>black</code> - font-size: <code>.text-base</code> - <code>1rem</code> - <code>16px</code> - line-height: <code>.leading-tight</code> - <code>1.25</code> - <code>20px</code> - margin-bottom: <code>.mb-sm</code> - <code>0.5</code> - <code>8px</code></p>
|
|
@@ -106,98 +105,102 @@
|
|
|
106
105
|
</dl>
|
|
107
106
|
</li>
|
|
108
107
|
</ul>
|
|
108
|
+
<div class="pb-2xl"></div>
|
|
109
|
+
|
|
109
110
|
{{ DSSubsectionTitle({
|
|
110
111
|
title: "Enlaces"
|
|
111
112
|
}) }}
|
|
112
|
-
<ul>
|
|
113
|
+
<ul class="divide-y divide-neutral-base">
|
|
113
114
|
<li>
|
|
114
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
115
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
115
116
|
<dt class="col-span-2 lg:col-span-2">
|
|
116
117
|
<p>Esto es un <a href="#" class="c-link">enlace</a> en un texto.</p>
|
|
117
118
|
</dt>
|
|
118
|
-
<dd class="col-span-2 lg:col-span-2
|
|
119
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
119
120
|
<p class="text-neutral-dark text-sm"><code>.c-link</code> - <code>normal</code> - <code>underline</code> - <code>primary-base</code> - hover: <code>primary-dark</code></p>
|
|
120
121
|
</dd>
|
|
121
122
|
</dl>
|
|
122
123
|
</li>
|
|
123
124
|
<li>
|
|
124
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
125
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
125
126
|
<dt class="col-span-2 lg:col-span-2">
|
|
126
127
|
<p>Esto es un <a href="#" class="c-link" title="Se abre en ventana nueva" target="_blank">enlace en ventana nueva<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="0.8em" width="0.8em" class="inline-block mx-xs no-underline align-baseline" aria-hidden="true" focusable="false" role="img"><g><path fill="currentcolor" fill-rule="evenodd" d="M7.428571428571428 0.5714285714285714c-0.6311885714285713 0 -1.1428571428571428 0.5116742857142856 -1.1428571428571428 1.1428571428571428 0 0.6311771428571428 0.5116685714285714 1.1428571428571428 1.1428571428571428 1.1428571428571428h4.098057142857143L0.9061634285714285 13.477599999999999c-0.4463131428571428 0.4462857142857143 -0.4463131428571428 1.1699428571428572 0 1.6162285714285711 0.4463165714285714 0.4462857142857143 1.1699279999999999 0.4462857142857143 1.616248 0L13.142857142857142 4.473382857142857V8.571428571428571c0 0.6311771428571428 0.5116571428571428 1.1428571428571428 1.1428571428571428 1.1428571428571428s1.1428571428571428 -0.51168 1.1428571428571428 -1.1428571428571428v-6.857142857142857c0 -0.6311828571428572 -0.5116571428571428 -1.1428571428571428 -1.1428571428571428 -1.1428571428571428h-6.857142857142857Z" clip-rule="evenodd" stroke-width="1"></path></g></svg></a> en un texto.</p>
|
|
127
128
|
</dt>
|
|
128
|
-
<dd class="col-span-2 lg:col-span-2
|
|
129
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
129
130
|
<p class="text-neutral-dark text-sm"><code>.c-link</code> - <code>normal</code> - <code>underline</code> - <code>primary-base</code> - hover: <code>primary-dark</code>. Con un <code>title</code>, <code>svg</code> y <code>target</code></p>
|
|
130
131
|
</dd>
|
|
131
132
|
</dl>
|
|
132
133
|
</li>
|
|
133
134
|
<li>
|
|
134
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
135
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
135
136
|
<dt class="col-span-2 lg:col-span-2">
|
|
136
137
|
<p>Esto es un <a href="#" class="c-link c-link--alert">enlace</a> en una notificación de error.</p>
|
|
137
138
|
</dt>
|
|
138
|
-
<dd class="col-span-2 lg:col-span-2
|
|
139
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
139
140
|
<p class="text-neutral-dark text-sm"><code>.c-link.c-link--alert</code> - <code>normal</code> - <code>underline</code> - <code>alert-base</code> - hover: <code>alert-dark</code></p>
|
|
140
141
|
</dd>
|
|
141
142
|
</dl>
|
|
142
143
|
</li>
|
|
143
144
|
<li>
|
|
144
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
145
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
145
146
|
<dt class="col-span-2 lg:col-span-2 p-base border border-neutral-base rounded relative hover:bg-neutral-light">
|
|
146
|
-
<a href="#" class="c-link c-link--full">
|
|
147
|
+
<a href="#" class="c-link c-link--full">Esto es un contenedor con enlace</a>
|
|
147
148
|
</dt>
|
|
148
|
-
<dd class="col-span-2 lg:col-span-2
|
|
149
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
149
150
|
<p class="text-neutral-dark text-sm"><code>.c-link.c-link--full</code> + contenedor <code>.relative.hover:bg-neutral-light</code> - <code>normal</code> - <code>underline</code> - <code>primary-base</code> - hover: <code>bg-neutral-light</code></p>
|
|
150
151
|
</dd>
|
|
151
152
|
</dl>
|
|
152
153
|
</li>
|
|
153
154
|
</ul>
|
|
155
|
+
<div class="pb-2xl"></div>
|
|
156
|
+
|
|
154
157
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
155
158
|
{{ DSSubsectionTitle({
|
|
156
159
|
title: "Párrafos"
|
|
157
160
|
}) }}
|
|
158
|
-
<ul>
|
|
161
|
+
<ul class="divide-y divide-neutral-base">
|
|
159
162
|
<li>
|
|
160
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
163
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
161
164
|
<dt class="col-span-2 lg:col-span-2">
|
|
162
165
|
<p class="c-paragraph-lg">Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </p>
|
|
163
166
|
</dt>
|
|
164
|
-
<dd class="col-span-2 lg:col-span-2
|
|
165
|
-
<p class="text-neutral-dark text-sm">Párrafo
|
|
167
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
168
|
+
<p class="text-neutral-dark text-sm">Párrafo destacado. <br><code>.c-paragraph-lg</code><br><code>normal</code> - <code>black</code><br>font-size: <code>.text-lg</code> - <code>1.125rem</code> - <code>18px</code> <br> line-height: <code>1.75rem</code> - <code>28px</code> <br> margin-bottom: <code>.mb-lg</code> - <code>1.75rem</code> - <code>28px</code></p>
|
|
166
169
|
</dd>
|
|
167
170
|
</dl>
|
|
168
171
|
</li>
|
|
169
172
|
<li>
|
|
170
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
173
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
171
174
|
<dt class="col-span-2 lg:col-span-2">
|
|
172
175
|
<p class="c-paragraph-base">Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </p>
|
|
173
176
|
</dt>
|
|
174
|
-
<dd class="col-span-2 lg:col-span-2
|
|
177
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
175
178
|
<p class="text-neutral-dark text-sm">Párrafo por defecto. <br><code>.c-paragraph-base</code><br><code>normal</code> - <code>black</code><br>font-size: <code>.text-base</code> - <code>1rem</code> - <code>16px</code> <br>line-height: <code>1.5rem</code> - <code>24px</code> <br> margin-bottom: <code>.mb-base</code> - <code>1rem</code> - <code>16px</code></p>
|
|
176
179
|
</dd>
|
|
177
180
|
</dl>
|
|
178
181
|
</li>
|
|
179
182
|
<li>
|
|
180
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
183
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
181
184
|
<dt class="col-span-2 lg:col-span-2">
|
|
182
185
|
<p class="c-paragraph-base text-neutral-dark">Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </p>
|
|
183
186
|
</dt>
|
|
184
|
-
<dd class="col-span-2 lg:col-span-2
|
|
187
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
185
188
|
<p class="text-neutral-dark text-sm">Párrafo secundario. <br><code>.c-paragraph-base.text-neutral-dark</code><br><code>normal</code> - <code>neutral-dark</code><br>font-size: <code>.text-base</code> - <code>1rem</code> - <code>16px</code> <br>line-height: <code>1.5rem</code> - <code>24px</code> <br> margin-bottom: <code>.mb-base</code> - <code>1rem</code> - <code>16px</code></p>
|
|
186
189
|
</dd>
|
|
187
190
|
</dl>
|
|
188
191
|
</li>
|
|
189
192
|
<li>
|
|
190
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
193
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
191
194
|
<dt class="col-span-2 lg:col-span-2">
|
|
192
195
|
<p class="c-paragraph-sm">Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </p>
|
|
193
196
|
</dt>
|
|
194
|
-
<dd class="col-span-2 lg:col-span-2
|
|
197
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
195
198
|
<p class="text-neutral-dark text-sm">Párrafo pequeño. <br><code>.c-paragraph-sm</code><br><code>normal</code> - <code>black</code><br>font-size: <code>.text-sm</code> - <code>.875rem</code> - <code>14px</code> <br>line-height: <code>1.25rem</code> - <code>20px</code> <br> margin-bottom: <code>.mb-sm</code> - <code>.5rem</code> - <code>8px</code></p>
|
|
196
199
|
</dd>
|
|
197
200
|
</dl>
|
|
198
201
|
</li>
|
|
199
202
|
<li>
|
|
200
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
203
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
201
204
|
<dt class="col-span-2 lg:col-span-2">
|
|
202
205
|
<p class="c-paragraph-sm text-neutral-dark">Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </p>
|
|
203
206
|
</dt>
|
|
@@ -207,13 +210,15 @@
|
|
|
207
210
|
</dl>
|
|
208
211
|
</li>
|
|
209
212
|
</ul>
|
|
213
|
+
<div class="pb-2xl"></div>
|
|
214
|
+
|
|
210
215
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
211
216
|
{{ DSSubsectionTitle({
|
|
212
217
|
title: "Listas"
|
|
213
218
|
}) }}
|
|
214
|
-
<ul>
|
|
219
|
+
<ul class="divide-y divide-neutral-base">
|
|
215
220
|
<li>
|
|
216
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
221
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-lg">
|
|
217
222
|
<dt class="col-span-2 lg:col-span-2">
|
|
218
223
|
<ul class="c-ul">
|
|
219
224
|
<li>Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </li>
|
|
@@ -227,7 +232,7 @@
|
|
|
227
232
|
</dl>
|
|
228
233
|
</li>
|
|
229
234
|
<li>
|
|
230
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
235
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-lg">
|
|
231
236
|
<dt class="col-span-2 lg:col-span-2">
|
|
232
237
|
<ul class="c-ul c-ul--no-bullets">
|
|
233
238
|
<li>Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </li>
|
|
@@ -241,7 +246,7 @@
|
|
|
241
246
|
</dl>
|
|
242
247
|
</li>
|
|
243
248
|
<li>
|
|
244
|
-
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base
|
|
249
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-lg">
|
|
245
250
|
<dt class="col-span-2 lg:col-span-2">
|
|
246
251
|
<ul class="c-ol">
|
|
247
252
|
<li>Nam dapibus nisl vitae elit fringilla rutrum. Aenean sollicitudin, erat a elementum rutrum, neque sem pretium metus, quis mollis nisl nunc et massa. </li>
|
|
@@ -255,5 +260,7 @@
|
|
|
255
260
|
</dl>
|
|
256
261
|
</li>
|
|
257
262
|
</ul>
|
|
263
|
+
<div class="pb-2xl"></div>
|
|
264
|
+
|
|
258
265
|
{{ showHtmlFromFile("ds/_ds.example.textos.njk") }}
|
|
259
266
|
</div>
|
|
@@ -4,10 +4,7 @@
|
|
|
4
4
|
<!-- _ds.section.typography.njk -->
|
|
5
5
|
|
|
6
6
|
<div class="container mx-auto">
|
|
7
|
-
|
|
8
|
-
{{ DSSectionTitle({
|
|
9
|
-
title: "Tipografía en texto renderizado"
|
|
10
|
-
}) }}
|
|
7
|
+
|
|
11
8
|
<div class="pb-lg"></div>
|
|
12
9
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
13
10
|
{{ DSSubsectionTitle({
|
package/docs/estilos.html
CHANGED
|
@@ -2,18 +2,36 @@
|
|
|
2
2
|
{% set activePage = "page-estilos" %}
|
|
3
3
|
{% extends "_template.default.njk" %}
|
|
4
4
|
|
|
5
|
+
{% from "ds/_ds.macro.section-title.njk" import DSSectionTitle %}
|
|
6
|
+
|
|
7
|
+
|
|
5
8
|
{% block contentBlock %}
|
|
6
9
|
<div class="pb-lg"></div>
|
|
7
10
|
<div class="c-h1">Estilos</div>
|
|
8
11
|
<div class="pb-lg"></div>
|
|
12
|
+
{{ DSSectionTitle({
|
|
13
|
+
title: "Color"
|
|
14
|
+
}) }}
|
|
9
15
|
{% include "ds/_ds.section.color.njk" %}
|
|
10
16
|
<div class="pb-2xl"></div>
|
|
17
|
+
{{ DSSectionTitle({
|
|
18
|
+
title: "Espaciado"
|
|
19
|
+
}) }}
|
|
11
20
|
{% include "ds/_ds.section.espaciado.njk" %}
|
|
12
21
|
<div class="pb-2xl"></div>
|
|
22
|
+
{{ DSSectionTitle({
|
|
23
|
+
title: "Breakpoints y retícula"
|
|
24
|
+
}) }}
|
|
13
25
|
{% include "ds/_ds.section.layout.njk" %}
|
|
14
26
|
<div class="pb-2xl"></div>
|
|
27
|
+
{{ DSSectionTitle({
|
|
28
|
+
title: "Textos"
|
|
29
|
+
}) }}
|
|
15
30
|
{% include "ds/_ds.section.textos.njk" %}
|
|
16
31
|
<div class="pb-2xl"></div>
|
|
32
|
+
{{ DSSectionTitle({
|
|
33
|
+
title: "Tipografía en texto renderizado"
|
|
34
|
+
}) }}
|
|
17
35
|
{% include "ds/_ds.section.typography.njk" %}
|
|
18
36
|
<div class="pb-2xl"></div>
|
|
19
37
|
{% endblock %}
|
package/docs/index.html
CHANGED
|
@@ -38,6 +38,16 @@
|
|
|
38
38
|
|
|
39
39
|
<h2>Changelog (English)</h2>
|
|
40
40
|
<p>What's new in the latest version of desy-html</p>
|
|
41
|
+
<h3>v.11.0.3</h3>
|
|
42
|
+
<ul class="text-sm">
|
|
43
|
+
<li>Text styles are now responsive with Tailwind CSS breakpoint prefixes.</li>
|
|
44
|
+
<li>Added Table modifier to not stack cells in mobile.</li>
|
|
45
|
+
<li>Accessibility fixes.</li>
|
|
46
|
+
</ul>
|
|
47
|
+
<h3>v.11.0.2</h3>
|
|
48
|
+
<ul class="text-sm">
|
|
49
|
+
<li>Accessibility fixes.</li>
|
|
50
|
+
</ul>
|
|
41
51
|
<h3>v.11.0.1</h3>
|
|
42
52
|
<ul class="text-sm">
|
|
43
53
|
<li>Minor fixes.</li>
|
|
@@ -49,7 +59,7 @@
|
|
|
49
59
|
<h3>v.10.2.2</h3>
|
|
50
60
|
<ul class="text-sm">
|
|
51
61
|
<li>Added missing params in Toggle and Notification.</li>
|
|
52
|
-
<li>
|
|
62
|
+
<li>Accessibility fixes.</li>
|
|
53
63
|
</ul>
|
|
54
64
|
<h3>v.10.2.1</h3>
|
|
55
65
|
<ul class="text-sm">
|
|
@@ -100,7 +110,7 @@
|
|
|
100
110
|
<li>Added FEADER logos in Footer.</li>
|
|
101
111
|
<li>Tooltip now allows select content inside.</li>
|
|
102
112
|
<li>Updated to latest Tailwind CSS.</li>
|
|
103
|
-
<li>
|
|
113
|
+
<li>Accessibility fixes.</li>
|
|
104
114
|
<li>Minor improvements.</li>
|
|
105
115
|
</ul>
|
|
106
116
|
<h3>v.8.12.1</h3>
|
|
@@ -113,7 +123,7 @@
|
|
|
113
123
|
<li>Added new logos and parameters in Footer.</li>
|
|
114
124
|
<li>Added global function to open/close Tree items.</li>
|
|
115
125
|
<li>Added global funcion to Notification to close it.</li>
|
|
116
|
-
<li>
|
|
126
|
+
<li>Accessibility fixes.</li>
|
|
117
127
|
<li>Improvements in docs.</li>
|
|
118
128
|
</ul>
|
|
119
129
|
<h3>v.8.11.0</h3>
|
|
@@ -137,7 +147,7 @@
|
|
|
137
147
|
<li>Fixed bugs in Checkboxes and Radio conditionals.</li>
|
|
138
148
|
<li>Added global function to select items in Listbox.</li>
|
|
139
149
|
<li>Added global function to open/close Collapsible and Dialog.</li>
|
|
140
|
-
<li>
|
|
150
|
+
<li>Accessibility improvements.</li>
|
|
141
151
|
<li>Improvements in Docs.</li>
|
|
142
152
|
</ul>
|
|
143
153
|
<h3>v.8.9.0</h3>
|
|
@@ -162,7 +172,7 @@
|
|
|
162
172
|
<ul class="text-sm">
|
|
163
173
|
<li>Added global function to select items and subitems in Menubar and Menu horizontal.</li>
|
|
164
174
|
<li>Now Tabs can have html inside their titles.</li>
|
|
165
|
-
<li>Improvements and better
|
|
175
|
+
<li>Improvements and better accessibility in docs.</li>
|
|
166
176
|
</ul>
|
|
167
177
|
<h3>v.8.6.0</h3>
|
|
168
178
|
<ul class="text-sm">
|
|
@@ -295,7 +305,7 @@
|
|
|
295
305
|
</ul>
|
|
296
306
|
<h3>v.7.0.1</h3>
|
|
297
307
|
<ul class="text-sm">
|
|
298
|
-
<li>
|
|
308
|
+
<li>Accessibility and docs improvements.</li>
|
|
299
309
|
</ul>
|
|
300
310
|
<h3>v.7.0.0</h3>
|
|
301
311
|
<ul class="text-sm">
|
|
@@ -361,14 +371,14 @@
|
|
|
361
371
|
<ul class="text-sm">
|
|
362
372
|
<li>Fixed bad vertical spacing in c-form-group that affected forms in desy-angular.</li>
|
|
363
373
|
<li>Minor fixes in listbox, dropdown and menubar for header modifier.</li>
|
|
364
|
-
<li>Minor
|
|
374
|
+
<li>Minor accessibility improvements.</li>
|
|
365
375
|
</ul>
|
|
366
376
|
<h3>v.6.2.0</h3>
|
|
367
377
|
<ul class="text-sm">
|
|
368
378
|
<li>Added classes for base modifiers in form components to improve responsive styles.</li>
|
|
369
379
|
<li>Added a listbox in Pagination to choose the items per page.</li>
|
|
370
380
|
<li>Item can position the icon with a new parameter.</li>
|
|
371
|
-
<li>
|
|
381
|
+
<li>Accessibility fixes and improvements in Accordion history, Menu navigation, Toggle examples, Footer.</li>
|
|
372
382
|
<li>Minor improvements in Table advanced.</li>
|
|
373
383
|
</ul>
|
|
374
384
|
<h3>v.6.1.0</h3>
|
|
@@ -402,7 +412,7 @@
|
|
|
402
412
|
<li>Searchbar: improvements and example for visible label.</li>
|
|
403
413
|
<li>File upload: added button styles.</li>
|
|
404
414
|
<li>Tree: fixed acc. Improved examples.</li>
|
|
405
|
-
<li>Toggle examples:
|
|
415
|
+
<li>Toggle examples: accessibility fixes.</li>
|
|
406
416
|
<li>Button: Added new modifier class for has selection as Dropdown. Improved dropdown has selection class.</li>
|
|
407
417
|
<li>Item: improved icons and text for screenreaders.</li>
|
|
408
418
|
<li>Button loader: fixed a bug that makes an error when no loader.text is provided</li>
|
|
@@ -446,7 +456,7 @@
|
|
|
446
456
|
</ul>
|
|
447
457
|
<h3>v.5.0.1</h3>
|
|
448
458
|
<ul class="text-sm">
|
|
449
|
-
<li>Fixed
|
|
459
|
+
<li>Fixed accessibility bad semantics in subnav. Added dropdown contentHtml rendering and example.</li>
|
|
450
460
|
</ul>
|
|
451
461
|
<h3>v.5.0.0</h3>
|
|
452
462
|
<ul class="text-sm">
|
|
@@ -454,8 +464,8 @@
|
|
|
454
464
|
</ul>
|
|
455
465
|
<h3>v.4.3.0</h3>
|
|
456
466
|
<ul class="text-sm">
|
|
457
|
-
<li>Added disabled and active param in menubar and fixed
|
|
458
|
-
<li>
|
|
467
|
+
<li>Added disabled and active param in menubar and fixed accessibility issues.</li>
|
|
468
|
+
<li>Accessibility fixes in menu horizontal.</li>
|
|
459
469
|
<li>Minor improvements in documentation.</li>
|
|
460
470
|
</ul>
|
|
461
471
|
<h3>v.4.2.1</h3>
|
|
@@ -480,7 +490,7 @@
|
|
|
480
490
|
</ul>
|
|
481
491
|
<h3>v.4.1.1</h3>
|
|
482
492
|
<ul class="text-sm">
|
|
483
|
-
<li>
|
|
493
|
+
<li>Accessibility improvements in header.</li>
|
|
484
494
|
</ul>
|
|
485
495
|
<h3>v.4.1.0</h3>
|
|
486
496
|
<ul class="text-sm">
|
|
@@ -508,7 +518,7 @@
|
|
|
508
518
|
<li>Added a new parameter in table advanced to show horizontal scrollbar in large tables and to apply classes to checkboxes.</li>
|
|
509
519
|
<li>Select has optgroups and new hidden parameter to mimic a placeholder.</li>
|
|
510
520
|
<li>Date input can be used now as time input using new divider parameters.</li>
|
|
511
|
-
<li>
|
|
521
|
+
<li>Accessibility improvements in table advanced, accordion</li>
|
|
512
522
|
<li>Fixes in notification, tooltip, modal, menu vertical, listbox, status item, </li>
|
|
513
523
|
<li>Improvements in many component examples. Added inline examples for input, textarea, character count and select. Added fixed columns in table examples.</li>
|
|
514
524
|
</ul>
|
|
@@ -520,21 +530,21 @@
|
|
|
520
530
|
</ul>
|
|
521
531
|
<h3>v.3.2.0</h3>
|
|
522
532
|
<ul class="text-sm">
|
|
523
|
-
<li>
|
|
533
|
+
<li>Accessibility and validation improvements in accordion, menu vertical, nav, pagination and tooltip.</li>
|
|
524
534
|
<li>Added new headingLevel parameter to control the heading hierarchy in accordion, error-summary, fieldset, label, modal, notification and tabs.</li>
|
|
525
535
|
<li>Javascript minor fixes.</li>
|
|
526
536
|
<li>Updated postcss npm dependencies.</li>
|
|
527
537
|
</ul>
|
|
528
538
|
<h3>v.3.1.3</h3>
|
|
529
539
|
<ul class="text-sm">
|
|
530
|
-
<li>Improved responsiveness and
|
|
540
|
+
<li>Improved responsiveness and accessibility in header.</li>
|
|
531
541
|
</ul>
|
|
532
542
|
<h3>v.3.1.2</h3>
|
|
533
543
|
<ul class="text-sm">
|
|
534
544
|
<li>Searchbar has a param to show a custom button instead of lens icon.</li>
|
|
535
545
|
<li>Date input can be better customized.</li>
|
|
536
546
|
<li>Fixed validation in: nav.</li>
|
|
537
|
-
<li>
|
|
547
|
+
<li>Accessibility improvements in: tooltip, modal, notification, button, menu vertical and listbox.</li>
|
|
538
548
|
</ul>
|
|
539
549
|
<h3>v.3.1.1</h3>
|
|
540
550
|
<ul class="text-sm">
|
|
@@ -546,7 +556,7 @@
|
|
|
546
556
|
<li>Changes in menu vertical component: Simplified html and parameters.</li>
|
|
547
557
|
<li>Changes in nav and pagination components: Changed parameters, roles and arias.</li>
|
|
548
558
|
<li>Improved w3c validation of all component examples.</li>
|
|
549
|
-
<li>
|
|
559
|
+
<li>Accessibility and bug fixes in notification, modal, table advanced, footer, header, dropdown and listboxes. </li>
|
|
550
560
|
</ul>
|
|
551
561
|
<h3>v.3.0.3</h3>
|
|
552
562
|
<ul class="text-sm">
|
|
@@ -569,7 +579,7 @@
|
|
|
569
579
|
<li>Added an optional ".dev" class to the body to be used in development environments.</li>
|
|
570
580
|
<li>Added open and close html comments in rendered html for each component.</li>
|
|
571
581
|
<li>Added an optional win-node-env dependency to allow node environment variables in Windows.</li>
|
|
572
|
-
<li>Many
|
|
582
|
+
<li>Many accessibility fixes and improvements in menubar, searchbar, header and offcanvas menu, pagination, modals, nav and footer.</li>
|
|
573
583
|
</ul>
|
|
574
584
|
<h3>v.2.1.3</h3>
|
|
575
585
|
<ul class="text-sm">
|
|
@@ -581,7 +591,7 @@
|
|
|
581
591
|
<li>Added element that acts as label for listbox and menubar for screenreaders.</li>
|
|
582
592
|
<li>Select error now goes before select.</li>
|
|
583
593
|
<li>Fixed bad positioned subnav dropdown in header.</li>
|
|
584
|
-
<li>Minor fixes and
|
|
594
|
+
<li>Minor fixes and accessibility improvements.</li>
|
|
585
595
|
</ul>
|
|
586
596
|
<h3>v.2.1.1</h3>
|
|
587
597
|
<ul class="text-sm">
|
|
@@ -605,13 +615,13 @@
|
|
|
605
615
|
</ul>
|
|
606
616
|
<h3>v.2.0.2</h3>
|
|
607
617
|
<ul class="text-sm">
|
|
608
|
-
<li>
|
|
618
|
+
<li>Accessibility improvements in: menu vertical, status item, notifications, alert, modals, dialog and tabs.</li>
|
|
609
619
|
</ul>
|
|
610
620
|
<h3>v.2.0.1</h3>
|
|
611
621
|
<ul class="text-sm">
|
|
612
622
|
<li>Fixed radios not checked if has no conditional.</li>
|
|
613
623
|
<li>Improvements in header: Added logo letters, offcanvas is now a dialog and traps focus inside. Removed extra navs.</li>
|
|
614
|
-
<li>
|
|
624
|
+
<li>Accessibility improvements in: pagination, offcanvas, header, menu vertical, modal, dialog, notification, alert, item, status item, tabs and focus styles.</li>
|
|
615
625
|
</ul>
|
|
616
626
|
<h3>v.2.0</h3>
|
|
617
627
|
<ul class="text-sm">
|
|
@@ -648,7 +658,7 @@
|
|
|
648
658
|
<li>Now package.json is being copied to build folder, in order to be published along the html files. This way we can track which version is online. You can see now the published <a href="/package.json">package.json here</a></li>
|
|
649
659
|
<li>Changed rounded corners to button, button-loader and dropdown. Now is smaller and has a more squared aspect, as the input and selects.</li>
|
|
650
660
|
<li>Added variants: group-hover and group-focus to display css properties. Now we can show/hide children elements on hover or focus.</li>
|
|
651
|
-
<li>Fixed bugs in
|
|
661
|
+
<li>Fixed bugs in accessibility in navs, and fixed a bug in dropdowns.</li>
|
|
652
662
|
</ul>
|
|
653
663
|
<h3>v.1.8.1</h3>
|
|
654
664
|
<ul class="text-sm">
|
package/package.json
CHANGED
package/src/css/styles.css
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
/* Framework components */
|
|
15
15
|
@import "tailwindcss/components";
|
|
16
16
|
/* Custom components */
|
|
17
|
-
@import "./component.text.css";
|
|
18
17
|
@import "../templates/components/alert/_styles.alert.css";
|
|
19
18
|
@import "../templates/components/breadcrumbs/_styles.breadcrumbs.css";
|
|
20
19
|
@import "../templates/components/button/_styles.button.css";
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
@import "../templates/components/select/_styles.select.css";
|
|
38
37
|
@import "../templates/components/spinner/_styles.spinner.css";
|
|
39
38
|
@import "../templates/components/skip-link/_styles.skip-link.css";
|
|
39
|
+
@import "../templates/components/table/_styles.table.css";
|
|
40
40
|
@import "../templates/components/table-advanced/_styles.table-advanced.css";
|
|
41
41
|
@import "../templates/components/tabs/_styles.tabs.css";
|
|
42
42
|
@import "../templates/components/toggle/_styles.toggle.css";
|
|
@@ -148,7 +148,8 @@
|
|
|
148
148
|
"html": 'Creado por <a href="https://sda.aragon.es/" class="c-link c-link--neutral">SDA Servicios Digitales de Aragón</a>'
|
|
149
149
|
},
|
|
150
150
|
"logo": {
|
|
151
|
-
"type": "FEADER"
|
|
151
|
+
"type": "FEADER",
|
|
152
|
+
"url": "https://www.fondoseuropeos.hacienda.gob.es/sitios/dgfc/es-ES/paginas/feader.aspx"
|
|
152
153
|
},
|
|
153
154
|
"classes": "lg:mt-48"
|
|
154
155
|
}
|
|
@@ -85,17 +85,17 @@ text-neutral-dark {{ params.classes if params.classes }}"
|
|
|
85
85
|
{% else %}
|
|
86
86
|
<p><a href="{%- if params.urlFeder or params.logo.url %}{%- if params.logo.url %} {{ params.logo.url }} {%- else -%} {{ params.urlFeder }}{% endif %} {%- else -%} https://www.aragon.es/-/fondos-europeos-aragon {% endif %}" class="inline-block text-sm c-link no-underline" title="Más información sobre los Fondos Europeos">
|
|
87
87
|
{% if params.logo.type == 'UE' %}
|
|
88
|
-
<span class="inline-block c-footer__logo c-footer__logo--ue"
|
|
88
|
+
<span class="inline-block c-footer__logo c-footer__logo--ue"><span class="sr-only">Cofinanciado por la Unión Europea.</span></span>
|
|
89
89
|
{% elseif params.logo.type == 'FSE+' %}
|
|
90
|
-
<span class="inline-block c-footer__logo c-footer__logo--fse"
|
|
90
|
+
<span class="inline-block c-footer__logo c-footer__logo--fse"><span class="sr-only">Cofinanciado por la Unión Europea. Fondo Social Europeo Plus (FSE+). Ministerio de Agricultura y Economía Social.</span></span>
|
|
91
91
|
{% elseif params.logo.type == 'FEDER' %}
|
|
92
|
-
<span class="inline-block c-footer__logo c-footer__logo--feder"
|
|
92
|
+
<span class="inline-block c-footer__logo c-footer__logo--feder"><span class="sr-only">Cofinanciado por la Unión Europea. Fondo Europeo de Desarrollo Regional (FEDER). Ministerio de Hacienda.</span></span>
|
|
93
93
|
{% elseif params.logo.type == 'FEADER' %}
|
|
94
|
-
<span class="inline-block c-footer__logo c-footer__logo--feader"
|
|
94
|
+
<span class="inline-block c-footer__logo c-footer__logo--feader"><span class="sr-only">Cofinanciado por la Unión Europea. Fondo Europeo Agrario de Desarrollo Rural (FEADER). Ministerio de Agricultura, Pesca y Alimentación.</span></span>
|
|
95
95
|
{% elseif params.logo.type == 'plurifondo' %}
|
|
96
|
-
<span class="inline-block c-footer__logo c-footer__logo--plurifondo"
|
|
96
|
+
<span class="inline-block c-footer__logo c-footer__logo--plurifondo"><span class="sr-only">Cofinanciado por la Unión Europea. Plurifondo. Gobierno de España.</span></span>
|
|
97
97
|
{% else %}
|
|
98
|
-
<span class="inline-block c-footer__logo c-footer__logo--feder"
|
|
98
|
+
<span class="inline-block c-footer__logo c-footer__logo--feder"><span class="sr-only">Cofinanciado por la Unión Europea. Fondo Europeo de Desarrollo Regional (FEDER). Ministerio de Hacienda.</span></span>
|
|
99
99
|
{% endif %}
|
|
100
100
|
</a></p>
|
|
101
101
|
{% endif %}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<a href="{{ params.homepageUrl | default('/') }}" class="flex flex-wrap mr-4 text-black focus:outline-none focus:shadow-outline-black">
|
|
29
29
|
{% if not params.noLogo %}
|
|
30
30
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 32" width="144" height="32" class="fill-current {% if params.expandedLogo %} hidden sm:block{% else %} hidden{% endif %}" aria-label="Ir a la página de inicio de la aplicación" role="img"><defs><clipPath id="b-logo-expanded"><path fill="rgb(252, 228, 0)" d="M0 0h31.509v31.495H0z"/></clipPath><clipPath id="a-logo-expanded"><path d="M0 0h144v32H0z"/></clipPath></defs><g clip-path="url(#a-logo-expanded)"><path fill="rgb(252, 228, 0)" d="M0 .205h31.509V31.7H0z"/><g clip-path="url(#b-logo-expanded)" transform="translate(0 .205)"><g fill="#dd171b" fill-rule="evenodd"><path d="m31.509 6.048-7.568 1.515a14.545 14.545 0 0 1-7.905-1.025 15.04 15.04 0 0 0-5-1.817 12.536 12.536 0 0 0-3.535-.011l-5.051.9c-.8.156-1.639.3-2.453.434V.315A7.1 7.1 0 0 1 3.888.226a9.926 9.926 0 0 1 2.085.936 17.6 17.6 0 0 0 4.293 1.962 13.92 13.92 0 0 0 6.6-.034l4.728-.858 4.939-.892 4.97-1.024ZM6.602 24.229a14.592 14.592 0 0 1 9.555 1.014 12.178 12.178 0 0 0 8.307 1.5l7.044-1.271v5.706a8.247 8.247 0 0 1-3.008.256 6.4 6.4 0 0 1-1.594-.457l-3.657-1.917a12.217 12.217 0 0 0-7.092-.825L1.026 31.011 0 31.177v-5.706l1.26-.256 3.312-.613c.669-.123 1.371-.245 2.029-.379ZM-.003 15.077v-4.391l13.027-2.377a15.5 15.5 0 0 1 9.11 1.638 12.535 12.535 0 0 0 8.474.925l.9-.189v4.391l-2.874-1.639a12.286 12.286 0 0 0-6.835-1.014l-8.006 1.46c-.959.179-2.877.524-2.877.524l-7.292 1.349a5.152 5.152 0 0 1-3.627-.677ZM31.509 16.583v4.324L18.6 23.282a15.5 15.5 0 0 1-9.11-1.638 12.532 12.532 0 0 0-8.474-.925l-1.015.19v-4.324l2.988 1.572a12.291 12.291 0 0 0 6.835 1.014l8.006-1.46c.959-.178 2.877-.524 2.877-.524l7.292-1.349a5.142 5.142 0 0 1 3.51.745Z"/></g></g><path d="M38.2 28.807v-8.551h1.393c2.893 0 4.478 1.522 4.478 4.286 0 2.829-1.521 4.265-4.5 4.265Zm10.4-11.4v14.294h9.47v-2.893h-6.277v-3.257h6.214v-2.893h-6.214v-2.379h6.277v-2.871Zm21.751 0-5.206 14.294h3.385l1.542-4.35h4.371l1.521 4.35h3.45L74.1 17.407Zm1.885 2.956-1.328 4.223h2.679Zm42.341 4.03h-3.192v4.5a4.206 4.206 0 0 1-1.371.193 4.251 4.251 0 0 1-4.242-4.5 4.443 4.443 0 0 1 4.735-4.65 7.481 7.481 0 0 1 4.071 1.243v-3.257a11.674 11.674 0 0 0-4.349-.857c-4.628 0-7.841 3.107-7.841 7.564 0 4.393 3.149 7.372 7.841 7.372a12.977 12.977 0 0 0 4.349-.75Zm16.132.129a7.424 7.424 0 1 0-7.391 7.436 7.122 7.122 0 0 0 7.393-7.436Zm-7.456-4.458c-2.4 0-4.006 1.822-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.627-4.501-4.048-4.501Zm8.689-2.657v14.294h3.257v-9.108l5.762 9.108h3.021V17.407h-3.256v8.889l-5.532-8.889ZM46.922 7.33h-3.193v4.5a4.335 4.335 0 0 1-5.613-4.307 4.443 4.443 0 0 1 4.735-4.65 7.487 7.487 0 0 1 4.071 1.243V.859a11.674 11.674 0 0 0-4.35-.858c-4.628 0-7.841 3.107-7.841 7.565 0 4.393 3.15 7.371 7.841 7.371a12.99 12.99 0 0 0 4.35-.75Zm16.116.128a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.396-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM64.107.344v14.293h5.914c3.15 0 4.992-1.565 4.992-4.243a3.717 3.717 0 0 0-2.978-3.728 3.133 3.133 0 0 0 1.95-2.936c.021-2.272-1.521-3.386-4.606-3.386Zm4.757 5.336c1.393 0 1.95-.386 1.95-1.35 0-.921-.536-1.264-2.057-1.264h-1.393V5.68Zm.429 6.043c1.585 0 2.271-.493 2.271-1.651 0-1.2-.707-1.671-2.4-1.671h-1.8v3.322ZM78.879.344h-3.192v14.293h3.192Zm1.39 0v14.293h9.47v-2.893h-6.278V8.487h6.214V5.594h-6.214V3.216h6.278V.345Zm50.463 7.114a7.424 7.424 0 1 0-7.392 7.436 7.122 7.122 0 0 0 7.395-7.436Zm-7.456-4.457c-2.4 0-4.006 1.821-4.006 4.5s1.65 4.5 4.071 4.5c2.4 0 3.985-1.8 3.985-4.5s-1.626-4.5-4.047-4.5ZM97.917 24.585l-1.35-4.223-1.328 4.223ZM83.249 31.7v-5.872h.407c2.057 0 2.271.214 3.642 3.75a7.159 7.159 0 0 0 .3.729l.278.664a6.4 6.4 0 0 0 .343.729h4.641l1.543-4.35h4.371l1.521 4.35h3.45l-5.314-14.294h-3.749L90.46 28.997c-.3-.622-.642-1.371-1.04-2.291a3.042 3.042 0 0 0-1.907-2.014 3.416 3.416 0 0 0 2.614-3.429c0-2.571-1.693-3.857-5.1-3.857H79.97V31.7Zm0-8.572h1.414c1.371 0 2.057-.493 2.057-1.521s-.622-1.478-2.014-1.478h-1.457Zm11.156-8.492V8.764h.407c2.057 0 2.271.214 3.642 3.75a6.982 6.982 0 0 0 .3.729l.278.665a6.37 6.37 0 0 0 .342.729h6.432l.018-9.169 5.745 9.169h3.021V.344h-3.256l.014 8.769-5.542-8.769h-3.257v13.3a29.76 29.76 0 0 1-1.975-4 3.043 3.043 0 0 0-1.907-2.014 3.415 3.415 0 0 0 2.614-3.428c0-2.572-1.693-3.857-5.1-3.857h-5.054v14.293Zm0-8.572h1.412c1.371 0 2.056-.493 2.056-1.521s-.621-1.478-2.013-1.478h-1.457Zm-59.44 11.342V31.7h4.778c4.842 0 7.692-2.657 7.692-7.158 0-4.479-2.914-7.136-7.863-7.136Z" fill="#161615" fill-rule="evenodd"/></g></svg>
|
|
31
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" class="w-8 h-8 fill-current {%- if params.expandedLogo %} sm:hidden{% endif %}" aria-label="
|
|
31
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" class="w-8 h-8 fill-current {%- if params.expandedLogo %} sm:hidden{% endif %}" aria-label="Ir a la página de inicio de la aplicación" role="img"><defs><clipPath id="b-logo-mini"><path fill="rgb(252, 228, 0)" d="M0 0h32v32.001H0z"/></clipPath><clipPath id="a-logo-mini"><path d="M0 0h32v32H0z"/></clipPath></defs><g clip-path="url(#a-logo-mini)"><path fill="rgb(252, 228, 0)" d="M0 .305h32v32.001H0z"/><g clip-path="url(#b-logo-mini)" transform="translate(0 .305)"><g fill="#dd171b" fill-rule="evenodd"><path d="m31.997 6.145-7.686 1.539a14.764 14.764 0 0 1-8.028-1.042 15.267 15.267 0 0 0-5.073-1.846 12.725 12.725 0 0 0-3.59-.011l-5.13.918a94.41 94.41 0 0 1-2.491.442V.324a7.213 7.213 0 0 1 3.952-.09 10.087 10.087 0 0 1 2.118.951 17.859 17.859 0 0 0 4.36 1.993 14.13 14.13 0 0 0 6.7-.034l4.8-.872 5.016-.906 5.048-1.04ZM6.705 24.619a14.812 14.812 0 0 1 9.7 1.03 12.363 12.363 0 0 0 8.437 1.529l7.154-1.291v5.8a8.37 8.37 0 0 1-3.055.26 6.509 6.509 0 0 1-1.619-.464l-3.714-1.948a12.4 12.4 0 0 0-7.2-.838l-15.366 2.82L0 31.686v-5.8l1.28-.26 3.363-.623c.679-.125 1.393-.249 2.061-.385ZM-.003 15.32v-4.462l13.23-2.417a15.734 15.734 0 0 1 9.252 1.665 12.723 12.723 0 0 0 8.606.94l.914-.192v4.462L29.08 13.65a12.472 12.472 0 0 0-6.941-1.031l-8.131 1.483c-.974.182-2.921.532-2.921.532l-7.406 1.371a5.23 5.23 0 0 1-3.684-.685ZM31.997 16.851v4.393l-13.11 2.413a15.735 15.735 0 0 1-9.252-1.665 12.721 12.721 0 0 0-8.606-.94l-1.03.193v-4.394l3.035 1.6a12.476 12.476 0 0 0 6.941 1.03l8.13-1.483c.974-.182 2.922-.532 2.922-.532l7.406-1.371a5.219 5.219 0 0 1 3.564.756Z"/></g></g></g></svg>
|
|
32
32
|
{% endif %}
|
|
33
33
|
{{ params.customLogoHtml | safe if params.customLogoHtml }}
|
|
34
34
|
</a>
|
|
@@ -888,34 +888,57 @@
|
|
|
888
888
|
},
|
|
889
889
|
{
|
|
890
890
|
"name": "con ids individuales",
|
|
891
|
-
"description": 'Mostrar código para ver los <code>id</code> aplicados',
|
|
892
891
|
"data": {
|
|
893
|
-
"idPrefix": "
|
|
892
|
+
"idPrefix": "ids-example",
|
|
894
893
|
"items": [
|
|
895
894
|
{
|
|
896
|
-
"
|
|
897
|
-
"
|
|
898
|
-
"
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
895
|
+
"text": "Definidos explícitamente",
|
|
896
|
+
"id": "ids-item-1",
|
|
897
|
+
"sub": {
|
|
898
|
+
"items": [
|
|
899
|
+
{
|
|
900
|
+
"href": "#",
|
|
901
|
+
"text": "Subitem 1",
|
|
902
|
+
"id": "ids-subitem-1"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"href": "#",
|
|
906
|
+
"text": "Subitem 2",
|
|
907
|
+
"id": "ids-subitem-2"
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
"href": "#",
|
|
911
|
+
"text": "Subitem 3",
|
|
912
|
+
"id": "ids-subitem-3"
|
|
913
|
+
}
|
|
914
|
+
],
|
|
915
|
+
"attributes": {
|
|
916
|
+
"aria-labelledby": "ids-item-1"
|
|
917
|
+
}
|
|
918
|
+
}
|
|
914
919
|
},
|
|
915
920
|
{
|
|
916
|
-
"
|
|
917
|
-
"
|
|
918
|
-
"
|
|
921
|
+
"text": "Generados automáticamente",
|
|
922
|
+
"id": "ids-item-2",
|
|
923
|
+
"sub": {
|
|
924
|
+
"items": [
|
|
925
|
+
{
|
|
926
|
+
"href": "#",
|
|
927
|
+
"text": "Subitem 1"
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
"href": "#",
|
|
931
|
+
"text": "Subitem 2"
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
"href": "#",
|
|
935
|
+
"text": "Subitem 3"
|
|
936
|
+
}
|
|
937
|
+
],
|
|
938
|
+
"attributes": {
|
|
939
|
+
"aria-labelledby": "ids-item-2"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
919
942
|
}
|
|
920
943
|
],
|
|
921
944
|
"attributes": {
|
|
@@ -47,9 +47,9 @@
|
|
|
47
47
|
{%- else -%}
|
|
48
48
|
{%- set subId = "sub-" + id + "-" + loop.index -%}
|
|
49
49
|
{%- endif %}
|
|
50
|
-
{% set commonSubItemAttributes %}{% if subId %} id="{{ subId }}"{% endif %} {%- if subitem.title %} title="{{ subitem.title }}"{% endif %} {%- for attribute, value in subitem.attributes %} {{ attribute }}="{{ value }}"{% endfor %}{% endset %}
|
|
50
|
+
{% set commonSubItemAttributes %}{% if subId %} id="{{ subId }}"{% else %} id="subitem-{{ loop.index }}"{% endif %} {%- if subitem.title %} title="{{ subitem.title }}"{% endif %} {%- for attribute, value in subitem.attributes %} {{ attribute }}="{{ value }}"{% endfor %}{% endset %}
|
|
51
51
|
<li>
|
|
52
|
-
<a {%- if subitem.active %} aria-current="page"{% endif %}
|
|
52
|
+
<a {%- if subitem.active %} aria-current="page"{% endif %} href="{{ subitem.href }}" class="flex items-center px-base py-sm text-sm hover:bg-primary-base hover:text-white focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black{%- if subitem.classes %} {{ subitem.classes }}{% endif -%} {%- if subitem.disabled %} pointer-events-none{% endif -%}" {%- if subitem.disabled %} tabindex="-1"{% endif -%} {%- if subitem.target %} target="{{ subitem.target }}"{% endif %} {{- commonSubItemAttributes | safe }}>
|
|
53
53
|
{{ subitem.html | safe if subitem.html else subitem.text }}
|
|
54
54
|
{% if subitem.disabled %}
|
|
55
55
|
<svg viewBox="0 0 140 140" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg" class="inline-block align-middle flex-initial ml-sm text-neutral-base fill-current" aria-hidden="true" focusable="false" ><path d="M70 0a70 70 0 1070 70A70.08 70.08 0 0070 0zM20 70a50 50 0 0174.8-43.4 2.51 2.51 0 011.23 1.84 2.48 2.48 0 01-.71 2.1L30.54 95.32a2.51 2.51 0 01-3.94-.52A49.63 49.63 0 0120 70zm100 0a50 50 0 01-74.8 43.4 2.51 2.51 0 01-1.23-1.84 2.48 2.48 0 01.71-2.1l64.78-64.78a2.51 2.51 0 013.94.52A49.63 49.63 0 01120 70z"/></svg>
|
|
@@ -100,6 +100,10 @@
|
|
|
100
100
|
"id": params.id + "-listbox",
|
|
101
101
|
"name": params.id + "-listbox",
|
|
102
102
|
"text": "Página " + params.items[activePosition].text,
|
|
103
|
+
"label": {
|
|
104
|
+
"text": "Selecciona una página",
|
|
105
|
+
"classes": "sr-only"
|
|
106
|
+
},
|
|
103
107
|
"classes": "c-select--sm c-select--transparent",
|
|
104
108
|
"formGroup": {
|
|
105
109
|
"classes": "-mt-sm mb-0 mr-xs"
|
|
@@ -152,7 +156,7 @@
|
|
|
152
156
|
}) | indent(4) }}
|
|
153
157
|
</div>
|
|
154
158
|
{% endif %}
|
|
155
|
-
<p class="block relative -top-xs lg:ml-auto text-sm text-neutral-dark">
|
|
159
|
+
<p id="{{ params.idPrefix }}-status" class="block relative -top-xs lg:ml-auto text-sm text-neutral-dark" role="status" aria-live="polite">
|
|
156
160
|
<span class="sr-only">Posición de paginación: </span>{{ activePosition | int * params.itemsPerPage | int }} - {{ (activePosition | int + 1) * params.itemsPerPage | int }} de {{ params.totalItems }}
|
|
157
161
|
</p>
|
|
158
162
|
</div>
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
"description": 'Usa el parámetro <code>wrapper</code> para rodear la tabla con un <code><div></code> y poder añadir clases, normalmente para hacer scroll horizontal en la tabla en anchuras pequeñas.',
|
|
204
204
|
"data": {
|
|
205
205
|
"caption": "Caption 1: Meses y pagos",
|
|
206
|
-
"captionClasses": "sticky left-0 w-0 mb-base font-bold text-left text-lg lg:whitespace-nowrap",
|
|
206
|
+
"captionClasses": "sticky left-0 top-0 w-0 mb-base font-bold text-left text-lg lg:whitespace-nowrap",
|
|
207
207
|
"firstCellIsHeader": true,
|
|
208
208
|
"head": [
|
|
209
209
|
{
|
|
@@ -393,6 +393,64 @@
|
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
},
|
|
396
|
+
{
|
|
397
|
+
"name": "tabla no responsive",
|
|
398
|
+
"description": 'Usa la clase modificadora <code>.c-table--no-responsive</code> junto al parámetro <code>wrapper</code> para tablas que usen rowspan o colspan o tablas que no queremos que muestren sus celdas apiladas en móvil.',
|
|
399
|
+
"data": {
|
|
400
|
+
"classes": "c-table--no-responsive w-full",
|
|
401
|
+
"caption": "Caption 1: Meses y pagos",
|
|
402
|
+
"captionClasses": "mb-base font-bold text-left text-lg",
|
|
403
|
+
"firstCellIsHeader": true,
|
|
404
|
+
"head": [
|
|
405
|
+
{
|
|
406
|
+
"text": "Mes de pago",
|
|
407
|
+
"classes": "lg:whitespace-nowrap"
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"text": "Primer pago",
|
|
411
|
+
"classes": "lg:whitespace-nowrap lg:text-right"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"text": "Segundo pago",
|
|
415
|
+
"classes": "lg:whitespace-nowrap lg:text-right"
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"rows": [
|
|
419
|
+
[
|
|
420
|
+
{
|
|
421
|
+
"text": "Enero"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"text": "85€",
|
|
425
|
+
"classes": "text-center",
|
|
426
|
+
"rowspan": 2,
|
|
427
|
+
"colspan": 2
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
[
|
|
431
|
+
{
|
|
432
|
+
"text": "Febrero"
|
|
433
|
+
}
|
|
434
|
+
],
|
|
435
|
+
[
|
|
436
|
+
{
|
|
437
|
+
"text": "Marzo"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"text": "165€",
|
|
441
|
+
"classes": "lg:text-right"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"text": "125€",
|
|
445
|
+
"classes": "lg:text-right"
|
|
446
|
+
}
|
|
447
|
+
]
|
|
448
|
+
],
|
|
449
|
+
"wrapper": {
|
|
450
|
+
"classes": "relative overflow-x-auto pb-base"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
396
454
|
{
|
|
397
455
|
"name": "table con columnas sticky",
|
|
398
456
|
"description": 'En este ejemplo la primera y última columna se mantienen fijas y el resto hacen scroll horizontal si la anchura es pequeña.',
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
_styles.table.css
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
@layer components {
|
|
6
|
+
.c-table--no-responsive {
|
|
7
|
+
tr {
|
|
8
|
+
@apply table-row;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
td {
|
|
12
|
+
@apply table-cell;
|
|
13
|
+
@apply before:content-none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
th{
|
|
17
|
+
@apply before:content-none;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
{%- if cell.rowspan %} rowspan="{{ cell.rowspan }}"{% endif %}{% for attribute, value in cell.attributes %} {{ attribute }}="{{ value }}"{% endfor %}
|
|
31
31
|
{% endset %}
|
|
32
32
|
{% if loop.first and params.firstCellIsHeader %}
|
|
33
|
-
<th scope="row" class="block lg:table-cell
|
|
33
|
+
<th scope="row" class="block lg:table-cell before:block before:text-neutral-dark before:lg:hidden before:content-[attr(data-label)] before:text-sm align-top px-base py-sm text-left font-normal text-sm text-neutral-dark{%- if cell.classes %} {{ cell.classes }}{% endif %}"
|
|
34
34
|
{{- commonAttributes | safe -}}
|
|
35
35
|
>{{ cell.html | safe if cell.html else cell.text }}</th>
|
|
36
36
|
{% else %}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/* ==========================================================================
|
|
2
|
-
text.css
|
|
3
|
-
========================================================================== */
|
|
4
|
-
|
|
5
|
-
@layer components {
|
|
6
|
-
.c-h0 {
|
|
7
|
-
@apply mb-8;
|
|
8
|
-
font-size: 2.5rem;
|
|
9
|
-
@apply font-bold;
|
|
10
|
-
@apply leading-tight;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.c-h1 {
|
|
14
|
-
@apply mb-lg;
|
|
15
|
-
@apply text-3xl;
|
|
16
|
-
@apply font-bold;
|
|
17
|
-
@apply leading-tight;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.c-h2 {
|
|
21
|
-
@apply mb-base;
|
|
22
|
-
@apply text-2xl;
|
|
23
|
-
@apply font-bold;
|
|
24
|
-
@apply leading-tight;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.c-h3 {
|
|
28
|
-
@apply mb-sm;
|
|
29
|
-
@apply text-lg;
|
|
30
|
-
@apply font-bold;
|
|
31
|
-
@apply leading-tight;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.c-h4 {
|
|
35
|
-
@apply mb-sm;
|
|
36
|
-
@apply text-base;
|
|
37
|
-
@apply font-bold;
|
|
38
|
-
@apply leading-tight;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.c-link {
|
|
42
|
-
@apply text-primary-base;
|
|
43
|
-
@apply underline;
|
|
44
|
-
|
|
45
|
-
&:hover {
|
|
46
|
-
@apply text-primary-dark;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:focus {
|
|
50
|
-
@apply bg-warning-base;
|
|
51
|
-
@apply shadow-outline-focus;
|
|
52
|
-
@apply outline-none;
|
|
53
|
-
@apply text-black;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.c-link--alert {
|
|
58
|
-
@apply text-alert-base;
|
|
59
|
-
@apply underline;
|
|
60
|
-
@apply font-semibold;
|
|
61
|
-
|
|
62
|
-
&:hover {
|
|
63
|
-
@apply text-alert-dark;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.c-link--neutral {
|
|
68
|
-
@apply text-neutral-dark;
|
|
69
|
-
@apply underline;
|
|
70
|
-
|
|
71
|
-
&:hover {
|
|
72
|
-
@apply text-black;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.c-link--full {
|
|
77
|
-
&::after {
|
|
78
|
-
content:"";
|
|
79
|
-
@apply absolute;
|
|
80
|
-
@apply inset-0;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.c-paragraph-lg {
|
|
85
|
-
@apply mb-lg;
|
|
86
|
-
@apply text-lg;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.c-paragraph-base {
|
|
90
|
-
@apply mb-base;
|
|
91
|
-
@apply text-base;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.c-paragraph-sm {
|
|
95
|
-
@apply mb-sm;
|
|
96
|
-
@apply text-sm;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.c-ul {
|
|
100
|
-
@apply mb-base;
|
|
101
|
-
@apply list-none;
|
|
102
|
-
|
|
103
|
-
li {
|
|
104
|
-
@apply relative;
|
|
105
|
-
@apply mb-base;
|
|
106
|
-
@apply pl-8;
|
|
107
|
-
|
|
108
|
-
&::before {
|
|
109
|
-
content: "";
|
|
110
|
-
@apply absolute;
|
|
111
|
-
top: .625rem;
|
|
112
|
-
left: .25rem;
|
|
113
|
-
@apply w-1.5;
|
|
114
|
-
@apply h-1.5;
|
|
115
|
-
@apply bg-black;
|
|
116
|
-
@apply rounded-full;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
&:last-of-type {
|
|
120
|
-
@apply mb-0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.c-ul--no-bullets {
|
|
126
|
-
li {
|
|
127
|
-
@apply pl-0;
|
|
128
|
-
|
|
129
|
-
&::before {
|
|
130
|
-
@apply hidden;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.c-ol {
|
|
136
|
-
@apply mb-base;
|
|
137
|
-
counter-reset: list-counter;
|
|
138
|
-
|
|
139
|
-
li {
|
|
140
|
-
@apply relative;
|
|
141
|
-
@apply mb-base;
|
|
142
|
-
@apply pl-8;
|
|
143
|
-
|
|
144
|
-
&::before {
|
|
145
|
-
counter-increment: list-counter;
|
|
146
|
-
content: counter(list-counter) ".";
|
|
147
|
-
@apply absolute;
|
|
148
|
-
left: .25rem;
|
|
149
|
-
@apply text-black;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&:last-of-type {
|
|
153
|
-
@apply mb-0;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|