@entur/layout 2.1.26 → 2.1.28

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.
Files changed (2) hide show
  1. package/dist/styles.css +78 -78
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -1,6 +1,3 @@
1
- :root {
2
- --eds-layout: 1;
3
- }
4
1
  /* DO NOT CHANGE!*/
5
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
3
  .eds-contrast {
@@ -10,67 +7,37 @@
10
7
  background-color: var(--primary-background-color);
11
8
  color: var(--primary-text-color);
12
9
  }
10
+ :root {
11
+ --eds-layout: 1;
12
+ }
13
13
  /* DO NOT CHANGE!*/
14
14
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
15
- .eds-media-card {
16
- flex-direction: column;
17
- overflow: hidden;
18
- position: relative;
19
- width: -moz-fit-content;
20
- width: fit-content;
21
- transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
22
- }
23
- .eds-media-card:focus, .eds-media-card[focus-within] {
24
- outline: none;
25
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
26
- }
27
- .eds-media-card:focus, .eds-media-card:focus-within {
28
- outline: none;
29
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
30
- }
31
- .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card[focus-within] {
32
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
33
- }
34
- .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card:focus-within {
35
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
36
- }
37
- .eds-contrast .eds-media-card {
38
- background-color: #292b6a;
39
- }
40
- .eds-media-card__media {
41
- transition: transform 0.2s ease-in-out;
15
+ .eds-tag {
16
+ background: #e9e9e9;
17
+ color: #181c56;
18
+ display: inline-block;
19
+ min-width: 2rem;
20
+ padding: 0.25rem 0.75rem;
21
+ font-size: 0.875rem;
22
+ line-height: 1.375rem;
42
23
  }
43
- .eds-media-card__title {
44
- font-size: 1.5rem;
45
- line-height: 1.875rem;
46
- font-weight: 600;
47
- margin: 0.75rem 0 0.5rem;
48
- text-align: left;
49
- width: -moz-fit-content;
50
- width: fit-content;
51
- position: relative;
24
+ .eds-tag--leading-icon .eds-icon {
25
+ margin-right: 0.5rem;
52
26
  }
53
- .eds-media-card:hover {
54
- transform: translateY(-0.25rem);
55
- box-shadow: 0 0.125rem 1rem 0 rgba(0, 0, 0, 0.1);
27
+ .eds-tag--trailing-icon .eds-icon {
28
+ margin-left: 0.5rem;
56
29
  }
57
- .eds-media-card__text {
58
- -webkit-appearance: none;
59
- -moz-appearance: none;
60
- appearance: none;
61
- cursor: pointer;
62
- color: inherit;
63
- display: flex;
64
- flex-direction: column;
65
- text-decoration: none;
66
- padding: 1.25rem 2rem 0;
30
+ .eds-tag--compact {
31
+ font-size: 0.75rem;
32
+ padding: 0.125rem 0.5rem;
33
+ line-height: 1.25rem;
34
+ height: 1.5rem;
67
35
  }
68
- .eds-media-card__text:focus {
69
- outline: none;
36
+ .eds-tag--compact.eds-tag--leading-icon .eds-icon {
37
+ margin-right: 0.25rem;
70
38
  }
71
- .eds-media-card__arrow-icon {
72
- align-self: flex-end;
73
- margin: 1rem 0 1.5rem;
39
+ .eds-tag--compact.eds-tag--trailing-icon .eds-icon {
40
+ margin-left: 0.25rem;
74
41
  }
75
42
  /* DO NOT CHANGE!*/
76
43
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -202,32 +169,65 @@
202
169
  }
203
170
  /* DO NOT CHANGE!*/
204
171
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
205
- .eds-tag {
206
- background: #e9e9e9;
207
- color: #181c56;
208
- display: inline-block;
209
- min-width: 2rem;
210
- padding: 0.25rem 0.75rem;
211
- font-size: 0.875rem;
212
- line-height: 1.375rem;
172
+ .eds-media-card {
173
+ flex-direction: column;
174
+ overflow: hidden;
175
+ position: relative;
176
+ width: -moz-fit-content;
177
+ width: fit-content;
178
+ transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
213
179
  }
214
- .eds-tag--leading-icon .eds-icon {
215
- margin-right: 0.5rem;
180
+ .eds-media-card:focus, .eds-media-card[focus-within] {
181
+ outline: none;
182
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
216
183
  }
217
- .eds-tag--trailing-icon .eds-icon {
218
- margin-left: 0.5rem;
184
+ .eds-media-card:focus, .eds-media-card:focus-within {
185
+ outline: none;
186
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
219
187
  }
220
- .eds-tag--compact {
221
- font-size: 0.75rem;
222
- padding: 0.125rem 0.5rem;
223
- line-height: 1.25rem;
224
- height: 1.5rem;
188
+ .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card[focus-within] {
189
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
225
190
  }
226
- .eds-tag--compact.eds-tag--leading-icon .eds-icon {
227
- margin-right: 0.25rem;
191
+ .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card:focus-within {
192
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
228
193
  }
229
- .eds-tag--compact.eds-tag--trailing-icon .eds-icon {
230
- margin-left: 0.25rem;
194
+ .eds-contrast .eds-media-card {
195
+ background-color: #292b6a;
196
+ }
197
+ .eds-media-card__media {
198
+ transition: transform 0.2s ease-in-out;
199
+ }
200
+ .eds-media-card__title {
201
+ font-size: 1.5rem;
202
+ line-height: 1.875rem;
203
+ font-weight: 600;
204
+ margin: 0.75rem 0 0.5rem;
205
+ text-align: left;
206
+ width: -moz-fit-content;
207
+ width: fit-content;
208
+ position: relative;
209
+ }
210
+ .eds-media-card:hover {
211
+ transform: translateY(-0.25rem);
212
+ box-shadow: 0 0.125rem 1rem 0 rgba(0, 0, 0, 0.1);
213
+ }
214
+ .eds-media-card__text {
215
+ -webkit-appearance: none;
216
+ -moz-appearance: none;
217
+ appearance: none;
218
+ cursor: pointer;
219
+ color: inherit;
220
+ display: flex;
221
+ flex-direction: column;
222
+ text-decoration: none;
223
+ padding: 1.25rem 2rem 0;
224
+ }
225
+ .eds-media-card__text:focus {
226
+ outline: none;
227
+ }
228
+ .eds-media-card__arrow-icon {
229
+ align-self: flex-end;
230
+ margin: 1rem 0 1.5rem;
231
231
  }
232
232
  /* DO NOT CHANGE!*/
233
233
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/layout",
3
- "version": "2.1.26",
3
+ "version": "2.1.28",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/layout.esm.js",
@@ -27,11 +27,11 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^6.1.0",
30
+ "@entur/icons": "^6.2.0",
31
31
  "@entur/tokens": "^3.8.1",
32
- "@entur/typography": "^1.7.13",
33
- "@entur/utils": "^0.6.0",
32
+ "@entur/typography": "^1.7.14",
33
+ "@entur/utils": "^0.7.0",
34
34
  "classnames": "^2.3.1"
35
35
  },
36
- "gitHead": "a3edbb9069b9bd125919df8984b23628a1040cf4"
36
+ "gitHead": "402d010ee77f4ff809e3b709b0a29865c04cc1f4"
37
37
  }