@entur/layout 2.1.18 → 2.1.20

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 +68 -68
  2. package/package.json +6 -8
package/dist/styles.css CHANGED
@@ -1,6 +1,4 @@
1
- :root {
2
- --eds-layout: 1;
3
- }/* DO NOT CHANGE!*/
1
+ /* DO NOT CHANGE!*/
4
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
5
3
  .eds-contrast {
6
4
  --primary-background-color: #181c56;
@@ -8,67 +6,8 @@
8
6
  --primary-label-color: #aeb7e2;
9
7
  background-color: var(--primary-background-color);
10
8
  color: var(--primary-text-color);
11
- }/* DO NOT CHANGE!*/
12
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
13
- .eds-media-card {
14
- flex-direction: column;
15
- overflow: hidden;
16
- position: relative;
17
- width: -moz-fit-content;
18
- width: fit-content;
19
- transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
20
- }
21
- .eds-media-card:focus, .eds-media-card[focus-within] {
22
- outline: none;
23
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
24
- }
25
- .eds-media-card:focus, .eds-media-card:focus-within {
26
- outline: none;
27
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
28
- }
29
- .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card[focus-within] {
30
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
31
- }
32
- .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card:focus-within {
33
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
34
- }
35
- .eds-contrast .eds-media-card {
36
- background-color: #292b6a;
37
- }
38
- .eds-media-card__media {
39
- transition: transform 0.2s ease-in-out;
40
- }
41
- .eds-media-card__title {
42
- font-size: 1.5rem;
43
- line-height: 1.875rem;
44
- font-weight: 600;
45
- margin: 0.75rem 0 0.5rem;
46
- text-align: left;
47
- width: -moz-fit-content;
48
- width: fit-content;
49
- position: relative;
50
- }
51
- .eds-media-card:hover {
52
- transform: translateY(-0.25rem);
53
- box-shadow: 0 0.125rem 1rem 0 rgba(0, 0, 0, 0.1);
54
- }
55
- .eds-media-card__text {
56
- -webkit-appearance: none;
57
- -moz-appearance: none;
58
- appearance: none;
59
- cursor: pointer;
60
- color: inherit;
61
- display: flex;
62
- flex-direction: column;
63
- text-decoration: none;
64
- padding: 1.25rem 2rem 0;
65
- }
66
- .eds-media-card__text:focus {
67
- outline: none;
68
- }
69
- .eds-media-card__arrow-icon {
70
- align-self: flex-end;
71
- margin: 1rem 0 1.5rem;
9
+ }:root {
10
+ --eds-layout: 1;
72
11
  }/* DO NOT CHANGE!*/
73
12
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
74
13
  .eds-base-card {
@@ -86,7 +25,7 @@
86
25
  .eds-contrast .eds-base-card {
87
26
  background-color: #292b6a;
88
27
  border-color: #54568c;
89
- box-shadow: 0 0.0625rem 0.1875rem 0 #393d79;
28
+ box-shadow: 0 0.0625rem 0.1875rem 0 rgb(57, 61, 121);
90
29
  }/* DO NOT CHANGE!*/
91
30
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
92
31
  /* DO NOT CHANGE!*/
@@ -130,7 +69,7 @@
130
69
  border-radius: 0.25rem;
131
70
  }
132
71
  .eds-contrast .eds-navigation-card:before {
133
- box-shadow: 0 0.125rem 1rem 0 #393d79;
72
+ box-shadow: 0 0.125rem 1rem 0 rgb(57, 61, 121);
134
73
  }
135
74
  .eds-navigation-card:hover {
136
75
  transform: translateY(-0.25rem);
@@ -197,6 +136,67 @@
197
136
  font-size: 1rem;
198
137
  }/* DO NOT CHANGE!*/
199
138
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
139
+ .eds-media-card {
140
+ flex-direction: column;
141
+ overflow: hidden;
142
+ position: relative;
143
+ width: -moz-fit-content;
144
+ width: fit-content;
145
+ transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
146
+ }
147
+ .eds-media-card:focus, .eds-media-card[focus-within] {
148
+ outline: none;
149
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
150
+ }
151
+ .eds-media-card:focus, .eds-media-card:focus-within {
152
+ outline: none;
153
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
154
+ }
155
+ .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card[focus-within] {
156
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
157
+ }
158
+ .eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card:focus-within {
159
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
160
+ }
161
+ .eds-contrast .eds-media-card {
162
+ background-color: #292b6a;
163
+ }
164
+ .eds-media-card__media {
165
+ transition: transform 0.2s ease-in-out;
166
+ }
167
+ .eds-media-card__title {
168
+ font-size: 1.5rem;
169
+ line-height: 1.875rem;
170
+ font-weight: 600;
171
+ margin: 0.75rem 0 0.5rem;
172
+ text-align: left;
173
+ width: -moz-fit-content;
174
+ width: fit-content;
175
+ position: relative;
176
+ }
177
+ .eds-media-card:hover {
178
+ transform: translateY(-0.25rem);
179
+ box-shadow: 0 0.125rem 1rem 0 rgba(0, 0, 0, 0.1);
180
+ }
181
+ .eds-media-card__text {
182
+ -webkit-appearance: none;
183
+ -moz-appearance: none;
184
+ appearance: none;
185
+ cursor: pointer;
186
+ color: inherit;
187
+ display: flex;
188
+ flex-direction: column;
189
+ text-decoration: none;
190
+ padding: 1.25rem 2rem 0;
191
+ }
192
+ .eds-media-card__text:focus {
193
+ outline: none;
194
+ }
195
+ .eds-media-card__arrow-icon {
196
+ align-self: flex-end;
197
+ margin: 1rem 0 1.5rem;
198
+ }/* DO NOT CHANGE!*/
199
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
200
200
  .eds-tag {
201
201
  background: #e9e9e9;
202
202
  color: #181c56;
@@ -214,7 +214,7 @@
214
214
  }
215
215
  .eds-tag--compact {
216
216
  font-size: 0.75rem;
217
- padding: calc(0.25rem / 2) 0.5rem;
217
+ padding: 0.125rem 0.5rem;
218
218
  line-height: 1.25rem;
219
219
  height: 1.5rem;
220
220
  }
@@ -380,7 +380,7 @@
380
380
  left: 0;
381
381
  content: "";
382
382
  position: absolute;
383
- top: calc(0.625rem / 2);
383
+ top: 0.3125rem;
384
384
  height: 0.625rem;
385
385
  width: 0.625rem;
386
386
  border-radius: 50%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/layout",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/layout.esm.js",
@@ -27,13 +27,11 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^5.5.0",
31
- "@entur/typography": "^1.7.7",
32
- "@entur/utils": "^0.5.2",
30
+ "@entur/icons": "^5.7.0",
31
+ "@entur/tokens": "^3.7.0",
32
+ "@entur/typography": "^1.7.9",
33
+ "@entur/utils": "^0.5.4",
33
34
  "classnames": "^2.3.1"
34
35
  },
35
- "devDependencies": {
36
- "@entur/tokens": "^3.5.0"
37
- },
38
- "gitHead": "30b38034aaafba9fb308fb3d8c8bfaab9608d720"
36
+ "gitHead": "0488198c40c8c610f981c97c8a755a9a435044dd"
39
37
  }