@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.
Files changed (62) hide show
  1. package/CHANGELOG.md +119 -1
  2. package/package.json +1 -1
  3. package/src/semantic.less +1 -5
  4. package/src/ui/Button/Button.stories.jsx +56 -36
  5. package/src/ui/{AvatarGrid → Card/AvatarGrid}/AvatarGrid.jsx +14 -14
  6. package/src/ui/{AvatarGrid → Card/AvatarGrid}/AvatarGrid.stories.jsx +24 -21
  7. package/src/ui/Card/Card.stories.jsx +249 -0
  8. package/src/ui/Card/PublicationCard.stories.jsx +46 -0
  9. package/src/ui/Card/RelatedContent/RelatedContent.jsx +76 -0
  10. package/src/ui/Card/RelatedContent/RelatedContent.stories.jsx +313 -0
  11. package/src/ui/Card/RoundedCard.stories.jsx +96 -0
  12. package/src/ui/KeyContent/KeyContent.jsx +9 -3
  13. package/src/ui/KeyContent/KeyContent.stories.jsx +1 -22
  14. package/src/ui/Loader/Loader.stories.jsx +21 -3
  15. package/src/ui/Testimonial/Testimonial.jsx +9 -8
  16. package/src/ui/Testimonial/Testimonial.stories.jsx +14 -11
  17. package/src/ui/Timeline/Timeline.jsx +1 -1
  18. package/src/ui/Timeline/Timeline.stories.jsx +12 -12
  19. package/src/ui/index.js +2 -4
  20. package/theme/theme.config +2 -4
  21. package/theme/themes/eea/collections/breadcrumb.overrides +27 -19
  22. package/theme/themes/eea/collections/breadcrumb.variables +3 -3
  23. package/theme/themes/eea/collections/form.overrides +116 -0
  24. package/theme/themes/eea/elements/button.overrides +100 -120
  25. package/theme/themes/eea/elements/button.variables +20 -6
  26. package/theme/themes/eea/elements/label.overrides +12 -3
  27. package/theme/themes/eea/elements/label.variables +1 -1
  28. package/theme/themes/eea/elements/list.overrides +10 -0
  29. package/theme/themes/eea/elements/list.variables +3 -1
  30. package/theme/themes/eea/elements/loader.overrides +197 -0
  31. package/theme/themes/eea/elements/loader.variables +12 -1
  32. package/theme/themes/eea/elements/segment.variables +2 -2
  33. package/theme/themes/eea/extras/avatarGrid.less +22 -24
  34. package/theme/themes/eea/extras/avatarGrid.variables +4 -8
  35. package/theme/themes/eea/extras/banner.less +32 -41
  36. package/theme/themes/eea/extras/blockquote.less +6 -3
  37. package/theme/themes/eea/extras/footer.less +239 -241
  38. package/theme/themes/eea/extras/keyContent.less +18 -16
  39. package/theme/themes/eea/extras/keyContent.variables +13 -7
  40. package/theme/themes/eea/extras/main.overrides +9 -0
  41. package/theme/themes/eea/extras/main.variables +3 -0
  42. package/theme/themes/eea/extras/pullquote.less +3 -3
  43. package/theme/themes/eea/extras/relatedContent.less +27 -0
  44. package/theme/themes/eea/extras/relatedContent.variables +3 -0
  45. package/theme/themes/eea/extras/tagList.less +0 -1
  46. package/theme/themes/eea/globals/site.variables +7 -7
  47. package/theme/themes/eea/modules/modal.overrides +4 -0
  48. package/theme/themes/eea/modules/progress.variables +1 -1
  49. package/theme/themes/eea/modules/tab.overrides +9 -1
  50. package/theme/themes/eea/modules/tab.variables +2 -1
  51. package/theme/themes/eea/views/card.overrides +242 -25
  52. package/theme/themes/eea/views/card.variables +92 -8
  53. package/src/ui/Avatar/Avatar.jsx +0 -32
  54. package/src/ui/Avatar/Avatar.stories.jsx +0 -61
  55. package/src/ui/PublicationCard/PublicationCard.jsx +0 -27
  56. package/src/ui/PublicationCard/PublicationCard.stories.jsx +0 -69
  57. package/src/ui/RelatedContent/RelatedContent.jsx +0 -90
  58. package/src/ui/RelatedContent/RelatedContent.stories.jsx +0 -80
  59. package/theme/themes/eea/extras/avatar.less +0 -97
  60. package/theme/themes/eea/extras/avatar.variables +0 -34
  61. package/theme/themes/eea/extras/publicationCard.less +0 -62
  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 : 700;
12
- @avatarGridContentTitleFontSize : 36px;
13
- @avatarGridContentTitleLineHeight : 20px;
14
-
12
+ @avatarGridContentTitleFontWeight : @bold;
15
13
 
16
14
  /* Avatar Group */
17
15
  @avatarGroupWidth : 100%;
18
- @avatarGroupMarginTop : 67.54px;
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
- font-size: @sharePopupFontSize;
111
- font-weight: @sharePopupFontWeight;
112
- line-height: @sharePopupLineHeight;
108
+ font-size: @sharePopupFontSize;
109
+ font-weight: @sharePopupFontWeight;
110
+ line-height: @sharePopupLineHeight;
113
111
  }
114
112
 
115
113
  .actions {
116
- flex-flow: column;
117
- i.icon {
118
- color: @sharePopupActionsIconColor;
119
- }
114
+ flex-flow: column;
115
+ i.icon {
116
+ color: @sharePopupActionsIconColor;
117
+ }
120
118
 
121
- .action {
122
- display:flex;
123
- justify-content:center
124
- }
119
+ .action {
120
+ display: flex;
121
+ justify-content: center;
122
+ }
125
123
 
126
- .ui.button:not(.icon) > .icon:not(.button):not(.dropdown) {
127
- margin: @sharePopupActionsIconMargin;
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:@tabletActionsActionMinWidth;
157
-
153
+ min-width: @tabletActionsActionMinWidth;
154
+
158
155
  .ui.basic.inverted.button i.icon {
159
- margin: @tabletBannerActionButtonMargin;
160
- font-size: @tabletBannerActionButtonIconFontSize;
161
- vertical-align: @bannerActionButtonIconVerticalAlign;
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
- flex-flow: row;
179
- display: flex;
180
- justify-content: space-between;
174
+ .actions {
175
+ flex-flow: row;
176
+ display: flex;
177
+ justify-content: space-between;
181
178
 
182
- .action {
183
- display:inherit;
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, p.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, p.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, p.callout {
78
+ blockquote.callout,
79
+ p.callout {
77
80
  font-size: @computerQuoteFontSize;
78
81
  }
79
82