@entur/layout 2.1.4 → 2.1.5
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.
- package/CHANGELOG.md +4 -0
- package/dist/styles.css +85 -68
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.1.5](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.4...@entur/layout@2.1.5) (2022-04-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @entur/layout
|
|
9
|
+
|
|
6
10
|
## [2.1.4](https://bitbucket.org/enturas/design-system/compare/@entur/layout@2.1.3...@entur/layout@2.1.4) (2022-02-09)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @entur/layout
|
package/dist/styles.css
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
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,6 +6,8 @@
|
|
|
8
6
|
--primary-label-color: #aeb7e2;
|
|
9
7
|
background-color: var(--primary-background-color);
|
|
10
8
|
color: var(--primary-text-color);
|
|
9
|
+
}:root {
|
|
10
|
+
--eds-layout: 1;
|
|
11
11
|
}/* DO NOT CHANGE!*/
|
|
12
12
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
13
13
|
.eds-base-card {
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
border: 0.0625rem solid #e9e9e9;
|
|
17
17
|
border-radius: 0.25rem;
|
|
18
18
|
align-items: center;
|
|
19
|
-
appearance: none;
|
|
19
|
+
-webkit-appearance: none;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
appearance: none;
|
|
20
22
|
text-decoration: none;
|
|
21
23
|
color: inherit;
|
|
22
24
|
}
|
|
@@ -26,32 +28,67 @@
|
|
|
26
28
|
box-shadow: 0 0.0625rem 0.1875rem 0 #393d79;
|
|
27
29
|
}/* DO NOT CHANGE!*/
|
|
28
30
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
29
|
-
.eds-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
.eds-media-card {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
position: relative;
|
|
35
|
+
width: -webkit-fit-content;
|
|
36
|
+
width: -moz-fit-content;
|
|
37
|
+
width: fit-content;
|
|
38
|
+
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
37
39
|
}
|
|
38
|
-
.eds-
|
|
39
|
-
|
|
40
|
+
.eds-media-card:focus, .eds-media-card[focus-within] {
|
|
41
|
+
outline: none;
|
|
42
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
40
43
|
}
|
|
41
|
-
.eds-
|
|
42
|
-
|
|
44
|
+
.eds-media-card:focus, .eds-media-card:focus-within {
|
|
45
|
+
outline: none;
|
|
46
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
43
47
|
}
|
|
44
|
-
.eds-
|
|
45
|
-
|
|
46
|
-
padding: 0.125rem 0.5rem;
|
|
47
|
-
line-height: 1.25rem;
|
|
48
|
-
height: 1.5rem;
|
|
48
|
+
.eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card[focus-within] {
|
|
49
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
49
50
|
}
|
|
50
|
-
.eds-
|
|
51
|
-
|
|
51
|
+
.eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card:focus-within {
|
|
52
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
52
53
|
}
|
|
53
|
-
.eds-
|
|
54
|
-
|
|
54
|
+
.eds-contrast .eds-media-card {
|
|
55
|
+
background-color: #292b6a;
|
|
56
|
+
}
|
|
57
|
+
.eds-media-card__media {
|
|
58
|
+
transition: transform 0.2s ease-in-out;
|
|
59
|
+
}
|
|
60
|
+
.eds-media-card__title {
|
|
61
|
+
font-size: 1.5rem;
|
|
62
|
+
line-height: 1.875rem;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
margin: 0.75rem 0 0.5rem;
|
|
65
|
+
text-align: left;
|
|
66
|
+
width: -webkit-fit-content;
|
|
67
|
+
width: -moz-fit-content;
|
|
68
|
+
width: fit-content;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
.eds-media-card:hover {
|
|
72
|
+
transform: translateY(-0.25rem);
|
|
73
|
+
box-shadow: 0 0.125rem 1rem 0 rgba(0, 0, 0, 0.1);
|
|
74
|
+
}
|
|
75
|
+
.eds-media-card__text {
|
|
76
|
+
-webkit-appearance: none;
|
|
77
|
+
-moz-appearance: none;
|
|
78
|
+
appearance: none;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
color: inherit;
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
padding: 1.25rem 2rem 0;
|
|
85
|
+
}
|
|
86
|
+
.eds-media-card__text:focus {
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
.eds-media-card__arrow-icon {
|
|
90
|
+
align-self: flex-end;
|
|
91
|
+
margin: 1rem 0 1.5rem;
|
|
55
92
|
}/* DO NOT CHANGE!*/
|
|
56
93
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
57
94
|
/* DO NOT CHANGE!*/
|
|
@@ -162,54 +199,32 @@
|
|
|
162
199
|
font-size: 1rem;
|
|
163
200
|
}/* DO NOT CHANGE!*/
|
|
164
201
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
165
|
-
.eds-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
width:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
outline: none;
|
|
174
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
175
|
-
}
|
|
176
|
-
.eds-contrast .eds-media-card:focus, .eds-contrast .eds-media-card:focus-within {
|
|
177
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
178
|
-
}
|
|
179
|
-
.eds-contrast .eds-media-card {
|
|
180
|
-
background-color: #292b6a;
|
|
181
|
-
}
|
|
182
|
-
.eds-media-card__media {
|
|
183
|
-
transition: transform 0.2s ease-in-out;
|
|
202
|
+
.eds-tag {
|
|
203
|
+
background: #e9e9e9;
|
|
204
|
+
color: #181c56;
|
|
205
|
+
display: inline-block;
|
|
206
|
+
min-width: 2rem;
|
|
207
|
+
padding: 0.25rem 0.75rem;
|
|
208
|
+
font-size: 0.875rem;
|
|
209
|
+
line-height: 1.375rem;
|
|
184
210
|
}
|
|
185
|
-
.eds-
|
|
186
|
-
|
|
187
|
-
line-height: 1.875rem;
|
|
188
|
-
font-weight: 600;
|
|
189
|
-
margin: 0.75rem 0 0.5rem;
|
|
190
|
-
text-align: left;
|
|
191
|
-
width: fit-content;
|
|
192
|
-
position: relative;
|
|
211
|
+
.eds-tag--leading-icon .eds-icon {
|
|
212
|
+
margin-right: 0.5rem;
|
|
193
213
|
}
|
|
194
|
-
.eds-
|
|
195
|
-
|
|
196
|
-
box-shadow: 0 0.125rem 1rem 0 rgba(0, 0, 0, 0.1);
|
|
214
|
+
.eds-tag--trailing-icon .eds-icon {
|
|
215
|
+
margin-left: 0.5rem;
|
|
197
216
|
}
|
|
198
|
-
.eds-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
flex-direction: column;
|
|
204
|
-
text-decoration: none;
|
|
205
|
-
padding: 1.25rem 2rem 0;
|
|
217
|
+
.eds-tag--compact {
|
|
218
|
+
font-size: 0.75rem;
|
|
219
|
+
padding: 0.125rem 0.5rem;
|
|
220
|
+
line-height: 1.25rem;
|
|
221
|
+
height: 1.5rem;
|
|
206
222
|
}
|
|
207
|
-
.eds-
|
|
208
|
-
|
|
223
|
+
.eds-tag--compact.eds-tag--leading-icon .eds-icon {
|
|
224
|
+
margin-right: 0.25rem;
|
|
209
225
|
}
|
|
210
|
-
.eds-
|
|
211
|
-
|
|
212
|
-
margin: 1rem 0 1.5rem;
|
|
226
|
+
.eds-tag--compact.eds-tag--trailing-icon .eds-icon {
|
|
227
|
+
margin-left: 0.25rem;
|
|
213
228
|
}/* DO NOT CHANGE!*/
|
|
214
229
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
215
230
|
.eds-badge {
|
|
@@ -221,6 +236,8 @@
|
|
|
221
236
|
font-size: 0.75rem;
|
|
222
237
|
min-width: 1.5rem;
|
|
223
238
|
height: 1.5rem;
|
|
239
|
+
width: -webkit-fit-content;
|
|
240
|
+
width: -moz-fit-content;
|
|
224
241
|
width: fit-content;
|
|
225
242
|
line-height: 1rem;
|
|
226
243
|
padding: 2px 8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/layout",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/layout.esm.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/typography": "^1.6.
|
|
30
|
+
"@entur/typography": "^1.6.12",
|
|
31
31
|
"@entur/utils": "^0.4.3",
|
|
32
32
|
"classnames": "^2.3.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@entur/tokens": "^3.3.
|
|
35
|
+
"@entur/tokens": "^3.3.2"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "7b557782d62c07bdce744f9b084d57177e2202e9"
|
|
38
38
|
}
|