@eeacms/volto-eea-design-system 0.2.1 → 0.2.2
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 +119 -1
- package/package.json +1 -1
- package/src/semantic.less +1 -5
- package/src/ui/Button/Button.stories.jsx +56 -36
- package/src/ui/{AvatarGrid → Card/AvatarGrid}/AvatarGrid.jsx +14 -14
- package/src/ui/{AvatarGrid → Card/AvatarGrid}/AvatarGrid.stories.jsx +24 -21
- package/src/ui/Card/Card.stories.jsx +249 -0
- package/src/ui/Card/PublicationCard.stories.jsx +46 -0
- package/src/ui/Card/RelatedContent/RelatedContent.jsx +76 -0
- package/src/ui/Card/RelatedContent/RelatedContent.stories.jsx +313 -0
- package/src/ui/Card/RoundedCard.stories.jsx +96 -0
- package/src/ui/KeyContent/KeyContent.jsx +9 -3
- package/src/ui/KeyContent/KeyContent.stories.jsx +1 -22
- package/src/ui/Loader/Loader.stories.jsx +21 -3
- package/src/ui/Testimonial/Testimonial.jsx +9 -8
- package/src/ui/Testimonial/Testimonial.stories.jsx +14 -11
- package/src/ui/Timeline/Timeline.jsx +1 -1
- package/src/ui/Timeline/Timeline.stories.jsx +12 -12
- package/src/ui/index.js +2 -4
- package/theme/theme.config +2 -4
- package/theme/themes/eea/collections/breadcrumb.overrides +27 -19
- package/theme/themes/eea/collections/breadcrumb.variables +3 -3
- package/theme/themes/eea/collections/form.overrides +116 -0
- package/theme/themes/eea/elements/button.overrides +100 -120
- package/theme/themes/eea/elements/button.variables +20 -6
- package/theme/themes/eea/elements/label.overrides +12 -3
- package/theme/themes/eea/elements/label.variables +1 -1
- package/theme/themes/eea/elements/list.overrides +10 -0
- package/theme/themes/eea/elements/list.variables +3 -1
- package/theme/themes/eea/elements/loader.overrides +197 -0
- package/theme/themes/eea/elements/loader.variables +12 -1
- package/theme/themes/eea/elements/segment.variables +2 -2
- package/theme/themes/eea/extras/avatarGrid.less +22 -24
- package/theme/themes/eea/extras/avatarGrid.variables +4 -8
- package/theme/themes/eea/extras/banner.less +32 -41
- package/theme/themes/eea/extras/blockquote.less +6 -3
- package/theme/themes/eea/extras/footer.less +239 -241
- package/theme/themes/eea/extras/keyContent.less +18 -16
- package/theme/themes/eea/extras/keyContent.variables +13 -7
- package/theme/themes/eea/extras/main.overrides +9 -0
- package/theme/themes/eea/extras/main.variables +3 -0
- package/theme/themes/eea/extras/pullquote.less +3 -3
- package/theme/themes/eea/extras/relatedContent.less +27 -0
- package/theme/themes/eea/extras/relatedContent.variables +3 -0
- package/theme/themes/eea/extras/tagList.less +0 -1
- package/theme/themes/eea/globals/site.variables +7 -7
- package/theme/themes/eea/modules/modal.overrides +4 -0
- package/theme/themes/eea/modules/progress.variables +1 -1
- package/theme/themes/eea/modules/tab.overrides +9 -1
- package/theme/themes/eea/modules/tab.variables +2 -1
- package/theme/themes/eea/views/card.overrides +242 -25
- package/theme/themes/eea/views/card.variables +92 -8
- package/src/ui/Avatar/Avatar.jsx +0 -32
- package/src/ui/Avatar/Avatar.stories.jsx +0 -61
- package/src/ui/PublicationCard/PublicationCard.jsx +0 -27
- package/src/ui/PublicationCard/PublicationCard.stories.jsx +0 -69
- package/src/ui/RelatedContent/RelatedContent.jsx +0 -90
- package/src/ui/RelatedContent/RelatedContent.stories.jsx +0 -80
- package/theme/themes/eea/extras/avatar.less +0 -97
- package/theme/themes/eea/extras/avatar.variables +0 -34
- package/theme/themes/eea/extras/publicationCard.less +0 -62
- package/theme/themes/eea/extras/publicationCard.variables +0 -24
|
@@ -9,35 +9,33 @@
|
|
|
9
9
|
|
|
10
10
|
.eea.avatar-grid {
|
|
11
11
|
width: @avatarGridWidth;
|
|
12
|
+
|
|
12
13
|
.wrapper {
|
|
13
14
|
width: @avatarGridWrapperWidth;
|
|
15
|
+
|
|
14
16
|
.content {
|
|
15
|
-
width: @avatarGridContentWidth;
|
|
16
17
|
display: flex;
|
|
17
18
|
flex-direction: column;
|
|
18
|
-
|
|
19
|
-
.grid-title {
|
|
20
|
-
width: @avatarGridContentTitleWidth;
|
|
21
|
-
font-weight: @avatarGridContentTitleFontWeight;
|
|
22
|
-
font-size: @avatarGridContentTitleFontSize;
|
|
23
|
-
text-align: center;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.grid-title.hidden {
|
|
27
|
-
display: none;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.avatar.group {
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: center;
|
|
33
|
-
width: @avatarGroupWidth;
|
|
34
|
-
margin-top: @avatarGroupMarginTop;
|
|
35
|
-
|
|
36
|
-
.avatar-wrapper {
|
|
37
|
-
padding-left: @avatarGroupWrapperPaddingRight;
|
|
38
|
-
padding-right: @avatarGroupWrapperPaddingRight;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
19
|
+
width: @avatarGridContentWidth;
|
|
41
20
|
}
|
|
42
21
|
}
|
|
43
22
|
}
|
|
23
|
+
|
|
24
|
+
.eea.avatar-grid {
|
|
25
|
+
.grid-title {
|
|
26
|
+
text-align: @avatarGridContentTitleTextAlign;
|
|
27
|
+
width: @avatarGridContentTitleWidth;
|
|
28
|
+
margin: @avatarGroupMargin;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.grid-title.hidden {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.eea.avatar-grid .avatar.group {
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
width: @avatarGroupWidth;
|
|
40
|
+
margin: @avatarGroupMargin;
|
|
41
|
+
}
|
|
@@ -2,19 +2,15 @@
|
|
|
2
2
|
Avatar Grid
|
|
3
3
|
*******************************/
|
|
4
4
|
|
|
5
|
-
@avatarGridWidth: 100%;
|
|
5
|
+
@avatarGridWidth : 100%;
|
|
6
6
|
@avatarGridWrapperWidth : 100%;
|
|
7
7
|
@avatarGridContentWidth : 100%;
|
|
8
8
|
|
|
9
9
|
/* Grid Title */
|
|
10
|
+
@avatarGridContentTitleTextAlign : center;
|
|
10
11
|
@avatarGridContentTitleWidth : 100%;
|
|
11
|
-
@avatarGridContentTitleFontWeight :
|
|
12
|
-
@avatarGridContentTitleFontSize : 36px;
|
|
13
|
-
@avatarGridContentTitleLineHeight : 20px;
|
|
14
|
-
|
|
12
|
+
@avatarGridContentTitleFontWeight : @bold;
|
|
15
13
|
|
|
16
14
|
/* Avatar Group */
|
|
17
15
|
@avatarGroupWidth : 100%;
|
|
18
|
-
@
|
|
19
|
-
@avatarGroupWrapperPaddingLeft : 32px;
|
|
20
|
-
@avatarGroupWrapperPaddingRight : 32px;
|
|
16
|
+
@avatarGroupMargin : @largeGap 0;
|
|
@@ -90,14 +90,12 @@
|
|
|
90
90
|
|
|
91
91
|
.gradient {
|
|
92
92
|
background-image: @backgroundGradientWithImage;
|
|
93
|
-
|
|
93
|
+
|
|
94
94
|
.content {
|
|
95
95
|
padding: @mobileContentPaddingWithImage;
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
/*Share Popup*/
|
|
@@ -107,27 +105,26 @@
|
|
|
107
105
|
filter: @sharePopupFilter;
|
|
108
106
|
|
|
109
107
|
p {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
font-size: @sharePopupFontSize;
|
|
109
|
+
font-weight: @sharePopupFontWeight;
|
|
110
|
+
line-height: @sharePopupLineHeight;
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
.actions {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
flex-flow: column;
|
|
115
|
+
i.icon {
|
|
116
|
+
color: @sharePopupActionsIconColor;
|
|
117
|
+
}
|
|
120
118
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
.action {
|
|
120
|
+
display: flex;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
125
123
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
.ui.button:not(.icon) > .icon:not(.button):not(.dropdown) {
|
|
125
|
+
margin: @sharePopupActionsIconMargin;
|
|
126
|
+
}
|
|
129
127
|
}
|
|
130
|
-
|
|
131
128
|
}
|
|
132
129
|
|
|
133
130
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
@@ -135,30 +132,30 @@
|
|
|
135
132
|
.gradient {
|
|
136
133
|
.content {
|
|
137
134
|
padding: @tabletContentPadding;
|
|
138
|
-
|
|
135
|
+
|
|
139
136
|
.title {
|
|
140
137
|
font-size: @tabletTitleFontSize;
|
|
141
138
|
font-weight: @titleFontWeight;
|
|
142
139
|
margin: @tabletTitleMargin;
|
|
143
140
|
line-height: @tabletTitleLineHeight;
|
|
144
141
|
}
|
|
145
|
-
|
|
142
|
+
|
|
146
143
|
.metadata {
|
|
147
144
|
font-size: @tabletMetadataFontSize;
|
|
148
145
|
line-height: @tabletMetadataLineHeight;
|
|
149
146
|
}
|
|
150
|
-
|
|
147
|
+
|
|
151
148
|
.actions {
|
|
152
149
|
align-items: @tabletActionsAlignItems;
|
|
153
150
|
flex-direction: @tabletActionsFlexDirection;
|
|
154
|
-
|
|
151
|
+
|
|
155
152
|
.action {
|
|
156
|
-
min-width
|
|
157
|
-
|
|
153
|
+
min-width: @tabletActionsActionMinWidth;
|
|
154
|
+
|
|
158
155
|
.ui.basic.inverted.button i.icon {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
156
|
+
margin: @tabletBannerActionButtonMargin;
|
|
157
|
+
font-size: @tabletBannerActionButtonIconFontSize;
|
|
158
|
+
vertical-align: @bannerActionButtonIconVerticalAlign;
|
|
162
159
|
}
|
|
163
160
|
}
|
|
164
161
|
}
|
|
@@ -174,32 +171,28 @@
|
|
|
174
171
|
.ui.popup.share-popup {
|
|
175
172
|
min-width: @tabletSharePopupMinWidth;
|
|
176
173
|
|
|
177
|
-
.actions{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
174
|
+
.actions {
|
|
175
|
+
flex-flow: row;
|
|
176
|
+
display: flex;
|
|
177
|
+
justify-content: space-between;
|
|
181
178
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
.action {
|
|
180
|
+
display: inherit;
|
|
181
|
+
}
|
|
185
182
|
}
|
|
186
|
-
|
|
187
183
|
}
|
|
188
184
|
}
|
|
189
185
|
|
|
190
186
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
191
|
-
|
|
192
187
|
.eea.banner {
|
|
193
|
-
|
|
194
188
|
.image {
|
|
195
|
-
|
|
196
189
|
.gradient .content {
|
|
197
190
|
padding: @computerContentPaddingWithImage;
|
|
198
191
|
}
|
|
199
192
|
}
|
|
200
193
|
|
|
201
194
|
.gradient .content {
|
|
202
|
-
padding: @computerContentPadding
|
|
195
|
+
padding: @computerContentPadding;
|
|
203
196
|
|
|
204
197
|
.title {
|
|
205
198
|
font-size: @computerTitleFontSize;
|
|
@@ -207,7 +200,5 @@
|
|
|
207
200
|
line-height: @computerTitleLineHeight;
|
|
208
201
|
}
|
|
209
202
|
}
|
|
210
|
-
|
|
211
203
|
}
|
|
212
|
-
|
|
213
204
|
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
Blockquote
|
|
8
8
|
*******************************/
|
|
9
9
|
|
|
10
|
-
blockquote.callout,
|
|
10
|
+
blockquote.callout,
|
|
11
|
+
p.callout {
|
|
11
12
|
border: @calloutBorder;
|
|
12
13
|
box-shadow: @calloutBoxShadow;
|
|
13
14
|
border-radius: @calloutBorderRadius;
|
|
@@ -55,7 +56,8 @@ blockquote.callout, p.callout {
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
58
|
-
blockquote.callout,
|
|
59
|
+
blockquote.callout,
|
|
60
|
+
p.callout {
|
|
59
61
|
border-left: @tabletBlockquoteBorderLeft;
|
|
60
62
|
font-size: @tabletQuoteFontSize;
|
|
61
63
|
}
|
|
@@ -73,7 +75,8 @@ blockquote.callout, p.callout {
|
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
76
|
-
blockquote.callout,
|
|
78
|
+
blockquote.callout,
|
|
79
|
+
p.callout {
|
|
77
80
|
font-size: @computerQuoteFontSize;
|
|
78
81
|
}
|
|
79
82
|
|