@eeacms/volto-eea-design-system 1.13.2 → 1.15.0

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.
@@ -8,6 +8,7 @@
8
8
  @contentBoxBackgroundColor: @grey-1;
9
9
  @contentBoxNoBackground: transparent;
10
10
  @contentBoxColorInverted : inherit;
11
+ @contentBoxBeforeZIndex: -1;
11
12
 
12
13
  /* Themes */
13
14
  @contentBoxBackgroundColorPrimary: @primaryColor;
@@ -345,7 +345,7 @@
345
345
  display: flex;
346
346
  overflow: auto;
347
347
  width: 100%;
348
- height: @mobilePopUpHeight;
348
+ min-height: @mobilePopUpHeight;
349
349
  align-items: @searchBoxAlignItems;
350
350
  background: @searchBoxBackgroundGradient;
351
351
 
@@ -582,7 +582,7 @@
582
582
 
583
583
  /* Search box */
584
584
  #search-box {
585
- height: @tabletPopUpHeight;
585
+ min-height: @tabletPopUpHeight;
586
586
 
587
587
  .wrapper {
588
588
  margin: @searchBoxTabletPopupMarginTop 0;
@@ -693,7 +693,7 @@
693
693
 
694
694
  /* Search box */
695
695
  #search-box {
696
- height: @computerPopUpHeight;
696
+ min-height: @computerPopUpHeight;
697
697
 
698
698
  .wrapper {
699
699
  margin: @searchBoxComputerPopupMarginTop 0;
@@ -241,9 +241,9 @@
241
241
  @searchBoxSuggestionsTextColor: @white;
242
242
  @searchBoxSuggestionsColumnGap: 2em;
243
243
  @searchBoxSuggestionsRowGap: 1em;
244
- @searchBoxMobilePopupMarginTop: 0.5em;
245
- @searchBoxTabletPopupMarginTop: 1em;
246
- @searchBoxComputerPopupMarginTop: 1.5em;
244
+ @searchBoxMobilePopupMarginTop: @em-space-8;
245
+ @searchBoxTabletPopupMarginTop: @em-space-8;
246
+ @searchBoxComputerPopupMarginTop: @em-space-8;
247
247
 
248
248
  /* Custom shadows for dropdowns */
249
249
  @shadow-topbar-dropdown: 2px 0 2px -5px hsla(@shadow-color, calc(@shadow-strength + 6%));
@@ -38,3 +38,9 @@
38
38
  #main main {
39
39
  overflow: inherit;
40
40
  }
41
+
42
+ // with z-index: -1 you don't get the hover and focused border for block child section
43
+ // TODO: to be removed if https://github.com/plone/volto/pull/5029 merged
44
+ .block .block:not(.inner)::before {
45
+ z-index: auto;
46
+ }
@@ -4,6 +4,10 @@
4
4
 
5
5
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/globals/utilities';
6
6
 
7
+ html, body {
8
+ font-size: @baseFontSize;
9
+ }
10
+
7
11
  // Accessibility outline on focus-visible for every component
8
12
  *:focus-visible {
9
13
  outline: @focusVisibleOutline;
@@ -11,6 +15,7 @@
11
15
 
12
16
  button:focus-visible,
13
17
  a.button:focus-visible,
18
+ .ui.dropdown:focus-visible,
14
19
  .ui.checkbox input[type="checkbox"]:focus-visible,
15
20
  .ui.checkbox input[type="radio"]:focus-visible {
16
21
  outline: @focusVisibleOutline !important;
@@ -132,25 +137,19 @@ a {
132
137
  color: @black;
133
138
  }
134
139
 
135
- /* Add colors for paragraphs styles options in StyeMenu */
140
+ /* Add colors for paragraphs styles options in StyleMenu */
136
141
  #style-menu.ui.dropdown .menu {
137
- span:nth-of-type(1) {
142
+ .block-style-primary {
138
143
  color: @primaryColor;
139
- span.text {
140
- color: @primaryColor;
141
- }
142
144
  }
143
- span:nth-of-type(2) {
145
+ .block-style-secondary {
144
146
  color: @secondaryColor;
145
- span.text {
146
- color: @secondaryColor;
147
- }
148
147
  }
149
- span:nth-of-type(3) {
148
+ .block-style-tertiary {
150
149
  color: @tertiaryColor;
151
- span.text {
152
- color: @tertiaryColor;
153
- }
150
+ }
151
+ .active {
152
+ background-color: @grey-2;
154
153
  }
155
154
  }
156
155
 
@@ -175,16 +174,16 @@ a {
175
174
  visibility: hidden;
176
175
  }
177
176
  .image {
178
- page-break-inside: avoid;
177
+ page-break-inside: avoid;
179
178
  }
180
179
  img {
181
- page-break-inside: avoid;
180
+ page-break-inside: avoid;
182
181
  }
183
- .card {
184
- page-break-inside: avoid;
182
+ .card {
183
+ page-break-inside: avoid;
185
184
 
186
185
  }
187
186
  .grid-block-teaser .card{
188
- page-break-inside: auto;
187
+ page-break-inside: auto;
189
188
  }
190
189
  }
@@ -38,6 +38,9 @@
38
38
  /* The size of page text */
39
39
  @fontSize : 16px;
40
40
 
41
+ /* Overrides html & body default font-size to enable scaling from browser settings */
42
+ @baseFontSize: 1rem;
43
+
41
44
 
42
45
  /*-------------------
43
46
  Border Radius
@@ -140,7 +140,7 @@
140
140
  --card-image-height: @roundedImageHeight;
141
141
  }
142
142
  .ui.card.rounded {
143
- padding-top: @iconCardPaddingTop;
143
+ padding: @roundedCardPadding;
144
144
  border: none;
145
145
 
146
146
  .image {
@@ -377,6 +377,9 @@
377
377
  }
378
378
 
379
379
  .cards-carousel .slick-dots li button:before {
380
+ content: none;
381
+ }
382
+ .cards-carousel .slick-dots li .slick-dot-icon:before {
380
383
  background-color: @carouselDotsBackgroundColor;
381
384
  color: transparent;
382
385
  border: @carouselDotsBorder;
@@ -384,9 +387,16 @@
384
387
  opacity: @carouselDotsOpacity;
385
388
  width: @mobileCarouselDotsWidth;
386
389
  height: @mobileCarouselDotsHeight;
390
+ position: absolute;
391
+ top: 0;
392
+ left: 0;
393
+ content: '•';
394
+ text-align: center;
395
+ -webkit-font-smoothing: antialiased;
396
+ -moz-osx-font-smoothing: grayscale;
387
397
  }
388
398
 
389
- .cards-carousel .slick-dots li.slick-active button:before {
399
+ .cards-carousel .slick-dots li.slick-active .slick-dot-icon:before {
390
400
  background-color: @carouselDotsActiveBackgroundColor;
391
401
  color: transparent;
392
402
  }
@@ -415,6 +425,7 @@
415
425
  border-top: none;
416
426
  .header {
417
427
  word-break: break-word;
428
+ font-size: @iconCardHeaderFontSize;
418
429
  }
419
430
  }
420
431
  .icon {
@@ -450,6 +461,12 @@
450
461
  padding: @headerPadding;
451
462
  }
452
463
 
464
+ // when title is on image the extra padding that displays the
465
+ // link outline reveals part of title from 3rd row
466
+ .ui.card .gradient .header {
467
+ padding: @headerOnImagePadding;
468
+ }
469
+
453
470
  .ui.card .header > a {
454
471
  .useTitleMaxLines();
455
472
  }
@@ -457,4 +474,13 @@
457
474
  // Meta align fix
458
475
  .ui.card.u-card .meta:after {
459
476
  content: none;
460
- }
477
+ }
478
+
479
+ /*******************************
480
+ Image Card items grid
481
+ *******************************/
482
+ .imageCard-items {
483
+ display: grid;
484
+ gap: @imageCardItemsGap;
485
+ grid-template-columns: repeat(auto-fit,minmax(@imageCardItemsGridMin, @imageCardItemsGridMax));
486
+ }
@@ -18,7 +18,7 @@
18
18
  @fontFamily: @pageFont;
19
19
  @display: flex;
20
20
  @borderRadius: @defaultBorderRadius;
21
- @margin: 1em 0em;
21
+ @margin: 0em;
22
22
  @minHeight: 0px;
23
23
  @padding: 0em;
24
24
  @width: 290px;
@@ -69,7 +69,7 @@
69
69
  @iconColor: @tertiaryColor;
70
70
 
71
71
  /* Content */
72
- @contentDivider: @borderWidth solid @internalBorderColor;
72
+ @contentDivider: 0;
73
73
  @contentMargin: 0em;
74
74
  @contentBackground: none;
75
75
  @contentPadding: 1em 1em;
@@ -84,11 +84,13 @@
84
84
  @headerMargin: -@em-space-2 -@em-space-1 -@em-space-1 -@em-space-1;
85
85
  @headerFontWeight: @bold;
86
86
  @headerFontSize: 1.125rem;
87
+ @iconCardHeaderFontSize: clamp(@font-size-1, @font-size-2, 18px);
87
88
 
88
89
  @headerColor: inherit;
89
90
  @headerLinkDisplay: block;
90
91
 
91
92
  @headerPadding: @em-space-1;
93
+ @headerOnImagePadding: 0;
92
94
  @headerLineHeightOffset: -(@headerPadding * 2);
93
95
 
94
96
  /* Metadata */
@@ -270,8 +272,8 @@
270
272
  Image with title
271
273
  *******************************/
272
274
  @imageTitleColor: @white;
273
- @imageTitleFontSize: @h2;
274
- @imageTitleMobileFontSize: @mobileH1;
275
+ @imageTitleFontSize: clamp(@font-size-3, @h2, 32px);
276
+ @imageTitleMobileFontSize: clamp(@font-size-2, @mobileH1, 30px);
275
277
  @imageTitleFontWeight: @font-weight-7;
276
278
  @imageTitleLineHeight: @font-lineheight-0;
277
279
  @imageTitlePadding: @rem-space-6;
@@ -281,6 +283,7 @@
281
283
  Rounded Card
282
284
  *******************************/
283
285
  /* Global */
286
+ @roundedCardPadding : @rem-space-4 0;
284
287
  @roundedImageBorderRadius : @circularRadius;
285
288
  @roundedContentTitleMarginBottom : @rem-space-2;
286
289
  @roundedContentTitleTextAlign : left;
@@ -341,7 +344,7 @@
341
344
  @carouselButtonIconFontSize: 3.125rem;
342
345
  @carouselButtonIconOpacity: 1;
343
346
  @carouselButtonDistance: -3.5rem;
344
- @carouselButtonPaddingTop: @rem-space-4;
347
+ @carouselButtonPaddingTop: 0;
345
348
 
346
349
  /* Dots */
347
350
  @carouselDotsFontSize: 0.75rem;
@@ -366,3 +369,10 @@
366
369
  @tabletTeaserCardPaddingInline: @rem-space-2;
367
370
  @tabletTeaserCardMinWidth: 100%;
368
371
 
372
+
373
+ /*******************************
374
+ Image Card items grid
375
+ *******************************/
376
+ @imageCardItemsGap: 1.5rem;
377
+ @imageCardItemsGridMin: 275px;
378
+ @imageCardItemsGridMax: auto;
File without changes