desy-html 11.0.3 → 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.
|
@@ -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
|
]
|
package/docs/index.html
CHANGED
|
@@ -38,6 +38,11 @@
|
|
|
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>
|
|
41
46
|
<h3>v.11.0.3</h3>
|
|
42
47
|
<ul class="text-sm">
|
|
43
48
|
<li>Text styles are now responsive with Tailwind CSS breakpoint prefixes.</li>
|
package/package.json
CHANGED
|
@@ -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
|
+
|
package/src/css/styles.css
CHANGED
|
@@ -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";
|
|
@@ -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 }}">
|