@sb1/ffe-lists 17.0.6 → 17.1.0
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/README.md +8 -0
- package/css/lists.css +384 -0
- package/less/description-list.less +2 -0
- package/less/regular-lists.less +13 -10
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -14,6 +14,14 @@ Full documentation on lists usage is available at https://design.sparebank1.no/k
|
|
|
14
14
|
@import 'path/to/node_modules/@sb1/ffe-lists/less/lists';
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
### Importing compiled CSS
|
|
18
|
+
|
|
19
|
+
If your project does not use Less, you can import the compiled styling:
|
|
20
|
+
|
|
21
|
+
```css
|
|
22
|
+
@import '~@sb1/ffe-lists/css/lists.css';
|
|
23
|
+
```
|
|
24
|
+
|
|
17
25
|
See also `@sb1/ffe-lists-react`.
|
|
18
26
|
|
|
19
27
|
## Theming with CSS custom properties
|
package/css/lists.css
ADDED
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--ffe-v-lists-title-color: var(--ffe-farge-fjell);
|
|
4
|
+
--ffe-v-lists-description-description-color: var(--ffe-farge-svart);
|
|
5
|
+
--ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog);
|
|
6
|
+
--ffe-v-lists-check-list-cross-icon-color: var(--ffe-farge-baer);
|
|
7
|
+
--ffe-v-detail-list-card-background-color: var(--ffe-farge-hvit);
|
|
8
|
+
--ffe-v-detail-list-card-border-color: var(--ffe-farge-lysgraa);
|
|
9
|
+
--ffe-v-detail-list-card-border-radius: 16px;
|
|
10
|
+
}
|
|
11
|
+
@media (prefers-color-scheme: dark) {
|
|
12
|
+
:root .regard-color-scheme-preference,
|
|
13
|
+
:host .regard-color-scheme-preference {
|
|
14
|
+
--ffe-v-lists-title-color: var(--ffe-farge-hvit);
|
|
15
|
+
--ffe-v-lists-description-description-color: var(--ffe-farge-lysgraa);
|
|
16
|
+
--ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog-70);
|
|
17
|
+
--ffe-v-detail-list-card-background-color: var(--ffe-farge-natt);
|
|
18
|
+
--ffe-v-detail-list-card-border-color: var(--ffe-farge-moerkgraa);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.ffe-description-list .ffe-description-list__description,
|
|
22
|
+
.ffe-description-list-multicol .ffe-description-list__description {
|
|
23
|
+
color: var(--ffe-g-text-color);font-family: var(--ffe-g-font);font-variant-numeric: tabular-nums;line-height: 1.5rem;font-size: var(--ffe-fontsize-body-text);
|
|
24
|
+
}
|
|
25
|
+
.ffe-stylized-numbered-list__item::before,
|
|
26
|
+
.ffe-description-list .ffe-description-list__term,
|
|
27
|
+
.ffe-description-list-multicol .ffe-description-list__term {
|
|
28
|
+
font-family: var(--ffe-g-font-strong);font-variant-numeric: tabular-nums;font-weight: normal;
|
|
29
|
+
}
|
|
30
|
+
@media (min-width: 480px) {
|
|
31
|
+
.ffe-description-list .ffe-description-list__description,
|
|
32
|
+
.ffe-description-list-multicol .ffe-description-list__description {
|
|
33
|
+
line-height: 1.5rem;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.ffe-stylized-numbered-list__item::before,
|
|
37
|
+
.ffe-description-list .ffe-description-list__term,
|
|
38
|
+
.ffe-description-list-multicol .ffe-description-list__term,
|
|
39
|
+
.ffe-description-list .ffe-description-list__description,
|
|
40
|
+
.ffe-description-list-multicol .ffe-description-list__description {
|
|
41
|
+
overflow-wrap: anywhere;
|
|
42
|
+
}
|
|
43
|
+
.ffe-numbered-list,
|
|
44
|
+
.ffe-bullet-list {
|
|
45
|
+
font-family: var(--ffe-g-font);
|
|
46
|
+
padding: 0;
|
|
47
|
+
text-align: left;
|
|
48
|
+
margin: 0 0 var(--ffe-spacing-sm);
|
|
49
|
+
}
|
|
50
|
+
.ffe-numbered-list > .ffe-numbered-list__item,
|
|
51
|
+
.ffe-bullet-list > .ffe-numbered-list__item,
|
|
52
|
+
.ffe-numbered-list > .ffe-bullet-list__item,
|
|
53
|
+
.ffe-bullet-list > .ffe-bullet-list__item {
|
|
54
|
+
margin-top: var(--ffe-spacing-xs);
|
|
55
|
+
margin-left: var(--ffe-spacing-sm);
|
|
56
|
+
overflow-wrap: anywhere;
|
|
57
|
+
}
|
|
58
|
+
.ffe-numbered-list {
|
|
59
|
+
list-style-type: decimal;
|
|
60
|
+
}
|
|
61
|
+
.ffe-bullet-list {
|
|
62
|
+
list-style-type: disc;
|
|
63
|
+
}
|
|
64
|
+
.ffe-bullet-list--condensed {
|
|
65
|
+
margin-left: 0;
|
|
66
|
+
}
|
|
67
|
+
.ffe-bullet-list--condensed > .ffe-bullet-list__item {
|
|
68
|
+
margin-top: 0;
|
|
69
|
+
}
|
|
70
|
+
/* tablet/medium typography */
|
|
71
|
+
@media (min-width: 480px) {
|
|
72
|
+
.ffe-numbered-list,
|
|
73
|
+
.ffe-bullet-list {
|
|
74
|
+
margin-left: var(--ffe-spacing-sm);
|
|
75
|
+
}
|
|
76
|
+
.ffe-numbered-list--condensed,
|
|
77
|
+
.ffe-bullet-list--condensed {
|
|
78
|
+
margin-left: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
/* Desktop */
|
|
82
|
+
@media (min-width: 768px) {
|
|
83
|
+
.ffe-numbered-list > .ffe-numbered-list__item,
|
|
84
|
+
.ffe-bullet-list > .ffe-bullet-list__item {
|
|
85
|
+
margin-left: var(--ffe-spacing-lg);
|
|
86
|
+
}
|
|
87
|
+
.ffe-numbered-list > .ffe-numbered-list__item--condensed,
|
|
88
|
+
.ffe-bullet-list > .ffe-bullet-list__item--condensed {
|
|
89
|
+
margin-left: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.ffe-check-list,
|
|
93
|
+
.ffe-stylized-numbered-list {
|
|
94
|
+
font-family: var(--ffe-g-font);
|
|
95
|
+
padding: 0;
|
|
96
|
+
text-align: left;
|
|
97
|
+
margin: 0 0 var(--ffe-spacing-sm);
|
|
98
|
+
list-style: none;
|
|
99
|
+
}
|
|
100
|
+
.ffe-check-list__item {
|
|
101
|
+
--line-height: 1.5em;
|
|
102
|
+
margin-top: var(--ffe-spacing-sm);
|
|
103
|
+
position: relative;
|
|
104
|
+
line-height: var(--line-height);
|
|
105
|
+
display: grid;
|
|
106
|
+
grid-template-columns: auto 1fr;
|
|
107
|
+
grid-template-rows: var(--line-height) 1fr;
|
|
108
|
+
grid-column-gap: 1.5em;
|
|
109
|
+
}
|
|
110
|
+
.ffe-check-list__icon {
|
|
111
|
+
grid-column: 1 / 2;
|
|
112
|
+
grid-row: 1 / 2;
|
|
113
|
+
place-self: center;
|
|
114
|
+
}
|
|
115
|
+
.ffe-check-list__icon--check.ffe-icons {
|
|
116
|
+
color: var(--ffe-v-lists-check-list-check-icon-color);
|
|
117
|
+
}
|
|
118
|
+
.ffe-check-list__icon--cross.ffe-icons {
|
|
119
|
+
color: var(--ffe-v-lists-check-list-cross-icon-color);
|
|
120
|
+
}
|
|
121
|
+
@media all and (min-width: 768px) {
|
|
122
|
+
.ffe-check-list--two-columns {
|
|
123
|
+
display: -webkit-box;
|
|
124
|
+
display: -ms-flexbox;
|
|
125
|
+
display: flex;
|
|
126
|
+
-ms-flex-wrap: wrap;
|
|
127
|
+
flex-wrap: wrap;
|
|
128
|
+
-webkit-box-pack: justify;
|
|
129
|
+
-ms-flex-pack: justify;
|
|
130
|
+
justify-content: space-between;
|
|
131
|
+
gap: var(--ffe-spacing-xs);
|
|
132
|
+
}
|
|
133
|
+
.ffe-check-list--two-columns .ffe-check-list__item {
|
|
134
|
+
-webkit-box-flex: 1;
|
|
135
|
+
-ms-flex: 1 0 auto;
|
|
136
|
+
flex: 1 0 auto;
|
|
137
|
+
width: 40%;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.ffe-stylized-numbered-list__item {
|
|
141
|
+
--line-height: 1.5em;
|
|
142
|
+
counter-increment: list-elements;
|
|
143
|
+
margin-top: var(--ffe-spacing-sm);
|
|
144
|
+
position: relative;
|
|
145
|
+
line-height: var(--line-height);
|
|
146
|
+
display: grid;
|
|
147
|
+
grid-template-columns: auto 1fr;
|
|
148
|
+
grid-template-rows: var(--line-height) 1fr;
|
|
149
|
+
grid-column-gap: var(--ffe-spacing-md);
|
|
150
|
+
}
|
|
151
|
+
.ffe-stylized-numbered-list__item::before {
|
|
152
|
+
content: counter(list-elements);
|
|
153
|
+
grid-column: 1 / 2;
|
|
154
|
+
grid-row: 1 / 2;
|
|
155
|
+
color: var(--ffe-v-lists-title-color);
|
|
156
|
+
}
|
|
157
|
+
.ffe-check-list__item-content,
|
|
158
|
+
.ffe-stylized-numbered-list__item-content {
|
|
159
|
+
grid-column: 2 / 3;
|
|
160
|
+
grid-row: 1 / -1;
|
|
161
|
+
overflow-wrap: anywhere;
|
|
162
|
+
}
|
|
163
|
+
.ffe-description-list,
|
|
164
|
+
.ffe-description-list-multicol {
|
|
165
|
+
--vertical-seperation: 1rem;
|
|
166
|
+
/* Use padding rather than margin in bottom to avoid extra spacing overflowing to the top of the next column */
|
|
167
|
+
}
|
|
168
|
+
.ffe-description-list .ffe-description-list__term,
|
|
169
|
+
.ffe-description-list-multicol .ffe-description-list__term {
|
|
170
|
+
color: var(--ffe-v-lists-title-color);
|
|
171
|
+
font-size: var(--ffe-fontsize-h6);
|
|
172
|
+
}
|
|
173
|
+
.ffe-description-list .ffe-description-list__description,
|
|
174
|
+
.ffe-description-list-multicol .ffe-description-list__description {
|
|
175
|
+
padding-bottom: var(--vertical-seperation);
|
|
176
|
+
margin-left: 0;
|
|
177
|
+
color: var(--ffe-v-lists-description-description-color);
|
|
178
|
+
}
|
|
179
|
+
.ffe-description-list .ffe-description-list__description + .ffe-description-list__description,
|
|
180
|
+
.ffe-description-list-multicol .ffe-description-list__description + .ffe-description-list__description {
|
|
181
|
+
margin-top: calc(var(--vertical-seperation) * -1);
|
|
182
|
+
}
|
|
183
|
+
.ffe-description-list--horizontal {
|
|
184
|
+
display: -webkit-box;
|
|
185
|
+
display: -ms-flexbox;
|
|
186
|
+
display: flex;
|
|
187
|
+
-ms-flex-wrap: wrap;
|
|
188
|
+
flex-wrap: wrap;
|
|
189
|
+
-webkit-box-align: start;
|
|
190
|
+
-ms-flex-align: start;
|
|
191
|
+
align-items: flex-start;
|
|
192
|
+
width: 100%;
|
|
193
|
+
}
|
|
194
|
+
.ffe-description-list--horizontal .ffe-description-list__term {
|
|
195
|
+
-webkit-box-flex: 0;
|
|
196
|
+
-ms-flex: 0 0 35%;
|
|
197
|
+
flex: 0 0 35%;
|
|
198
|
+
overflow: hidden;
|
|
199
|
+
overflow-wrap: break-word;
|
|
200
|
+
}
|
|
201
|
+
.ffe-description-list--horizontal .ffe-description-list__description {
|
|
202
|
+
-webkit-box-flex: 65%;
|
|
203
|
+
-ms-flex: 65% 0 0px;
|
|
204
|
+
flex: 65% 0 0;
|
|
205
|
+
padding-left: var(--ffe-spacing-sm);
|
|
206
|
+
max-width: 65%;
|
|
207
|
+
/* Fix for IE issue in which box-sizing is not taken into account when using flex */
|
|
208
|
+
}
|
|
209
|
+
.ffe-description-list--horizontal .ffe-description-list__description + .ffe-description-list__description {
|
|
210
|
+
margin-left: 35%;
|
|
211
|
+
/* Keep left margin when using multiple dd's */
|
|
212
|
+
}
|
|
213
|
+
@media (min-width: 480px) {
|
|
214
|
+
.ffe-description-list--horizontal .ffe-description-list__term {
|
|
215
|
+
-webkit-box-flex: 0;
|
|
216
|
+
-ms-flex: 0 0 20%;
|
|
217
|
+
flex: 0 0 20%;
|
|
218
|
+
}
|
|
219
|
+
.ffe-description-list--horizontal .ffe-description-list__description {
|
|
220
|
+
-webkit-box-flex: 80%;
|
|
221
|
+
-ms-flex: 80% 0 0px;
|
|
222
|
+
flex: 80% 0 0;
|
|
223
|
+
max-width: 80%;
|
|
224
|
+
}
|
|
225
|
+
.ffe-description-list--horizontal .ffe-description-list__description + .ffe-description-list__description {
|
|
226
|
+
margin-left: 20%;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
.ffe-description-list--horizontal.ffe-description-list--md .ffe-description-list__term {
|
|
230
|
+
-webkit-box-flex: 0;
|
|
231
|
+
-ms-flex: 0 0 40%;
|
|
232
|
+
flex: 0 0 40%;
|
|
233
|
+
}
|
|
234
|
+
.ffe-description-list--horizontal.ffe-description-list--md .ffe-description-list__description {
|
|
235
|
+
-webkit-box-flex: 60%;
|
|
236
|
+
-ms-flex: 60% 0 0px;
|
|
237
|
+
flex: 60% 0 0;
|
|
238
|
+
max-width: 60%;
|
|
239
|
+
}
|
|
240
|
+
.ffe-description-list--horizontal.ffe-description-list--md .ffe-description-list__description + .ffe-description-list__description {
|
|
241
|
+
margin-left: 40%;
|
|
242
|
+
}
|
|
243
|
+
.ffe-description-list--horizontal.ffe-description-list--lg .ffe-description-list__term {
|
|
244
|
+
-webkit-box-flex: 0;
|
|
245
|
+
-ms-flex: 0 0 50%;
|
|
246
|
+
flex: 0 0 50%;
|
|
247
|
+
}
|
|
248
|
+
.ffe-description-list--horizontal.ffe-description-list--lg .ffe-description-list__description {
|
|
249
|
+
-webkit-box-flex: 50%;
|
|
250
|
+
-ms-flex: 50% 0 0px;
|
|
251
|
+
flex: 50% 0 0;
|
|
252
|
+
max-width: 50%;
|
|
253
|
+
}
|
|
254
|
+
.ffe-description-list--horizontal.ffe-description-list--lg .ffe-description-list__description + .ffe-description-list__description {
|
|
255
|
+
margin-left: 50%;
|
|
256
|
+
}
|
|
257
|
+
.ffe-description-list-multicol {
|
|
258
|
+
display: -webkit-box;
|
|
259
|
+
display: -ms-flexbox;
|
|
260
|
+
display: flex;
|
|
261
|
+
-ms-flex-wrap: wrap;
|
|
262
|
+
flex-wrap: wrap;
|
|
263
|
+
-webkit-box-align: stretch;
|
|
264
|
+
-ms-flex-align: stretch;
|
|
265
|
+
align-items: stretch;
|
|
266
|
+
}
|
|
267
|
+
.ffe-description-list-multicol__avoid-break {
|
|
268
|
+
-ms-flex-preferred-size: 100%;
|
|
269
|
+
flex-basis: 100%;
|
|
270
|
+
margin: 0;
|
|
271
|
+
text-align: center;
|
|
272
|
+
}
|
|
273
|
+
.ffe-description-list-multicol--sm-2-cols .ffe-description-list-multicol__avoid-break {
|
|
274
|
+
-ms-flex-preferred-size: 50%;
|
|
275
|
+
flex-basis: 50%;
|
|
276
|
+
}
|
|
277
|
+
.ffe-description-list-multicol__avoid-break:last-child:not(:nth-child(even)) {
|
|
278
|
+
-ms-flex-preferred-size: 100%;
|
|
279
|
+
flex-basis: 100%;
|
|
280
|
+
}
|
|
281
|
+
@media (min-width: 480px) {
|
|
282
|
+
.ffe-description-list-multicol__avoid-break {
|
|
283
|
+
-ms-flex-preferred-size: 50%;
|
|
284
|
+
flex-basis: 50%;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
.ffe-detail-list-card {
|
|
288
|
+
--detail-list-bg-color: var(--ffe-v-detail-list-card-background-color);
|
|
289
|
+
background-color: var(--detail-list-bg-color);
|
|
290
|
+
border-radius: var(--ffe-v-detail-list-card-border-radius);
|
|
291
|
+
font-family: var(--ffe-g-font);
|
|
292
|
+
font-variant-numeric: tabular-nums;
|
|
293
|
+
container-type: inline-size;
|
|
294
|
+
}
|
|
295
|
+
.ffe-detail-list-card__item:not(:last-child) {
|
|
296
|
+
border-bottom: 1px solid var(--ffe-v-detail-list-card-border-color);
|
|
297
|
+
}
|
|
298
|
+
.ffe-detail-list-card__item {
|
|
299
|
+
padding: var(--ffe-spacing-sm);
|
|
300
|
+
display: -webkit-box;
|
|
301
|
+
display: -ms-flexbox;
|
|
302
|
+
display: flex;
|
|
303
|
+
-ms-flex-wrap: wrap;
|
|
304
|
+
flex-wrap: wrap;
|
|
305
|
+
-webkit-box-align: center;
|
|
306
|
+
-ms-flex-align: center;
|
|
307
|
+
align-items: center;
|
|
308
|
+
-webkit-box-pack: justify;
|
|
309
|
+
-ms-flex-pack: justify;
|
|
310
|
+
justify-content: space-between;
|
|
311
|
+
gap: var(--ffe-spacing-xs);
|
|
312
|
+
overflow-wrap: anywhere;
|
|
313
|
+
text-wrap: balance;
|
|
314
|
+
}
|
|
315
|
+
.ffe-detail-list-card__item:is(button) {
|
|
316
|
+
background-color: transparent;
|
|
317
|
+
border: 0;
|
|
318
|
+
width: 100%;
|
|
319
|
+
color: inherit;
|
|
320
|
+
}
|
|
321
|
+
.ffe-detail-list-card__item:is(a) {
|
|
322
|
+
text-decoration: none;
|
|
323
|
+
color: inherit;
|
|
324
|
+
}
|
|
325
|
+
.ffe-detail-list-card__item:is(:first-child) {
|
|
326
|
+
border-radius: var(--ffe-v-detail-list-card-border-radius) var(--ffe-v-detail-list-card-border-radius) 0 0;
|
|
327
|
+
}
|
|
328
|
+
.ffe-detail-list-card__item:is(:last-child) {
|
|
329
|
+
border-radius: 0 0 var(--ffe-v-detail-list-card-border-radius) var(--ffe-v-detail-list-card-border-radius);
|
|
330
|
+
}
|
|
331
|
+
.ffe-detail-list-card__item-label {
|
|
332
|
+
font-family: var(--ffe-g-font-heading-small);
|
|
333
|
+
color: var(--ffe-g-secondary-color);
|
|
334
|
+
}
|
|
335
|
+
.ffe-detail-list-card__item-value {
|
|
336
|
+
margin: 0;
|
|
337
|
+
display: -webkit-box;
|
|
338
|
+
display: -ms-flexbox;
|
|
339
|
+
display: flex;
|
|
340
|
+
-webkit-box-align: center;
|
|
341
|
+
-ms-flex-align: center;
|
|
342
|
+
align-items: center;
|
|
343
|
+
}
|
|
344
|
+
.ffe-detail-list-card__item-value > a,
|
|
345
|
+
.ffe-detail-list-card__item-value > button {
|
|
346
|
+
min-width: 24px;
|
|
347
|
+
}
|
|
348
|
+
@container (width < 299px) {
|
|
349
|
+
.ffe-detail-list-card__item {
|
|
350
|
+
-webkit-box-orient: vertical;
|
|
351
|
+
-webkit-box-direction: normal;
|
|
352
|
+
-ms-flex-direction: column;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
-webkit-box-align: normal;
|
|
355
|
+
-ms-flex-align: normal;
|
|
356
|
+
align-items: normal;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
.ffe-detail-list-card--bg-sand-30 {
|
|
360
|
+
--detail-list-bg-color: var(--ffe-farge-sand-30);
|
|
361
|
+
}
|
|
362
|
+
.ffe-detail-list-card--bg-sand-70 {
|
|
363
|
+
--detail-list-bg-color: var(--ffe-farge-sand-70);
|
|
364
|
+
}
|
|
365
|
+
.ffe-detail-list-card--bg-frost-30 {
|
|
366
|
+
--detail-list-bg-color: var(--ffe-farge-frost-30);
|
|
367
|
+
}
|
|
368
|
+
.ffe-detail-list-card--bg-syrin-30 {
|
|
369
|
+
--detail-list-bg-color: var(--ffe-farge-syrin-30);
|
|
370
|
+
}
|
|
371
|
+
.ffe-detail-list-card--bg-syrin-70 {
|
|
372
|
+
--detail-list-bg-color: var(--ffe-farge-syrin-70);
|
|
373
|
+
}
|
|
374
|
+
@media (prefers-color-scheme: dark) {
|
|
375
|
+
.regard-color-scheme-preference .ffe-detail-list-card--dm-bg-svart {
|
|
376
|
+
--detail-list-bg-color: var(--ffe-farge-svart);
|
|
377
|
+
}
|
|
378
|
+
.regard-color-scheme-preference .ffe-detail-list-card--dm-bg-natt {
|
|
379
|
+
--detail-list-bg-color: var(--ffe-farge-natt);
|
|
380
|
+
}
|
|
381
|
+
.regard-color-scheme-preference .ffe-detail-list-card--dm-bg-koksgraa {
|
|
382
|
+
--detail-list-bg-color: var(--ffe-farge-koksgraa);
|
|
383
|
+
}
|
|
384
|
+
}
|
package/less/regular-lists.less
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
@import (reference) '@sb1/ffe-core/less/breakpoints';
|
|
2
|
+
@import (reference) '@sb1/ffe-core/less/typography';
|
|
3
|
+
|
|
1
4
|
.ffe-numbered-list,
|
|
2
5
|
.ffe-bullet-list {
|
|
3
6
|
font-family: var(--ffe-g-font);
|
|
4
7
|
padding: 0;
|
|
5
8
|
text-align: left;
|
|
6
|
-
margin: 0 0
|
|
9
|
+
margin: 0 0 var(--ffe-spacing-sm);
|
|
7
10
|
|
|
8
11
|
> .ffe-numbered-list__item,
|
|
9
12
|
> .ffe-bullet-list__item {
|
|
10
|
-
margin-top:
|
|
11
|
-
margin-left:
|
|
13
|
+
margin-top: var(--ffe-spacing-xs);
|
|
14
|
+
margin-left: var(--ffe-spacing-sm);
|
|
12
15
|
overflow-wrap: anywhere;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
@@ -33,7 +36,7 @@
|
|
|
33
36
|
@media (min-width: @breakpoint-sm) {
|
|
34
37
|
.ffe-numbered-list,
|
|
35
38
|
.ffe-bullet-list {
|
|
36
|
-
margin-left:
|
|
39
|
+
margin-left: var(--ffe-spacing-sm);
|
|
37
40
|
|
|
38
41
|
&--condensed {
|
|
39
42
|
margin-left: 0;
|
|
@@ -45,7 +48,7 @@
|
|
|
45
48
|
@media (min-width: @breakpoint-md) {
|
|
46
49
|
.ffe-numbered-list > .ffe-numbered-list__item,
|
|
47
50
|
.ffe-bullet-list > .ffe-bullet-list__item {
|
|
48
|
-
margin-left:
|
|
51
|
+
margin-left: var(--ffe-spacing-lg);
|
|
49
52
|
|
|
50
53
|
&--condensed {
|
|
51
54
|
margin-left: 0;
|
|
@@ -58,14 +61,14 @@
|
|
|
58
61
|
font-family: var(--ffe-g-font);
|
|
59
62
|
padding: 0;
|
|
60
63
|
text-align: left;
|
|
61
|
-
margin: 0 0
|
|
64
|
+
margin: 0 0 var(--ffe-spacing-sm);
|
|
62
65
|
list-style: none;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
68
|
.ffe-check-list__item {
|
|
66
69
|
--line-height: 1.5em;
|
|
67
70
|
|
|
68
|
-
margin-top:
|
|
71
|
+
margin-top: var(--ffe-spacing-sm);
|
|
69
72
|
position: relative;
|
|
70
73
|
line-height: var(--line-height);
|
|
71
74
|
display: grid;
|
|
@@ -93,7 +96,7 @@
|
|
|
93
96
|
display: flex;
|
|
94
97
|
flex-wrap: wrap;
|
|
95
98
|
justify-content: space-between;
|
|
96
|
-
gap:
|
|
99
|
+
gap: var(--ffe-spacing-xs);
|
|
97
100
|
|
|
98
101
|
.ffe-check-list__item {
|
|
99
102
|
flex: 1 0 auto;
|
|
@@ -107,13 +110,13 @@
|
|
|
107
110
|
--line-height: 1.5em;
|
|
108
111
|
|
|
109
112
|
counter-increment: list-elements;
|
|
110
|
-
margin-top:
|
|
113
|
+
margin-top: var(--ffe-spacing-sm);
|
|
111
114
|
position: relative;
|
|
112
115
|
line-height: var(--line-height);
|
|
113
116
|
display: grid;
|
|
114
117
|
grid-template-columns: auto 1fr;
|
|
115
118
|
grid-template-rows: var(--line-height) 1fr;
|
|
116
|
-
grid-column-gap:
|
|
119
|
+
grid-column-gap: var(--ffe-spacing-md);
|
|
117
120
|
|
|
118
121
|
&::before {
|
|
119
122
|
content: counter(list-elements);
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-lists",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.0",
|
|
4
4
|
"description": "Lists in ffe",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
7
7
|
"files": [
|
|
8
|
-
"less"
|
|
8
|
+
"less",
|
|
9
|
+
"css"
|
|
9
10
|
],
|
|
10
11
|
"repository": {
|
|
11
12
|
"type": "git",
|
|
@@ -13,10 +14,11 @@
|
|
|
13
14
|
},
|
|
14
15
|
"scripts": {
|
|
15
16
|
"lint": "ffe-buildtool stylelint less/*.less",
|
|
16
|
-
"test": "npm run lint"
|
|
17
|
+
"test": "npm run lint",
|
|
18
|
+
"build": "lessc less/lists.less css/lists.css --autoprefix"
|
|
17
19
|
},
|
|
18
20
|
"dependencies": {
|
|
19
|
-
"@sb1/ffe-core": "^29.
|
|
21
|
+
"@sb1/ffe-core": "^29.2.0"
|
|
20
22
|
},
|
|
21
23
|
"devDependencies": {
|
|
22
24
|
"@sb1/ffe-buildtool": "^0.9.0"
|
|
@@ -24,5 +26,5 @@
|
|
|
24
26
|
"publishConfig": {
|
|
25
27
|
"access": "public"
|
|
26
28
|
},
|
|
27
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "55ee3d40abaef9433c55aa993889e67c3f5c5abd"
|
|
28
30
|
}
|