@kitconcept/volto-light-theme 1.0.1 → 2.0.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.
package/src/index.js CHANGED
@@ -51,6 +51,7 @@ defineMessages({
51
51
  const applyConfig = (config) => {
52
52
  config.settings.enableAutoBlockGroupingByBackgroundColor = true;
53
53
  config.settings.navDepth = 3;
54
+ config.settings.enableFatMenu = true;
54
55
  config.settings.slate.useLinkedHeadings = false;
55
56
 
56
57
  // No required blocks (eg. Title)
@@ -291,7 +292,7 @@ const applyConfig = (config) => {
291
292
  };
292
293
 
293
294
  // Check if the separator is present before enhancing it
294
- if (config.blocks.blocksConfig.separator.id) {
295
+ if (config.blocks.blocksConfig?.separator?.id) {
295
296
  config.blocks.blocksConfig.separator = {
296
297
  ...config.blocks.blocksConfig.separator,
297
298
  schemaEnhancer: composeSchema(
@@ -5,22 +5,24 @@
5
5
  .logo-nav-wrapper {
6
6
  display: flex;
7
7
  flex-direction: row;
8
- flex-grow: 2;
9
8
  align-items: baseline;
10
9
  justify-content: space-between;
11
- padding-top: 2rem;
12
- padding-bottom: 1rem;
10
+ padding-top: 25px;
11
+ padding-bottom: 35px;
13
12
 
14
13
  .logo {
14
+ flex: 1 1 0;
15
15
  align-self: center;
16
16
  }
17
17
 
18
18
  .navigation {
19
19
  display: flex;
20
+ flex: 3.5 1 0;
20
21
  align-self: center;
22
+ justify-content: center;
21
23
 
22
- @media only screen and (max-width: $computer-width) {
23
- justify-content: flex-end;
24
+ @media only screen and (max-width: 1021px) {
25
+ display: none;
24
26
  }
25
27
 
26
28
  .desktop.menu {
@@ -34,6 +36,7 @@
34
36
  font-size: 18px;
35
37
  font-weight: 600;
36
38
  line-height: 24px;
39
+ text-align: center;
37
40
  }
38
41
  }
39
42
 
@@ -58,10 +61,18 @@
58
61
  }
59
62
  }
60
63
  }
64
+
61
65
  .search-wrapper {
62
66
  display: flex;
67
+ flex: 1 1 0;
63
68
  flex-direction: row-reverse;
64
69
 
70
+ @media only screen and (max-width: 1021px) {
71
+ &.navigation-desktop {
72
+ display: none;
73
+ }
74
+ }
75
+
65
76
  .search {
66
77
  .searchbox {
67
78
  display: flex;
@@ -80,8 +91,8 @@
80
91
  }
81
92
 
82
93
  button {
83
- width: 75px;
84
- height: 75px;
94
+ width: 64px;
95
+ height: 64px;
85
96
  border: none;
86
97
  border-radius: 50%;
87
98
  background-color: transparent;
@@ -103,6 +114,7 @@
103
114
  transform: scale(0.75);
104
115
  }
105
116
  }
117
+
106
118
  &:active {
107
119
  transform: scale(0.85);
108
120
  transition-duration: 100ms;
@@ -154,6 +166,7 @@
154
166
  padding-top: 2rem;
155
167
  margin-left: 0.5rem;
156
168
  }
169
+
157
170
  @media only screen and (max-width: $large-monitor-breakpoint) {
158
171
  padding-top: 0;
159
172
  }
@@ -166,6 +179,7 @@
166
179
  background-color: $lightgrey;
167
180
  color: $black;
168
181
  font-size: 1.5rem;
182
+
169
183
  @media only screen and (min-width: $tablet-breakpoint) and (max-width: 788px) {
170
184
  margin-left: 1.5rem;
171
185
  }
@@ -213,6 +227,7 @@
213
227
  .language-selector a {
214
228
  text-transform: uppercase;
215
229
  }
230
+
216
231
  .tools {
217
232
  display: flex;
218
233
  }
@@ -247,3 +262,574 @@
247
262
  }
248
263
  }
249
264
  }
265
+
266
+ // Fat Navigation fix in edit view
267
+
268
+ /* Fat menu implementation */
269
+ .navigation {
270
+ height: 64px;
271
+
272
+ @media only screen and (max-width: $tablet-breakpoint) {
273
+ display: none !important;
274
+ }
275
+
276
+ .item {
277
+ position: relative;
278
+ color: $black;
279
+ font-size: 18px;
280
+ font-weight: 600;
281
+ line-height: 24px;
282
+ text-transform: initial;
283
+
284
+ &.active::before,
285
+ &:hover::before {
286
+ position: absolute;
287
+ bottom: -49px;
288
+ width: 100%;
289
+ border-bottom: 9px solid $black;
290
+ content: '';
291
+ }
292
+ }
293
+
294
+ .ui.container {
295
+ display: flex;
296
+ align-items: center;
297
+ justify-content: flex-end;
298
+ }
299
+
300
+ .menu-wrapper {
301
+ display: flex;
302
+ justify-content: flex-end;
303
+ }
304
+
305
+ ul.desktop-menu {
306
+ display: flex;
307
+ min-height: initial;
308
+ padding: 0;
309
+ padding: 0;
310
+ margin: 0;
311
+ font-size: 20px;
312
+ list-style: none;
313
+
314
+ & > li > button,
315
+ & > li > a {
316
+ padding: 0;
317
+ padding-top: 20px;
318
+ padding-bottom: 6px;
319
+ border: none;
320
+ border-bottom: 9px solid transparent;
321
+ margin: 0;
322
+ margin-left: 20px;
323
+ background: none;
324
+ cursor: pointer;
325
+ font-weight: 700;
326
+ text-transform: none;
327
+ }
328
+ & > li > a {
329
+ display: block;
330
+
331
+ &.item {
332
+ &.active::before,
333
+ &:hover::before {
334
+ display: none;
335
+ }
336
+ }
337
+ }
338
+
339
+ & > li:first-child > button {
340
+ margin-left: 0;
341
+ }
342
+
343
+ .submenu-wrapper {
344
+ position: absolute;
345
+ z-index: 11;
346
+ right: 50%;
347
+ left: 50%;
348
+ width: 100vw;
349
+ max-width: initial;
350
+ margin-top: 40px;
351
+ margin-right: -50vw;
352
+ margin-left: -50vw;
353
+ }
354
+
355
+ .submenu {
356
+ display: none;
357
+ height: auto;
358
+ padding: 50px 102px 70px;
359
+ background: $lightgrey;
360
+ box-shadow: 0px 15px 20px 0px rgba(0, 0, 0, 0.25);
361
+
362
+ @media only screen and (min-width: $tablet-breakpoint) and (max-width: $computer-breakpoint) {
363
+ padding: 40px 40px;
364
+ }
365
+
366
+ ul {
367
+ display: flex;
368
+ width: 100%;
369
+ flex-direction: row;
370
+ flex-wrap: wrap;
371
+ justify-content: flex-start;
372
+ padding: 0;
373
+ padding-top: 50px;
374
+ list-style: none;
375
+
376
+ .sub-submenu ul {
377
+ display: flex;
378
+ flex-direction: column;
379
+ padding-top: 0;
380
+ margin-top: 20px;
381
+
382
+ li {
383
+ padding: 0;
384
+ padding-bottom: 10px;
385
+ color: $white;
386
+
387
+ a {
388
+ font-size: 14px;
389
+ font-weight: 400;
390
+ line-height: 18px;
391
+ }
392
+
393
+ a.current.active {
394
+ font-weight: 700;
395
+ }
396
+ }
397
+ }
398
+ }
399
+
400
+ .close {
401
+ position: absolute;
402
+ top: 27px;
403
+ right: 75px;
404
+ color: $black;
405
+ cursor: pointer;
406
+ }
407
+
408
+ &-inner {
409
+ width: 100%;
410
+
411
+ h2 {
412
+ position: relative;
413
+ display: inline-block;
414
+ margin-left: 25px;
415
+ color: $black;
416
+ @include introduction();
417
+ text-align: left;
418
+ }
419
+
420
+ .subitem-wrapper {
421
+ width: 20%;
422
+ padding: 0 20px 0 10px;
423
+ padding-left: 25px;
424
+ border-left: 1px solid #000;
425
+
426
+ /* This is for tablet landscape mode */
427
+ @media only screen and (min-width: 1011px) and (max-width: 1280px) {
428
+ width: 33.33%;
429
+ }
430
+
431
+ .left-arrow {
432
+ position: absolute;
433
+ left: -45px;
434
+ border-bottom: none;
435
+ font-family: 'Arial';
436
+ font-size: 35px;
437
+ transform: rotate(270deg);
438
+ visibility: hidden;
439
+ }
440
+
441
+ &:nth-of-type(5n) {
442
+ padding-right: 0;
443
+ }
444
+
445
+ &:nth-of-type(n + 6) {
446
+ margin-top: 70px;
447
+ // padding: 0 80px 0 10px;
448
+ }
449
+
450
+ /* This is for tablet landscape mode */
451
+ @media only screen and (min-width: 1011px) and (max-width: 1280px) {
452
+ &:nth-of-type(n + 4) {
453
+ margin-top: 70px;
454
+ }
455
+ }
456
+
457
+ /* This is for tablet landscape mode */
458
+ @media only screen and (min-width: 1011px) and (max-width: 1280px) {
459
+ &:nth-of-type(3n) {
460
+ padding-right: 0;
461
+ }
462
+ }
463
+
464
+ li {
465
+ position: relative;
466
+ padding-top: 0;
467
+ }
468
+
469
+ li a.current {
470
+ .left-arrow {
471
+ visibility: visible;
472
+ }
473
+ }
474
+
475
+ a {
476
+ span {
477
+ @include word-break();
478
+ }
479
+ }
480
+ }
481
+ }
482
+
483
+ &.active {
484
+ display: flex;
485
+ }
486
+
487
+ li {
488
+ padding: 8px 0;
489
+ }
490
+
491
+ li a {
492
+ display: inline-flex;
493
+ align-items: flex-start;
494
+ color: $black;
495
+ @include body-text-bold();
496
+
497
+ span {
498
+ border-bottom: 1px solid transparent;
499
+ word-break: break-word;
500
+ }
501
+
502
+ span:hover {
503
+ border-bottom: 1px solid #000;
504
+ }
505
+ }
506
+ }
507
+ }
508
+
509
+ .icon {
510
+ margin-left: 28px;
511
+ }
512
+ }
513
+
514
+ /* Fat menu in Edit mode */
515
+ .view-editview,
516
+ .view-addview {
517
+ .navigation {
518
+ ul.desktop-menu .submenu-wrapper {
519
+ display: none;
520
+ }
521
+
522
+ .item:hover::before,
523
+ .item.active::before {
524
+ display: none;
525
+ }
526
+ }
527
+ }
528
+
529
+ // Mobile Navigation
530
+
531
+ .mobile-nav {
532
+ .ui.basic.button.search {
533
+ padding: 15px;
534
+ }
535
+
536
+ .hamburger {
537
+ padding-bottom: 0;
538
+ }
539
+
540
+ .hamburger-wrapper {
541
+ display: flex;
542
+ }
543
+
544
+ .hamburger-inner,
545
+ .hamburger-inner:before,
546
+ .hamburger-inner:after {
547
+ height: 5px;
548
+ border-radius: 0;
549
+ }
550
+ }
551
+
552
+ .mobile-nav div.menu-drawer {
553
+ .header,
554
+ .header button {
555
+ font-weight: 700;
556
+ }
557
+
558
+ li.header {
559
+ margin: 0 !important;
560
+ }
561
+
562
+ li.current:before {
563
+ position: absolute;
564
+ left: -50px;
565
+ width: 0;
566
+ height: 100%;
567
+ border-left: 9px solid black;
568
+ content: '';
569
+ }
570
+
571
+ .search-header {
572
+ a {
573
+ display: flex;
574
+ width: auto;
575
+ align-items: center;
576
+ justify-content: space-between;
577
+ margin-top: 32px;
578
+ margin-right: 30px;
579
+ float: right;
580
+ line-height: 30px;
581
+
582
+ button {
583
+ padding: 0;
584
+ border: 0;
585
+ margin-right: 0;
586
+ margin-bottom: 23px;
587
+ }
588
+ }
589
+ }
590
+ }
591
+
592
+ .header-wrapper.institut {
593
+ .menu-drawer {
594
+ z-index: 520;
595
+ }
596
+ }
597
+
598
+ .menu-drawer {
599
+ position: fixed;
600
+ top: 135px;
601
+ right: 0;
602
+ display: flex;
603
+ display: flex;
604
+ width: 100vw;
605
+ height: calc(100vh - 110px);
606
+ flex-direction: column;
607
+ padding-bottom: 80px;
608
+ /* line-height: 70px; */
609
+ background-color: #f4f7f8;
610
+ color: #fffffe;
611
+ font-size: 20px;
612
+ font-weight: 200;
613
+ letter-spacing: 0.3px;
614
+ overflow-y: auto;
615
+ text-align: left;
616
+
617
+ @media only screen and (max-width: $computer-breakpoint) {
618
+ top: calc(157px + 1rem); // Adjusting the margin top of the logo
619
+ }
620
+
621
+ @media only screen and (max-width: $computer-breakpoint) {
622
+ top: calc(135px + 1rem); // Adjusting the margin top of the logo
623
+ }
624
+
625
+ &.search-menu {
626
+ height: 250px;
627
+ }
628
+
629
+ &.subsection {
630
+ z-index: 9;
631
+ flex-direction: column;
632
+ }
633
+
634
+ .search-hero {
635
+ position: static;
636
+
637
+ @media only screen and (max-width: $computer-breakpoint) {
638
+ position: relative;
639
+ }
640
+
641
+ .ui.input input {
642
+ font-size: 24px;
643
+ }
644
+
645
+ .ui.form.inline-search {
646
+ padding: 1rem;
647
+
648
+ @media only screen and (min-width: $tablet-breakpoint) and (max-width: $computer-breakpoint) {
649
+ padding: 0 150px;
650
+ }
651
+ }
652
+
653
+ .ui.button .icon {
654
+ height: 30px !important;
655
+ }
656
+ }
657
+
658
+ ul.mobile-tools {
659
+ padding: 60px 30px 0 30px;
660
+ margin: 0;
661
+ font-size: 20px;
662
+ font-weight: 200;
663
+ list-style: none;
664
+
665
+ li {
666
+ display: list-item !important;
667
+ padding: 4px 0 !important;
668
+ border-bottom: 0 !important;
669
+ margin-left: 0 !important;
670
+ }
671
+
672
+ .search-container-mobile {
673
+ padding-top: 0px;
674
+ }
675
+
676
+ li a {
677
+ display: inline !important;
678
+ color: blue;
679
+ text-decoration: underline;
680
+ }
681
+
682
+ span {
683
+ color: $black;
684
+ }
685
+
686
+ .language-selector *:not(:last-child):after {
687
+ margin-right: 5px;
688
+ margin-left: 5px;
689
+ content: '|';
690
+ font-weight: 300;
691
+ }
692
+
693
+ &.secondary {
694
+ margin: 20px 0;
695
+
696
+ .language-selector {
697
+ display: flex;
698
+ }
699
+
700
+ li {
701
+ padding: 20px 0;
702
+ border-bottom: none;
703
+ text-transform: uppercase;
704
+ }
705
+
706
+ a {
707
+ color: grey;
708
+ }
709
+
710
+ span {
711
+ color: black;
712
+ }
713
+
714
+ .search-container-mobile {
715
+ padding-top: 0px;
716
+
717
+ button {
718
+ width: auto;
719
+ padding: 0px;
720
+ border-bottom: none;
721
+ }
722
+ }
723
+ }
724
+ }
725
+
726
+ ul.sections {
727
+ width: 100%;
728
+ padding: 0 30px;
729
+ margin-top: 0;
730
+ color: $white;
731
+ font-size: 20px;
732
+ list-style: none;
733
+
734
+ li {
735
+ position: relative;
736
+ display: flex;
737
+ align-items: center;
738
+ justify-content: space-between;
739
+ padding: 20px 0;
740
+ border-bottom: 1px solid;
741
+ margin-left: 20px;
742
+ color: $black;
743
+ line-height: 24px;
744
+
745
+ .icon:hover {
746
+ cursor: pointer;
747
+ }
748
+
749
+ &.current {
750
+ font-weight: 700;
751
+ }
752
+
753
+ &.has-children {
754
+ border-bottom: 0;
755
+ }
756
+
757
+ &.sub-sub-section {
758
+ padding-left: 1em;
759
+ border-bottom: 0;
760
+
761
+ &.last-child {
762
+ border-bottom: 1px solid;
763
+ }
764
+ }
765
+ }
766
+
767
+ a {
768
+ display: flex;
769
+ width: 100%;
770
+ align-items: center;
771
+ justify-content: space-between;
772
+ color: $black;
773
+ line-height: 36px;
774
+ }
775
+
776
+ .subsection {
777
+ .button-wrapper {
778
+ margin: 0 30px;
779
+ margin-top: 20px;
780
+ }
781
+
782
+ button {
783
+ padding: 20px 0 0 10px;
784
+ border: 0px;
785
+ background: transparent;
786
+ color: $black;
787
+
788
+ span {
789
+ display: inline-block;
790
+ padding-top: 22px;
791
+ font-size: 14px;
792
+ font-weight: bold;
793
+ vertical-align: top;
794
+ }
795
+ }
796
+ }
797
+ }
798
+ }
799
+
800
+ .has-toolbar .menu-drawer,
801
+ .has-toolbar-collapsed .menu-drawer {
802
+ top: 158px;
803
+ width: 100%;
804
+ height: calc(100vh - 158px);
805
+ }
806
+
807
+ .menu-drawer-enter {
808
+ opacity: 0;
809
+ /* transform: translate(-100%, 0%); */
810
+ transition: opacity 500ms;
811
+ }
812
+
813
+ .menu-drawer-enter.menu-drawer-enter-active {
814
+ opacity: 1;
815
+ /* transform: translate(0%, 0%); */
816
+ transition:
817
+ transform 0.5s cubic-bezier(0.09, 0.11, 0.24, 0.91),
818
+ opacity 500ms;
819
+ }
820
+
821
+ .menu-drawer-exit {
822
+ opacity: 1;
823
+ /* transform: translate(0%, 0%); */
824
+ transition:
825
+ transform 0.5s cubic-bezier(0.09, 0.11, 0.24, 0.91),
826
+ opacity 500ms;
827
+ }
828
+
829
+ .menu-drawer-exit.menu-drawer-exit-active {
830
+ opacity: 0;
831
+ /* transform: translate(-100%, 0%); */
832
+ transition:
833
+ transform 0.5s cubic-bezier(0.09, 0.11, 0.24, 0.91),
834
+ opacity 500ms;
835
+ }
@@ -41,6 +41,12 @@
41
41
  @include body-text-bold();
42
42
  }
43
43
 
44
+ .block.__button .ui.button:focus,
45
+ .block.__button .ui.button:hover {
46
+ background-color: $black;
47
+ color: $white;
48
+ }
49
+
44
50
  .block-editor-__button.has--backgroundColor--grey {
45
51
  background-color: $lightgrey;
46
52
  }
@@ -37,6 +37,10 @@
37
37
  margin-bottom: $spacing-large;
38
38
  }
39
39
 
40
+ &.align.full iframe {
41
+ max-height: 600px;
42
+ }
43
+
40
44
  &.align.right iframe,
41
45
  &.align.left iframe {
42
46
  @container (max-width: #{$largest-mobile-screen}) {