@sb1/ffe-lists 14.0.0 → 15.0.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.
@@ -111,13 +111,6 @@
111
111
  text-align: left;
112
112
  margin: 0 0 @ffe-spacing-sm;
113
113
  list-style: none;
114
-
115
- > .ffe-stylized-numbered-list__item {
116
- margin-top: @ffe-spacing-sm;
117
- margin-left: @ffe-spacing-lg;
118
- position: relative;
119
- line-height: 1.5em;
120
- }
121
114
  }
122
115
 
123
116
  .ffe-check-list__item {
@@ -167,24 +160,29 @@
167
160
  }
168
161
  }
169
162
 
170
- .ffe-stylized-numbered-list {
171
- > .ffe-stylized-numbered-list__item {
172
- counter-increment: list-elements;
173
-
174
- &::before {
175
- content: counter(list-elements);
176
- display: block;
177
- position: absolute;
178
- left: -1.8em;
179
- top: 0.05em;
180
- font-size: 1.1em;
181
- color: var(--ffe-v-lists-title-color);
182
- &:extend(.ffe-strong-text);
183
- }
163
+ .ffe-stylized-numbered-list__item {
164
+ --line-height: 1.5em;
165
+
166
+ counter-increment: list-elements;
167
+ margin-top: @ffe-spacing-sm;
168
+ position: relative;
169
+ line-height: var(--line-height);
170
+ display: grid;
171
+ grid-template-columns: auto 1fr;
172
+ grid-template-rows: var(--line-height) 1fr;
173
+ grid-column-gap: @ffe-spacing-md;
174
+
175
+ &::before {
176
+ content: counter(list-elements);
177
+ grid-column: 1/2;
178
+ grid-row: 1/2;
179
+ color: var(--ffe-v-lists-title-color);
180
+ &:extend(.ffe-strong-text);
184
181
  }
185
182
  }
186
183
 
187
- .ffe-check-list__item-content {
184
+ .ffe-check-list__item-content,
185
+ .ffe-stylized-numbered-list__item-content {
188
186
  grid-column: 2/3;
189
187
  grid-row: 1/-1;
190
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "14.0.0",
3
+ "version": "15.0.0",
4
4
  "description": "Lists in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "eba90ee7c4b274041c749177c0d27daee9c4a2a0"
27
+ "gitHead": "f3e5ffacffd4068351ff756660917b1363a13994"
28
28
  }