@sb1/ffe-lists 13.0.5 → 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,20 +111,18 @@
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 {
117
+ --line-height: 1.5em;
118
+
124
119
  margin-top: @ffe-spacing-sm;
125
120
  position: relative;
126
- line-height: 1.5em;
127
- padding-left: 2em;
121
+ line-height: var(--line-height);
122
+ display: grid;
123
+ grid-template-columns: auto 1fr;
124
+ grid-template-rows: var(--line-height) 1fr;
125
+ grid-column-gap: 1.5em;
128
126
 
129
127
  .native & {
130
128
  @media (prefers-color-scheme: dark) {
@@ -135,10 +133,9 @@
135
133
 
136
134
  .ffe-check-list {
137
135
  &__icon {
138
- margin-right: @ffe-spacing-sm;
139
- position: absolute;
140
- left: 0;
141
-
136
+ grid-column: 1/2;
137
+ grid-row: 1/2;
138
+ place-self: center;
142
139
  &--check.ffe-icons {
143
140
  color: var(--ffe-v-lists-check-list-check-icon-color);
144
141
  }
@@ -153,29 +150,39 @@
153
150
  display: flex;
154
151
  flex-wrap: wrap;
155
152
  justify-content: space-between;
153
+ gap: @ffe-spacing-xs;
156
154
 
157
155
  .ffe-check-list__item {
158
156
  flex: 1 0 auto;
159
- display: block;
160
157
  width: 40%;
161
158
  }
162
159
  }
163
160
  }
164
161
  }
165
162
 
166
- .ffe-stylized-numbered-list {
167
- > .ffe-stylized-numbered-list__item {
168
- counter-increment: list-elements;
169
-
170
- &::before {
171
- content: counter(list-elements);
172
- display: block;
173
- position: absolute;
174
- left: -1.8em;
175
- top: 0.05em;
176
- font-size: 1.1em;
177
- color: var(--ffe-v-lists-title-color);
178
- &:extend(.ffe-strong-text);
179
- }
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);
180
181
  }
181
182
  }
183
+
184
+ .ffe-check-list__item-content,
185
+ .ffe-stylized-numbered-list__item-content {
186
+ grid-column: 2/3;
187
+ grid-row: 1/-1;
188
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "13.0.5",
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": "e9f8ba0eb329a7b2fc1aa21512c67ad440b74bb0"
27
+ "gitHead": "f3e5ffacffd4068351ff756660917b1363a13994"
28
28
  }