@sb1/ffe-lists 11.0.2 → 11.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.
@@ -46,15 +46,9 @@
46
46
  .ffe-description-list,
47
47
  .ffe-description-list-multicol {
48
48
  .ffe-description-list__term {
49
- color: @ffe-farge-fjell;
50
- &:extend(.ffe-strong-text);
51
-
49
+ color: var(--ffe-v-lists-title-color);
52
50
  font-size: var(--ffe-fontsize-h6);
53
- .native & {
54
- @media (prefers-color-scheme: dark) {
55
- color: @ffe-farge-hvit;
56
- }
57
- }
51
+ &:extend(.ffe-strong-text);
58
52
  }
59
53
 
60
54
  /* Use padding rather than margin in bottom to avoid extra spacing overflowing to the top of the next column */
@@ -65,7 +59,7 @@
65
59
  &:extend(.ffe-body-text);
66
60
  .native & {
67
61
  @media (prefers-color-scheme: dark) {
68
- color: @ffe-farge-lysgraa;
62
+ color: var(--ffe-v-lists-description-description-color);
69
63
  }
70
64
  }
71
65
  }
package/less/lists.less CHANGED
@@ -1,2 +1,3 @@
1
+ @import 'theme';
1
2
  @import './regular-lists.less';
2
3
  @import './description-list.less';
@@ -52,7 +52,7 @@
52
52
 
53
53
  .ffe-numbered-list,
54
54
  .ffe-bullet-list {
55
- font-family: 'SpareBank1-regular', 'MuseoSans-500', arial, sans-serif;
55
+ font-family: var(--ffe-g-font);
56
56
  padding: 0;
57
57
  text-align: left;
58
58
  margin: 0 0 @ffe-spacing-sm;
@@ -106,7 +106,7 @@
106
106
 
107
107
  .ffe-check-list,
108
108
  .ffe-stylized-numbered-list {
109
- font-family: 'SpareBank1-regular', 'MuseoSans-500', arial, sans-serif;
109
+ font-family: var(--ffe-g-font);
110
110
  padding: 0;
111
111
  text-align: left;
112
112
  margin: 0 0 @ffe-spacing-sm;
@@ -127,7 +127,7 @@
127
127
 
128
128
  .native & {
129
129
  @media (prefers-color-scheme: dark) {
130
- color: @ffe-farge-hvit;
130
+ color: var(--ffe-farge-hvit);
131
131
  }
132
132
  }
133
133
  }
@@ -139,17 +139,11 @@
139
139
  margin-right: @ffe-spacing-sm;
140
140
 
141
141
  &--check {
142
- fill: @ffe-farge-nordlys-wcag;
143
-
144
- .native & {
145
- @media (prefers-color-scheme: dark) {
146
- fill: @ffe-farge-nordlys;
147
- }
148
- }
142
+ fill: var(--ffe-v-lists-check-list-check-icon-color);
149
143
  }
150
144
 
151
145
  &--cross {
152
- fill: @ffe-farge-baer;
146
+ fill: var(--ffe-v-lists-check-list-cross-icon-color);
153
147
  }
154
148
  }
155
149
 
@@ -179,14 +173,8 @@
179
173
  left: -1.8em;
180
174
  top: 0.05em;
181
175
  font-size: 1.1em;
182
- color: @ffe-farge-fjell;
176
+ color: var(--ffe-v-lists-title-color);
183
177
  &:extend(.ffe-strong-text);
184
-
185
- .native & {
186
- @media (prefers-color-scheme: dark) {
187
- color: @ffe-farge-hvit;
188
- }
189
- }
190
178
  }
191
179
  }
192
180
  }
@@ -0,0 +1,16 @@
1
+ :root {
2
+ --ffe-v-lists-title-color: var(--ffe-farge-fjell);
3
+ --ffe-v-lists-description-description-color: var(--ffe-farge-svart);
4
+ --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-nordlys-wcag);
5
+ --ffe-v-lists-check-list-cross-icon-color: var(--ffe-farge-baer);
6
+
7
+ @media (prefers-color-scheme: dark) {
8
+ .native {
9
+ --ffe-v-lists-title-color: var(--ffe-farge-hvit);
10
+ --ffe-v-lists-description-description-color: var(
11
+ --ffe-farge-lysgraa
12
+ );
13
+ --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-nordlys);
14
+ }
15
+ }
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "11.0.2",
3
+ "version": "11.1.0",
4
4
  "description": "Lists in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "816e0f967f7b2d8fd6cca41bb9d363a4c7933116"
28
+ "gitHead": "d67b1b810577a56ba2fe502c3a63f89fbf9ff333"
29
29
  }