desy-html 11.0.3 → 11.0.5

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.
@@ -212,140 +212,7 @@ export const theme = {
212
212
  },
213
213
  },
214
214
  }
215
-
216
- const plugin = require('tailwindcss/plugin')
217
-
218
215
  export const plugins = [
219
216
  require('@tailwindcss/forms'),
220
217
  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
- }
351
218
  ]
@@ -107,111 +107,122 @@
107
107
  </ul>
108
108
  <div class="pb-2xl"></div>
109
109
 
110
+ {% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
110
111
  {{ DSSubsectionTitle({
111
- title: "Enlaces"
112
+ title: "Párrafos"
112
113
  }) }}
113
114
  <ul class="divide-y divide-neutral-base">
114
115
  <li>
115
116
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
116
117
  <dt class="col-span-2 lg:col-span-2">
117
- <p>Esto es un <a href="#" class="c-link">enlace</a> en un texto.</p>
118
+ <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>
118
119
  </dt>
119
120
  <dd class="col-span-2 lg:col-span-2">
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>
121
+ <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>
121
122
  </dd>
122
123
  </dl>
123
124
  </li>
124
125
  <li>
125
126
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
126
127
  <dt class="col-span-2 lg:col-span-2">
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>
128
+ <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>
128
129
  </dt>
129
130
  <dd class="col-span-2 lg:col-span-2">
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>
131
+ <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>
131
132
  </dd>
132
133
  </dl>
133
134
  </li>
134
135
  <li>
135
136
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
136
137
  <dt class="col-span-2 lg:col-span-2">
137
- <p>Esto es un <a href="#" class="c-link c-link--alert">enlace</a> en una notificación de error.</p>
138
+ <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>
138
139
  </dt>
139
140
  <dd class="col-span-2 lg:col-span-2">
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>
141
+ <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>
141
142
  </dd>
142
143
  </dl>
143
144
  </li>
144
145
  <li>
145
146
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
146
- <dt class="col-span-2 lg:col-span-2 p-base border border-neutral-base rounded relative hover:bg-neutral-light">
147
- <a href="#" class="c-link c-link--full">Esto es un contenedor con enlace</a>
147
+ <dt class="col-span-2 lg:col-span-2">
148
+ <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>
148
149
  </dt>
149
150
  <dd class="col-span-2 lg:col-span-2">
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>
151
+ <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>
152
+ </dd>
153
+ </dl>
154
+ </li>
155
+ <li>
156
+ <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
157
+ <dt class="col-span-2 lg:col-span-2">
158
+ <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>
159
+ </dt>
160
+ <dd class="col-span-2 lg:col-span-2 mb-lg">
161
+ <p class="text-neutral-dark text-sm">Párrafo pequeño secundario. <br><code>.c-paragraph-sm.text-neutral-dark</code><br><code>normal</code> - <code>neutral-dark</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>
151
162
  </dd>
152
163
  </dl>
153
164
  </li>
154
165
  </ul>
155
166
  <div class="pb-2xl"></div>
156
167
 
157
- {% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
158
168
  {{ DSSubsectionTitle({
159
- title: "Párrafos"
169
+ title: "Enlaces"
160
170
  }) }}
161
171
  <ul class="divide-y divide-neutral-base">
162
172
  <li>
163
173
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
164
174
  <dt class="col-span-2 lg:col-span-2">
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>
175
+ <p>Esto es un <a href="#" class="c-link">enlace</a> en un texto.</p>
166
176
  </dt>
167
177
  <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>
178
+ <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>
169
179
  </dd>
170
180
  </dl>
171
181
  </li>
172
182
  <li>
173
183
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
174
184
  <dt class="col-span-2 lg:col-span-2">
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>
185
+ <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>
176
186
  </dt>
177
187
  <dd class="col-span-2 lg:col-span-2">
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>
188
+ <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>
179
189
  </dd>
180
190
  </dl>
181
191
  </li>
182
192
  <li>
183
193
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
184
194
  <dt class="col-span-2 lg:col-span-2">
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>
195
+ <p >Esto es un <a href="#" class="c-link c-link--alert">enlace</a> en una notificación de error.</p>
186
196
  </dt>
187
197
  <dd class="col-span-2 lg:col-span-2">
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>
198
+ <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>
189
199
  </dd>
190
200
  </dl>
191
201
  </li>
192
202
  <li>
193
203
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
194
204
  <dt class="col-span-2 lg:col-span-2">
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>
205
+ <p class="text-neutral-dark">Esto es un <a href="#" class="c-link c-link--neutral">enlace</a> en un texto secundario.</p>
196
206
  </dt>
197
207
  <dd class="col-span-2 lg:col-span-2">
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>
208
+ <p class="text-neutral-dark text-sm"><code>.c-link.c-link--neutral</code> - <code>normal</code> - <code>underline</code> - <code>neutral-dark</code> - hover: <code>black</code></p>
199
209
  </dd>
200
210
  </dl>
201
211
  </li>
202
212
  <li>
203
213
  <dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
204
- <dt class="col-span-2 lg:col-span-2">
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>
214
+ <dt class="col-span-2 lg:col-span-2 p-base border border-neutral-base rounded relative hover:bg-neutral-light">
215
+ <a href="#" class="c-link c-link--full">Esto es un contenedor con enlace</a>
206
216
  </dt>
207
- <dd class="col-span-2 lg:col-span-2 mb-lg">
208
- <p class="text-neutral-dark text-sm">Párrafo pequeño secundario. <br><code>.c-paragraph-sm.text-neutral-dark</code><br><code>normal</code> - <code>neutral-dark</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>
217
+ <dd class="col-span-2 lg:col-span-2">
218
+ <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>
209
219
  </dd>
210
220
  </dl>
211
221
  </li>
212
222
  </ul>
213
223
  <div class="pb-2xl"></div>
214
224
 
225
+
215
226
  {% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
216
227
  {{ DSSubsectionTitle({
217
228
  title: "Listas"
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.5</h3>
42
+ <ul class="text-sm">
43
+ <li>Minor fixes in breadcrumbs.</li>
44
+ <li>Added default font size and line height to body to improve accessibility.</li>
45
+ </ul>
46
+ <h3>v.11.0.4</h3>
47
+ <ul class="text-sm">
48
+ <li>Fixed previous responsive with Tailwind CSS breakpoint prefixes.</li>
49
+ <li>Changed footer text size in mobile.</li>
50
+ </ul>
41
51
  <h3>v.11.0.3</h3>
42
52
  <ul class="text-sm">
43
53
  <li>Text styles are now responsive with Tailwind CSS breakpoint prefixes.</li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "desy-html",
3
- "version": "11.0.3",
3
+ "version": "11.0.5",
4
4
  "description": "desy-html contains the code you need to start building a user interface for Gobierno de Aragón government webapps.",
5
5
  "type": "module",
6
6
  "author": {
package/src/css/base.css CHANGED
@@ -10,6 +10,8 @@
10
10
  body {
11
11
  @apply bg-white;
12
12
  @apply text-black;
13
+ @apply text-base;
14
+ @apply leading-normal;
13
15
 
14
16
  &.dev {
15
17
  @apply bg-repeat;
@@ -0,0 +1,158 @@
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
+ }
158
+
@@ -14,6 +14,7 @@
14
14
  /* Framework components */
15
15
  @import "tailwindcss/components";
16
16
  /* Custom components */
17
+ @import "./component.text.css";
17
18
  @import "../templates/components/alert/_styles.alert.css";
18
19
  @import "../templates/components/breadcrumbs/_styles.breadcrumbs.css";
19
20
  @import "../templates/components/button/_styles.button.css";
@@ -47,6 +47,11 @@
47
47
  @apply lg:inline-flex;
48
48
  @apply leading-loose;
49
49
  @apply lg:leading-tight;
50
+
51
+ a, span {
52
+ @apply whitespace-normal;
53
+ @apply lg:truncate;
54
+ }
50
55
  }
51
56
  }
52
57
 
@@ -55,6 +60,10 @@
55
60
  li {
56
61
  @apply lg:inline;
57
62
  @apply lg:leading-loose;
63
+
64
+ a, span {
65
+ @apply lg:whitespace-normal;
66
+ }
58
67
  }
59
68
  }
60
69
 
@@ -52,7 +52,7 @@ lg:grid-cols-max-content-8{% endif %}
52
52
  {% endif %}
53
53
  {% for item in params.items %}
54
54
  {% if item.href %}
55
- <li class="flex items-baseline mb-sm py-xs text-neutral-dark hover:text-black {% if loop.last %} flex-1 font-semibold{% endif %}">
55
+ <li class="flex items-baseline max-w-full mb-sm py-xs text-neutral-dark hover:text-black {% if loop.last %} flex-1 font-semibold{% endif %}">
56
56
  <a class="underline focus:bg-warning-base focus:outline-none focus:shadow-outline-focus focus:text-black {%- if loop.last %} text-black font-semibold no-underline{% endif %} truncate" href="{{ item.href }}" {% if loop.last %} aria-current="page"{% endif %}{% for attribute, value in item.attributes %} {{attribute}}="{{value}}"{% endfor %}>
57
57
  {% if loop.last %}
58
58
  <strong>{{ item.html | safe if item.html else item.text }}</strong>
@@ -62,7 +62,7 @@ lg:grid-cols-max-content-8{% endif %}
62
62
  </a>
63
63
  </li>
64
64
  {% else %}
65
- <li class="flex items-baseline mb-sm py-xs text-neutral-dark {% if loop.last %} flex-1 font-semibold{% endif %}">
65
+ <li class="flex items-baseline max-w-full mb-sm py-xs text-neutral-dark {% if loop.last %} flex-1 font-semibold{% endif %}">
66
66
  <span class="no-underline {%- if loop.last %} text-black{% endif %} truncate"{% if loop.last %} aria-current="page"{% endif %}>
67
67
  {% if loop.last %}
68
68
  <strong>{{ item.html | safe if item.html else item.text }}</strong>
@@ -1,5 +1,5 @@
1
1
  <!-- footer -->
2
- <footer class="py-base bg-neutral-lighter border-t border-neutral-base text-xs lg:text-sm
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 }}">