@openeuropa/bcl-theme-default 0.20.0 → 0.21.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.
Files changed (41) hide show
  1. package/css/oe-bcl-default.css +344 -0
  2. package/css/oe-bcl-default.css.map +1 -1
  3. package/css/oe-bcl-default.min.css +1 -1
  4. package/css/oe-bcl-default.min.css.map +1 -1
  5. package/icons/bcl-default-icons.svg +1 -1
  6. package/js/oe-bcl-default.bundle.js +242 -76
  7. package/js/oe-bcl-default.bundle.js.map +1 -1
  8. package/js/oe-bcl-default.bundle.min.js +1 -1
  9. package/js/oe-bcl-default.bundle.min.js.map +1 -1
  10. package/js/oe-bcl-default.esm.js +236 -75
  11. package/js/oe-bcl-default.esm.js.map +1 -1
  12. package/js/oe-bcl-default.esm.min.js +1 -1
  13. package/js/oe-bcl-default.esm.min.js.map +1 -1
  14. package/js/oe-bcl-default.umd.js +242 -76
  15. package/js/oe-bcl-default.umd.js.map +1 -1
  16. package/js/oe-bcl-default.umd.min.js +1 -1
  17. package/js/oe-bcl-default.umd.min.js.map +1 -1
  18. package/package.json +5 -5
  19. package/src/icons/icons.js +19 -0
  20. package/src/js/gallery/gallery.js +168 -0
  21. package/src/js/index.esm.js +2 -0
  22. package/src/js/index.umd.js +2 -0
  23. package/src/scss/_bcl-offcanvas.scss +7 -0
  24. package/src/scss/_carousel.scss +85 -0
  25. package/src/scss/_circular-progress-bar.scss +13 -11
  26. package/src/scss/_gallery.scss +262 -0
  27. package/src/scss/_pagination.scss +8 -0
  28. package/src/scss/_search-form.scss +4 -2
  29. package/src/scss/base/_utilities.scss +1 -0
  30. package/src/scss/oe-bcl-default.scss +3 -0
  31. package/templates/bcl-base-templates/listing-page.html.twig +13 -13
  32. package/templates/bcl-card/card.html.twig +35 -22
  33. package/templates/bcl-carousel/carousel.html.twig +26 -5
  34. package/templates/bcl-content-banner/content-banner.html.twig +30 -42
  35. package/templates/bcl-date-block/date-block.html.twig +29 -9
  36. package/templates/bcl-footer/footer.html.twig +3 -1
  37. package/templates/bcl-gallery/gallery.html.twig +203 -0
  38. package/templates/bcl-listing/listing.html.twig +1 -1
  39. package/templates/bcl-pagination/pagination.html.twig +123 -9
  40. package/templates/bcl-person/person.html.twig +44 -0
  41. package/templates/bcl-select/select.html.twig +10 -3
@@ -7705,6 +7705,10 @@ svg {
7705
7705
  max-width: 7.5rem !important;
7706
7706
  }
7707
7707
 
7708
+ .mw-col-date {
7709
+ max-width: calc(7.5rem + var(--bs-gutter-x)) !important;
7710
+ }
7711
+
7708
7712
  .mw-listing-img {
7709
7713
  max-width: 10rem !important;
7710
7714
  }
@@ -17387,10 +17391,18 @@ select.multi-select {
17387
17391
  border: none;
17388
17392
  -webkit-transform: none;
17389
17393
  transform: none;
17394
+ box-shadow: none;
17390
17395
  }
17391
17396
  .bcl-offcanvas .offcanvas-body {
17392
17397
  overflow: visible;
17393
17398
  }
17399
+ .bcl-offcanvas .offcanvas-title {
17400
+ height: 38px;
17401
+ display: -ms-flexbox;
17402
+ display: flex;
17403
+ -ms-flex-align: center;
17404
+ align-items: center;
17405
+ }
17394
17406
 
