desy-html 11.0.2 → 11.0.4
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 +1 -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 +11 -0
- package/package.json +1 -1
- package/src/css/component.text.css +139 -138
- package/src/css/styles.css +1 -0
- package/src/templates/components/footer/_examples.footer.njk +2 -1
- package/src/templates/components/footer/_template.footer.njk +7 -7
- 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 +4 -0
- 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
|
@@ -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,17 @@
|
|
|
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.4</h3>
|
|
42
|
+
<ul class="text-sm">
|
|
43
|
+
<li>Fixed previous responsive with Tailwind CSS breakpoint prefixes.</li>
|
|
44
|
+
<li>Changed footer text size in mobile.</li>
|
|
45
|
+
</ul>
|
|
46
|
+
<h3>v.11.0.3</h3>
|
|
47
|
+
<ul class="text-sm">
|
|
48
|
+
<li>Text styles are now responsive with Tailwind CSS breakpoint prefixes.</li>
|
|
49
|
+
<li>Added Table modifier to not stack cells in mobile.</li>
|
|
50
|
+
<li>Accessibility fixes.</li>
|
|
51
|
+
</ul>
|
|
41
52
|
<h3>v.11.0.2</h3>
|
|
42
53
|
<ul class="text-sm">
|
|
43
54
|
<li>Accessibility fixes.</li>
|
package/package.json
CHANGED
|
@@ -2,156 +2,157 @@
|
|
|
2
2
|
text.css
|
|
3
3
|
========================================================================== */
|
|
4
4
|
|
|
5
|
-
@layer components {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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;
|
|
5
|
+
@layer components {
|
|
6
|
+
.c-h0 {
|
|
7
|
+
@apply mb-8;
|
|
8
|
+
font-size: 2.5rem;
|
|
9
|
+
@apply font-bold;
|
|
10
|
+
@apply leading-tight;
|
|
47
11
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
@apply
|
|
51
|
-
@apply
|
|
52
|
-
@apply
|
|
53
|
-
@apply
|
|
12
|
+
|
|
13
|
+
.c-h1 {
|
|
14
|
+
@apply mb-lg;
|
|
15
|
+
@apply text-3xl;
|
|
16
|
+
@apply font-bold;
|
|
17
|
+
@apply leading-tight;
|
|
54
18
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
&:hover {
|
|
63
|
-
@apply text-alert-dark;
|
|
19
|
+
|
|
20
|
+
.c-h2 {
|
|
21
|
+
@apply mb-base;
|
|
22
|
+
@apply text-2xl;
|
|
23
|
+
@apply font-bold;
|
|
24
|
+
@apply leading-tight;
|
|
64
25
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
&:hover {
|
|
72
|
-
@apply text-black;
|
|
26
|
+
|
|
27
|
+
.c-h3 {
|
|
28
|
+
@apply mb-sm;
|
|
29
|
+
@apply text-lg;
|
|
30
|
+
@apply font-bold;
|
|
31
|
+
@apply leading-tight;
|
|
73
32
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
@apply
|
|
80
|
-
@apply inset-0;
|
|
33
|
+
|
|
34
|
+
.c-h4 {
|
|
35
|
+
@apply mb-sm;
|
|
36
|
+
@apply text-base;
|
|
37
|
+
@apply font-bold;
|
|
38
|
+
@apply leading-tight;
|
|
81
39
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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;
|
|
40
|
+
|
|
41
|
+
.c-link {
|
|
42
|
+
@apply text-primary-base;
|
|
43
|
+
@apply underline;
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
@apply text-primary-dark;
|
|
117
47
|
}
|
|
118
|
-
|
|
119
|
-
&:
|
|
120
|
-
@apply
|
|
48
|
+
|
|
49
|
+
&:focus {
|
|
50
|
+
@apply bg-warning-base;
|
|
51
|
+
@apply shadow-outline-focus;
|
|
52
|
+
@apply outline-none;
|
|
53
|
+
@apply text-black;
|
|
121
54
|
}
|
|
122
55
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
@apply
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
@apply
|
|
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;
|
|
131
64
|
}
|
|
132
65
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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;
|
|
66
|
+
|
|
67
|
+
.c-link--neutral {
|
|
68
|
+
@apply text-neutral-dark;
|
|
69
|
+
@apply underline;
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
149
72
|
@apply text-black;
|
|
150
73
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
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
|
+
}
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
+
|
package/src/css/styles.css
CHANGED
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
@import "../templates/components/select/_styles.select.css";
|
|
38
38
|
@import "../templates/components/spinner/_styles.spinner.css";
|
|
39
39
|
@import "../templates/components/skip-link/_styles.skip-link.css";
|
|
40
|
+
@import "../templates/components/table/_styles.table.css";
|
|
40
41
|
@import "../templates/components/table-advanced/_styles.table-advanced.css";
|
|
41
42
|
@import "../templates/components/tabs/_styles.tabs.css";
|
|
42
43
|
@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
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!-- footer -->
|
|
2
|
-
<footer class="py-base bg-neutral-lighter border-t border-neutral-base text-
|
|
2
|
+
<footer class="py-base bg-neutral-lighter border-t border-neutral-base text-base lg:text-sm
|
|
3
3
|
text-neutral-dark {{ params.classes if params.classes }}"
|
|
4
4
|
{%- for attribute, value in params.attributes %} {{attribute}}="{{value}}"{% endfor %}>
|
|
5
5
|
<div class="container mx-auto px-base {{ params.containerClasses if params.containerClasses }}">
|
|
@@ -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 %}
|
|
@@ -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"
|
|
@@ -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 %}
|