17395
17407
  .bcl-offcanvas + .offcanvas-backdrop {
17396
17408
  display: none;
@@ -17668,4 +17680,336 @@ select.multi-select {
17668
17680
  border-radius: 0;
17669
17681
  border-color: transparent;
17670
17682
  }
17683
+
17684
+ .carousel-indicators {
17685
+ background-color: rgba(0, 0, 0, 0.5);
17686
+ margin: 0;
17687
+ }
17688
+ .carousel-indicators [data-bs-target] {
17689
+ width: 8px;
17690
+ height: 8px;
17691
+ margin: 0.375rem 0.5rem 1rem;
17692
+ border-radius: 50%;
17693
+ }
17694
+
17695
+ .carousel-caption {
17696
+ width: 100%;
17697
+ left: 0;
17698
+ right: 0;
17699
+ background-color: rgba(0, 0, 0, 0.5);
17700
+ bottom: 0;
17701
+ padding: 1rem 0 1.5rem;
17702
+ }
17703
+ .carousel-caption p {
17704
+ margin-bottom: 0;
17705
+ }
17706
+ .carousel-caption a {
17707
+ color: #fff;
17708
+ -webkit-text-decoration-color: #fff;
17709
+ text-decoration-color: #fff;
17710
+ }
17711
+
17712
+ .carousel-dark .carousel-caption {
17713
+ background-color: rgba(255, 255, 255, 0.5);
17714
+ }
17715
+ .carousel-dark .carousel-caption a {
17716
+ color: #000;
17717
+ -webkit-text-decoration-color: #000;
17718
+ text-decoration-color: #000;
17719
+ }
17720
+ .carousel-dark .carousel-indicators {
17721
+ background-color: rgba(255, 255, 255, 0.5);
17722
+ }
17723
+
17724
+ .carousel-control-next,
17725
+ .carousel-control-prev {
17726
+ opacity: 1;
17727
+ }
17728
+ .carousel-control-next:hover,
17729
+ .carousel-control-prev:hover {
17730
+ opacity: 1;
17731
+ }
17732
+
17733
+ .carousel-control-prev-icon,
17734
+ .carousel-control-next-icon {
17735
+ width: 40px;
17736
+ height: 40px;
17737
+ background-size: 60% 60%;
17738
+ background-color: rgba(0, 0, 0, 0.5);
17739
+ border-radius: 4px;
17740
+ }
17741
+
17742
+ .carousel-control-next-icon {
17743
+ background-position: 9px center;
17744
+ }
17745
+
17746
+ .carousel-control-prev-icon {
17747
+ background-position: 7px center;
17748
+ }
17749
+
17750
+ .carousel.rounded-indicators .carousel-control-prev-icon,
17751
+ .carousel.rounded-indicators .carousel-control-next-icon {
17752
+ border-radius: 50%;
17753
+ }
17754
+
17755
+ @media (min-width: 768px) {
17756
+ .carousel-indicators + .carousel-inner .carousel-caption {
17757
+ bottom: 50px;
17758
+ padding-bottom: 0;
17759
+ }
17760
+ }
17761
+ .bcl-gallery {
17762
+ /* lazyload */
17763
+ }
17764
+ .bcl-gallery .bcl-gallery__thumbnails {
17765
+ border-radius: 0.25rem;
17766
+ overflow: hidden;
17767
+ }
17768
+ .bcl-gallery ul.bcl-gallery__grid {
17769
+ list-style: none;
17770
+ padding: 0;
17771
+ margin-bottom: 0;
17772
+ }
17773
+ .bcl-gallery .bcl-gallery__item {
17774
+ position: relative;
17775
+ }
17776
+ .bcl-gallery .bcl-gallery__item-overlay {
17777
+ display: -ms-flexbox;
17778
+ display: flex;
17779
+ -ms-flex-direction: column;
17780
+ flex-direction: column;
17781
+ -ms-flex-pack: center;
17782
+ justify-content: center;
17783
+ -ms-flex-align: center;
17784
+ align-items: center;
17785
+ position: absolute;
17786
+ top: 0;
17787
+ left: 0;
17788
+ width: 100%;
17789
+ height: 100%;
17790
+ padding: 0 1rem;
17791
+ transition: background-color 0.2s ease;
17792
+ }
17793
+ .bcl-gallery .bcl-gallery__item-play-icon {
17794
+ background-color: rgba(0, 0, 0, 0.5);
17795
+ display: -ms-flexbox;
17796
+ display: flex;
17797
+ -ms-flex-pack: center;
17798
+ justify-content: center;
17799
+ -ms-flex-align: center;
17800
+ align-items: center;
17801
+ width: 32px;
17802
+ height: 32px;
17803
+ border-radius: 0.25rem;
17804
+ pointer-events: none;
17805
+ }
17806
+ .bcl-gallery .bcl-gallery__item-play-icon .bi {
17807
+ fill: #fff;
17808
+ }
17809
+ .bcl-gallery .bcl-gallery__item-caption {
17810
+ display: none;
17811
+ color: #fff;
17812
+ text-align: center;
17813
+ pointer-events: none;
17814
+ }
17815
+ .bcl-gallery .bcl-gallery__item-caption h5, .bcl-gallery .bcl-gallery__item-caption .h5 {
17816
+ margin-bottom: 0;
17817
+ }
17818
+ .bcl-gallery .bcl-gallery__item-description {
17819
+ display: none;
17820
+ margin-top: 0.25rem;
17821
+ }
17822
+ .bcl-gallery ul.bcl-gallery__grid li:not(:last-child) {
17823
+ margin-bottom: 0.5rem;
17824
+ }
17825
+ .bcl-gallery .bcl-gallery__thumbnails-collaspe ul.bcl-gallery__grid {
17826
+ margin-top: 0.5rem;
17827
+ }
17828
+ .bcl-gallery .bcl-gallery__collapse[aria-expanded=false] .label-expanded {
17829
+ display: none;
17830
+ }
17831
+ .bcl-gallery .bcl-gallery__collapse[aria-expanded=true] .label-collapsed {
17832
+ display: none;
17833
+ }
17834
+ .bcl-gallery .bcl-gallery__collapse[aria-expanded=true] svg {
17835
+ -webkit-transform: rotate(180deg);
17836
+ transform: rotate(180deg);
17837
+ }
17838
+ .bcl-gallery .carousel {
17839
+ height: 100%;
17840
+ width: 100%;
17841
+ max-height: 500px;
17842
+ }
17843
+ .bcl-gallery .carousel-inner {
17844
+ height: 100%;
17845
+ }
17846
+ .bcl-gallery .carousel-item {
17847
+ position: relative;
17848
+ height: 100%;
17849
+ text-align: center;
17850
+ z-index: 1;
17851
+ }
17852
+ .bcl-gallery .modal-content {
17853
+ background: black;
17854
+ -ms-flex-pack: center;
17855
+ justify-content: center;
17856
+ }
17857
+ .bcl-gallery .modal-title {
17858
+ width: 35%;
17859
+ color: white;
17860
+ }
17861
+ .bcl-gallery .carousel-pager {
17862
+ display: -ms-flexbox;
17863
+ display: flex;
17864
+ -ms-flex-pack: center;
17865
+ justify-content: center;
17866
+ color: white;
17867
+ width: 30%;
17868
+ }
17869
+ .bcl-gallery .carousel-pager span {
17870
+ display: inline-block;
17871
+ margin-right: 5px;
17872
+ }
17873
+ .bcl-gallery .modal-close {
17874
+ display: -ms-flexbox;
17875
+ display: flex;
17876
+ -ms-flex-pack: end;
17877
+ justify-content: end;
17878
+ width: 35%;
17879
+ }
17880
+ .bcl-gallery .modal-close .btn-close {
17881
+ -webkit-filter: invert(100%);
17882
+ filter: invert(100%);
17883
+ opacity: 1;
17884
+ }
17885
+ .bcl-gallery .carousel-control-next,
17886
+ .bcl-gallery .carousel-control-prev {
17887
+ top: 50%;
17888
+ height: 20%;
17889
+ -webkit-transform: translateY(-50%);
17890
+ transform: translateY(-50%);
17891
+ }
17892
+ .bcl-gallery iframe,
17893
+ .bcl-gallery video {
17894
+ width: 100%;
17895
+ height: 100%;
17896
+ aspect-ratio: 16/9;
17897
+ max-width: 900px;
17898
+ -o-object-fit: contain;
17899
+ object-fit: contain;
17900
+ }
17901
+ .bcl-gallery img {
17902
+ display: inline-block;
17903
+ height: 100%;
17904
+ width: 100%;
17905
+ -o-object-fit: contain;
17906
+ object-fit: contain;
17907
+ }
17908
+ .bcl-gallery img:not([src]):not([srcset]) {
17909
+ visibility: hidden;
17910
+ }
17911
+ @-webkit-keyframes lazy_spinner {
17912
+ to {
17913
+ -webkit-transform: rotate(360deg);
17914
+ transform: rotate(360deg);
17915
+ }
17916
+ }
17917
+ @keyframes lazy_spinner {
17918
+ to {
17919
+ -webkit-transform: rotate(360deg);
17920
+ transform: rotate(360deg);
17921
+ }
17922
+ }
17923
+ .bcl-gallery .carousel-item:after {
17924
+ content: "";
17925
+ box-sizing: border-box;
17926
+ position: absolute;
17927
+ top: 50%;
17928
+ left: 50%;
17929
+ width: 20px;
17930
+ height: 20px;
17931
+ margin-top: -10px;
17932
+ margin-left: -10px;
17933
+ border-radius: 50%;
17934
+ border: 2px solid #ccc;
17935
+ border-top-color: #000;
17936
+ -webkit-animation: lazy_spinner 0.6s linear infinite;
17937
+ animation: lazy_spinner 0.6s linear infinite;
17938
+ z-index: -1;
17939
+ }
17940
+ @media (min-width: 576px) {
17941
+ .bcl-gallery ul.bcl-gallery__grid {
17942
+ display: -ms-grid;
17943
+ display: grid;
17944
+ -ms-grid-rows: 1fr 1fr 0;
17945
+ grid-template-rows: 1fr 1fr 0;
17946
+ grid-gap: 0.5rem;
17947
+ -ms-grid-columns: (1fr)[4];
17948
+ grid-template-columns: repeat(4, 1fr);
17949
+ margin-bottom: -0.5rem;
17950
+ }
17951
+ .bcl-gallery ul.bcl-gallery__grid li:not(:last-child) {
17952
+ margin-bottom: 0;
17953
+ }
17954
+ .bcl-gallery ul.bcl-gallery__grid li:first-child {
17955
+ -ms-grid-column: 1;
17956
+ -ms-grid-column-span: 2;
17957
+ grid-column: 1/3;
17958
+ -ms-grid-row: 1;
17959
+ -ms-grid-row-span: 2;
17960
+ grid-row: 1/3;
17961
+ }
17962
+ .bcl-gallery .bcl-gallery__thumbnails-collaspe ul.bcl-gallery__grid {
17963
+ margin-top: 0.5rem;
17964
+ }
17965
+ .bcl-gallery .bcl-gallery__thumbnails-collaspe ul.bcl-gallery__grid:nth-child(odd) li:first-child {
17966
+ grid-column: auto;
17967
+ grid-row: auto;
17968
+ }
17969
+ .bcl-gallery .bcl-gallery__thumbnails-collaspe ul.bcl-gallery__grid:nth-child(odd) li:last-child {
17970
+ -ms-grid-column: 3;
17971
+ -ms-grid-column-span: 2;
17972
+ grid-column: 3/5;
17973
+ -ms-grid-row: 1;
17974
+ -ms-grid-row-span: 2;
17975
+ grid-row: 1/3;
17976
+ }
17977
+ .bcl-gallery .bcl-gallery__item:hover .bcl-gallery__item-overlay {
17978
+ background-color: rgba(0, 0, 0, 0.5);
17979
+ }
17980
+ .bcl-gallery .bcl-gallery__item:hover .bcl-gallery__item-play-icon {
17981
+ background-color: #fff;
17982
+ }
17983
+ .bcl-gallery .bcl-gallery__item:hover .bcl-gallery__item-play-icon .bi {
17984
+ fill: #000;
17985
+ }
17986
+ .bcl-gallery .modal-title,
17987
+ .bcl-gallery .modal-close {
17988
+ width: 45%;
17989
+ }
17990
+ .bcl-gallery .carousel-pager {
17991
+ width: 10%;
17992
+ }
17993
+ }
17994
+ @media (min-width: 768px) {
17995
+ .bcl-gallery .bcl-gallery__item:hover .bcl-gallery__item-caption {
17996
+ display: block;
17997
+ }
17998
+ .bcl-gallery .bcl-gallery__item:hover .bcl-gallery__item-play-icon + .bcl-gallery__item-caption {
17999
+ margin-top: 0.5rem;
18000
+ }
18001
+ }
18002
+ @media (min-width: 992px) {
18003
+ .bcl-gallery .bcl-gallery__item-description {
18004
+ display: block;
18005
+ }
18006
+ }
18007
+
18008
+ .pagination .page-link {
18009
+ display: -ms-flexbox;
18010
+ display: flex;
18011
+ height: 100%;
18012
+ -ms-flex-align: center;
18013
+ align-items: center;
18014
+ }
17671
18015
  /*# sourceMappingURL=oe-bcl-default.css.map */