@oiz/stzh-components 4.1.0 → 4.1.1-beta
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/dist/.build/test/utils.js +8 -3
- package/dist/.build/test/utils.js.map +1 -1
- package/dist/cjs/{app-globals-b0a11ad2.js → app-globals-07208237.js} +2 -2
- package/dist/cjs/{app-globals-b0a11ad2.js.map → app-globals-07208237.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-accordion_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-anchornav.cjs.entry.js +1 -1
- package/dist/cjs/stzh-anchornav.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
- package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
- package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-bathstatus-list.cjs.entry.js +1 -1
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-breadcrumb_2.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card-navigation.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-searchresult.cjs.entry.js +1 -1
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js +2 -2
- package/dist/cjs/stzh-card-superteaser.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-card.cjs.entry.js +1 -1
- package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
- package/dist/cjs/stzh-checkbox_3.cjs.entry.js +2 -2
- package/dist/cjs/stzh-checkbox_3.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-contact-cv.cjs.entry.js +1 -1
- package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
- package/dist/cjs/stzh-cta.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-daterange.cjs.entry.js +1 -1
- package/dist/cjs/stzh-details.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js +1 -1
- package/dist/cjs/stzh-disturber.cjs.entry.js +1 -1
- package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/stzh-eventinfo.cjs.entry.js +1 -1
- package/dist/cjs/stzh-feedreader-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-feedreader.cjs.entry.js +1 -1
- package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
- package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
- package/dist/cjs/stzh-ghettobox_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
- package/dist/cjs/stzh-heading.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js +17 -8
- package/dist/cjs/stzh-homepage-service-highlights.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-input.cjs.entry.js +1 -1
- package/dist/cjs/stzh-link.cjs.entry.js +1 -1
- package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagecontent.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js +22 -12
- package/dist/cjs/stzh-pagetitle-home.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-content-navigation.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-pagetitle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-pi-teaser.cjs.entry.js +1 -1
- package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
- package/dist/cjs/stzh-print_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
- package/dist/cjs/stzh-scrollup.cjs.entry.js +1 -1
- package/dist/cjs/stzh-search.cjs.entry.js +1 -1
- package/dist/cjs/stzh-section.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js +1 -1
- package/dist/cjs/stzh-skin-portal-mitwirken.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-socialmediastream.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky-actions.cjs.entry.js +1 -1
- package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
- package/dist/cjs/stzh-table.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js +1 -1
- package/dist/cjs/stzh-text.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
- package/dist/cjs/stzh-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toast_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/stzh-twocolumns.cjs.entry.js +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-intro.cjs.entry.js +1 -1
- package/dist/cjs/stzh-vbz-intro.cjs.entry.js.map +1 -1
- package/dist/cjs/{utils-5a53d7eb.js → utils-c0aaa7ec.js} +6 -53
- package/dist/cjs/utils-c0aaa7ec.js.map +1 -0
- package/dist/collection/components/CMS/VBZ/stzh-vbz-intro/stzh-vbz-intro.css +4 -4
- package/dist/collection/components/CMS/stzh-card-superteaser/stzh-card-superteaser.css +13 -5
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.css +17 -9
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js +20 -7
- package/dist/collection/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.js.map +1 -1
- package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.e2e.js +1 -1
- package/dist/collection/components/CMS/stzh-page-skiplinks/stzh-page-skiplinks.e2e.js.map +1 -1
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.css +4 -4
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.js +21 -11
- package/dist/collection/components/CMS/stzh-pagetitle-home/stzh-pagetitle-home.js.map +1 -1
- package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +6 -2
- package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +8 -1
- package/dist/collection/components/stzh-breadcrumb/stzh-breadcrumb.css +1 -1
- package/dist/collection/components/stzh-header/stzh-header.css +16 -9
- package/dist/collection/components/stzh-heading/stzh-heading.css +33 -0
- package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css +181 -77
- package/dist/collection/components/stzh-text/stzh-text.css +33 -0
- package/dist/collection/pages/CMS/PKZH/pkzh.e2e.js +18 -0
- package/dist/collection/pages/CMS/PKZH/pkzh.e2e.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -52
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-bf205f26.js → p-167acbe1.js} +5 -5
- package/dist/components/{p-bf205f26.js.map → p-167acbe1.js.map} +1 -1
- package/dist/components/{p-f0a46fac.js → p-1b9eaa71.js} +5 -5
- package/dist/components/{p-f0a46fac.js.map → p-1b9eaa71.js.map} +1 -1
- package/dist/components/{p-d1f98854.js → p-1c261255.js} +6 -54
- package/dist/components/p-1c261255.js.map +1 -0
- package/dist/components/{p-eb282891.js → p-1fa6272f.js} +2 -2
- package/dist/components/{p-eb282891.js.map → p-1fa6272f.js.map} +1 -1
- package/dist/components/{p-483a5750.js → p-250a1491.js} +2 -2
- package/dist/components/{p-483a5750.js.map → p-250a1491.js.map} +1 -1
- package/dist/components/{p-1d1ed4be.js → p-2d6ea1ff.js} +2 -2
- package/dist/components/{p-1d1ed4be.js.map → p-2d6ea1ff.js.map} +1 -1
- package/dist/components/{p-1a89c45a.js → p-2e72ad15.js} +5 -5
- package/dist/components/{p-1a89c45a.js.map → p-2e72ad15.js.map} +1 -1
- package/dist/components/{p-00414366.js → p-32847b38.js} +2 -2
- package/dist/components/{p-00414366.js.map → p-32847b38.js.map} +1 -1
- package/dist/components/{p-d0b793f2.js → p-3a5a5b65.js} +3 -3
- package/dist/components/{p-d0b793f2.js.map → p-3a5a5b65.js.map} +1 -1
- package/dist/components/{p-1cb87437.js → p-3bb470ce.js} +2 -2
- package/dist/components/{p-1cb87437.js.map → p-3bb470ce.js.map} +1 -1
- package/dist/components/{p-24ec14c6.js → p-3dffb214.js} +2 -2
- package/dist/components/{p-24ec14c6.js.map → p-3dffb214.js.map} +1 -1
- package/dist/components/{p-0d9775f9.js → p-411f8f60.js} +4 -4
- package/dist/components/{p-0d9775f9.js.map → p-411f8f60.js.map} +1 -1
- package/dist/components/{p-fb0977f0.js → p-4640fde3.js} +4 -4
- package/dist/components/{p-fb0977f0.js.map → p-4640fde3.js.map} +1 -1
- package/dist/components/{p-a6a7fe17.js → p-5959959c.js} +5 -5
- package/dist/components/{p-a6a7fe17.js.map → p-5959959c.js.map} +1 -1
- package/dist/components/{p-c28490de.js → p-5a4e00c6.js} +8 -8
- package/dist/components/p-5a4e00c6.js.map +1 -0
- package/dist/components/{p-5e0a644a.js → p-66c944a4.js} +4 -4
- package/dist/components/{p-5e0a644a.js.map → p-66c944a4.js.map} +1 -1
- package/dist/components/{p-630a1165.js → p-71b15229.js} +3 -3
- package/dist/components/{p-630a1165.js.map → p-71b15229.js.map} +1 -1
- package/dist/components/{p-d8730e10.js → p-71f94b81.js} +2 -2
- package/dist/components/{p-d8730e10.js.map → p-71f94b81.js.map} +1 -1
- package/dist/components/{p-c522aec2.js → p-8063d484.js} +2 -2
- package/dist/components/{p-c522aec2.js.map → p-8063d484.js.map} +1 -1
- package/dist/components/{p-71668a26.js → p-839b43f8.js} +2 -2
- package/dist/components/{p-71668a26.js.map → p-839b43f8.js.map} +1 -1
- package/dist/components/{p-9562b4bd.js → p-978cf208.js} +2 -2
- package/dist/components/{p-9562b4bd.js.map → p-978cf208.js.map} +1 -1
- package/dist/components/{p-4c350868.js → p-a46dcfa3.js} +2 -2
- package/dist/components/{p-4c350868.js.map → p-a46dcfa3.js.map} +1 -1
- package/dist/components/{p-b3ca3adb.js → p-a8384df3.js} +2 -2
- package/dist/components/{p-b3ca3adb.js.map → p-a8384df3.js.map} +1 -1
- package/dist/components/{p-047a8cfd.js → p-b1b69ae9.js} +2 -2
- package/dist/components/p-b1b69ae9.js.map +1 -0
- package/dist/components/{p-e9868942.js → p-b1c378de.js} +6 -6
- package/dist/components/{p-e9868942.js.map → p-b1c378de.js.map} +1 -1
- package/dist/components/{p-bcc02189.js → p-b51c7e54.js} +2 -2
- package/dist/components/p-b51c7e54.js.map +1 -0
- package/dist/components/{p-f62b89ed.js → p-b9a4f7b2.js} +3 -3
- package/dist/components/{p-f62b89ed.js.map → p-b9a4f7b2.js.map} +1 -1
- package/dist/components/{p-57d566ab.js → p-b9b96873.js} +5 -5
- package/dist/components/{p-57d566ab.js.map → p-b9b96873.js.map} +1 -1
- package/dist/components/{p-292d0fcd.js → p-b9d5a920.js} +8 -8
- package/dist/components/{p-292d0fcd.js.map → p-b9d5a920.js.map} +1 -1
- package/dist/components/{p-3eb3db1e.js → p-ba74cae2.js} +4 -4
- package/dist/components/{p-3eb3db1e.js.map → p-ba74cae2.js.map} +1 -1
- package/dist/components/{p-234a6c0a.js → p-beefcccd.js} +6 -6
- package/dist/components/{p-234a6c0a.js.map → p-beefcccd.js.map} +1 -1
- package/dist/components/{p-af8a3a03.js → p-c087b441.js} +2 -2
- package/dist/components/{p-af8a3a03.js.map → p-c087b441.js.map} +1 -1
- package/dist/components/{p-5ff5bde3.js → p-c1795d8b.js} +5 -5
- package/dist/components/{p-5ff5bde3.js.map → p-c1795d8b.js.map} +1 -1
- package/dist/components/{p-dca85cea.js → p-c6e9ea56.js} +3 -3
- package/dist/components/p-c6e9ea56.js.map +1 -0
- package/dist/components/{p-8f5849c3.js → p-c8b9cba7.js} +8 -8
- package/dist/components/{p-8f5849c3.js.map → p-c8b9cba7.js.map} +1 -1
- package/dist/components/{p-f39503f3.js → p-cbee9daa.js} +2 -2
- package/dist/components/{p-f39503f3.js.map → p-cbee9daa.js.map} +1 -1
- package/dist/components/{p-05e1fb77.js → p-ccbd3cdf.js} +3 -3
- package/dist/components/{p-05e1fb77.js.map → p-ccbd3cdf.js.map} +1 -1
- package/dist/components/{p-d5254d48.js → p-d1badd5b.js} +2 -2
- package/dist/components/{p-d5254d48.js.map → p-d1badd5b.js.map} +1 -1
- package/dist/components/{p-7de53368.js → p-d99aa7e6.js} +6 -6
- package/dist/components/{p-7de53368.js.map → p-d99aa7e6.js.map} +1 -1
- package/dist/components/{p-93c4bf04.js → p-e4568321.js} +3 -3
- package/dist/components/{p-93c4bf04.js.map → p-e4568321.js.map} +1 -1
- package/dist/components/{p-d2858a06.js → p-e973d4dc.js} +2 -2
- package/dist/components/{p-d2858a06.js.map → p-e973d4dc.js.map} +1 -1
- package/dist/components/{p-cd56033a.js → p-ea55bd3b.js} +2 -2
- package/dist/components/{p-cd56033a.js.map → p-ea55bd3b.js.map} +1 -1
- package/dist/components/{p-e9c5a9aa.js → p-ee40eddf.js} +2 -2
- package/dist/components/{p-e9c5a9aa.js.map → p-ee40eddf.js.map} +1 -1
- package/dist/components/{p-4480cb87.js → p-ee851c65.js} +3 -3
- package/dist/components/{p-4480cb87.js.map → p-ee851c65.js.map} +1 -1
- package/dist/components/{p-cc02c4c8.js → p-fd043b82.js} +4 -4
- package/dist/components/{p-cc02c4c8.js.map → p-fd043b82.js.map} +1 -1
- package/dist/components/stzh-accordion-item.js +1 -1
- package/dist/components/stzh-accordion.js +1 -1
- package/dist/components/stzh-actions.js +1 -1
- package/dist/components/stzh-actionset.js +1 -1
- package/dist/components/stzh-amount.js +5 -5
- package/dist/components/stzh-anchornav.js +3 -3
- package/dist/components/stzh-anchornav.js.map +1 -1
- package/dist/components/stzh-app-nav.js +1 -1
- package/dist/components/stzh-appointments.js +11 -11
- package/dist/components/stzh-archivelist.js +4 -4
- package/dist/components/stzh-audio.js +3 -3
- package/dist/components/stzh-banner.js +1 -1
- package/dist/components/stzh-bathstatus-item.js +1 -1
- package/dist/components/stzh-bathstatus-list.js +3 -3
- package/dist/components/stzh-breadcrumb.js +1 -1
- package/dist/components/stzh-button.js +1 -1
- package/dist/components/stzh-calendar.js +1 -1
- package/dist/components/stzh-card-navigation.js +1 -1
- package/dist/components/stzh-card-searchresult.js +10 -10
- package/dist/components/stzh-card-superteaser.js +11 -11
- package/dist/components/stzh-card-superteaser.js.map +1 -1
- package/dist/components/stzh-card.js +1 -1
- package/dist/components/stzh-cardlist.js +1 -1
- package/dist/components/stzh-carousel.js +1 -1
- package/dist/components/stzh-checkbox.js +1 -1
- package/dist/components/stzh-checkboxgroup.js +3 -3
- package/dist/components/stzh-chip.js +1 -1
- package/dist/components/stzh-chipselect.js +1 -1
- package/dist/components/stzh-clamp.js +1 -1
- package/dist/components/stzh-contact-cv.js +2 -2
- package/dist/components/stzh-contact.js +3 -3
- package/dist/components/stzh-cspace.js +1 -1
- package/dist/components/stzh-cta.js +2 -2
- package/dist/components/stzh-datalist-item.js +1 -1
- package/dist/components/stzh-datalist.js +1 -1
- package/dist/components/stzh-datamessagelist-item.js +6 -6
- package/dist/components/stzh-datatable.js +13 -13
- package/dist/components/stzh-datepicker.js +1 -1
- package/dist/components/stzh-daterange.js +2 -2
- package/dist/components/stzh-details.js +1 -1
- package/dist/components/stzh-dialog.js +1 -1
- package/dist/components/stzh-disturber.js +2 -2
- package/dist/components/stzh-dropdown.js +1 -1
- package/dist/components/stzh-editor.js +1 -1
- package/dist/components/stzh-eventinfo.js +3 -3
- package/dist/components/stzh-feedreader-item.js +1 -1
- package/dist/components/stzh-feedreader.js +6 -6
- package/dist/components/stzh-fieldset.js +1 -1
- package/dist/components/stzh-figure.js +1 -1
- package/dist/components/stzh-footer.js +2 -2
- package/dist/components/stzh-gallery.js +3 -3
- package/dist/components/stzh-geo-ref-data.js +15 -15
- package/dist/components/stzh-ghettobox.js +1 -1
- package/dist/components/stzh-header.js +1 -1
- package/dist/components/stzh-heading.js +1 -1
- package/dist/components/stzh-homepage-service-highlights.js +21 -12
- package/dist/components/stzh-homepage-service-highlights.js.map +1 -1
- package/dist/components/stzh-http-error.js +3 -3
- package/dist/components/stzh-iframe.js +1 -1
- package/dist/components/stzh-input.js +1 -1
- package/dist/components/stzh-link.js +1 -1
- package/dist/components/stzh-menu-item.js +1 -1
- package/dist/components/stzh-message.js +1 -1
- package/dist/components/stzh-microsite-teaserlist.js +12 -12
- package/dist/components/stzh-monthyearpicker.js +3 -3
- package/dist/components/stzh-offline-indicator.js +3 -3
- package/dist/components/stzh-pagebottom.js +5 -5
- package/dist/components/stzh-pagecontent.js +1 -1
- package/dist/components/stzh-pagetitle-hero.js +1 -1
- package/dist/components/stzh-pagetitle-home.js +22 -12
- package/dist/components/stzh-pagetitle-home.js.map +1 -1
- package/dist/components/stzh-pagetitle.js +1 -1
- package/dist/components/stzh-pagination.js +1 -1
- package/dist/components/stzh-panorama.js +7 -7
- package/dist/components/stzh-pi-content-navigation.js +1 -1
- package/dist/components/stzh-pi-pagetitle.js +1 -1
- package/dist/components/stzh-pi-teaser.js +1 -1
- package/dist/components/stzh-poicard.js +1 -1
- package/dist/components/stzh-poilist.js +11 -11
- package/dist/components/stzh-popover.js +1 -1
- package/dist/components/stzh-print.js +1 -1
- package/dist/components/stzh-radio.js +1 -1
- package/dist/components/stzh-radiogroup.js +1 -1
- package/dist/components/stzh-readspeaker.js +2 -2
- package/dist/components/stzh-saptcha.js +4 -4
- package/dist/components/stzh-scrollup.js +1 -1
- package/dist/components/stzh-search.js +12 -12
- package/dist/components/stzh-section.js +1 -1
- package/dist/components/stzh-share.js +1 -1
- package/dist/components/stzh-sitemap.js +5 -5
- package/dist/components/stzh-skin-portal-mitwirken.js +1 -1
- package/dist/components/stzh-skin-portal-mitwirken.js.map +1 -1
- package/dist/components/stzh-socialmediastream-item.js +1 -1
- package/dist/components/stzh-socialmediastream.js +4 -4
- package/dist/components/stzh-sticky-actions.js +2 -2
- package/dist/components/stzh-sticky.js +1 -1
- package/dist/components/stzh-table.js +1 -1
- package/dist/components/stzh-tag.js +1 -1
- package/dist/components/stzh-text.js +1 -1
- package/dist/components/stzh-textandimage.js +1 -1
- package/dist/components/stzh-timeline-item.js +1 -1
- package/dist/components/stzh-timepicker.js +3 -3
- package/dist/components/stzh-toast.js +1 -1
- package/dist/components/stzh-toastbar.js +1 -1
- package/dist/components/stzh-toggle.js +3 -3
- package/dist/components/stzh-tooltip.js +1 -1
- package/dist/components/stzh-twocolumns.js +1 -1
- package/dist/components/stzh-upload.js +10 -10
- package/dist/components/stzh-vbz-carousel.js +1 -1
- package/dist/components/stzh-vbz-intro.js +3 -3
- package/dist/components/stzh-vbz-intro.js.map +1 -1
- package/dist/components/stzh-vbz-majorticker.js +3 -3
- package/dist/components/stzh-vbz-ticker.js +3 -3
- package/dist/components/stzh-youtube.js +2 -2
- package/dist/esm/{app-globals-dc4e2dd7.js → app-globals-993885c2.js} +2 -2
- package/dist/esm/{app-globals-dc4e2dd7.js.map → app-globals-993885c2.js.map} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-accordion_3.entry.js +2 -2
- package/dist/esm/stzh-accordion_3.entry.js.map +1 -1
- package/dist/esm/stzh-actions.entry.js +1 -1
- package/dist/esm/stzh-anchornav.entry.js +1 -1
- package/dist/esm/stzh-anchornav.entry.js.map +1 -1
- package/dist/esm/stzh-appointments.entry.js +1 -1
- package/dist/esm/stzh-audio.entry.js +1 -1
- package/dist/esm/stzh-badge_3.entry.js +1 -1
- package/dist/esm/stzh-bathstatus-list.entry.js +1 -1
- package/dist/esm/stzh-breadcrumb_2.entry.js +1 -1
- package/dist/esm/stzh-breadcrumb_2.entry.js.map +1 -1
- package/dist/esm/stzh-card-navigation.entry.js +1 -1
- package/dist/esm/stzh-card-searchresult.entry.js +1 -1
- package/dist/esm/stzh-card-superteaser.entry.js +2 -2
- package/dist/esm/stzh-card-superteaser.entry.js.map +1 -1
- package/dist/esm/stzh-card.entry.js +1 -1
- package/dist/esm/stzh-carousel.entry.js +1 -1
- package/dist/esm/stzh-checkbox_3.entry.js +2 -2
- package/dist/esm/stzh-checkbox_3.entry.js.map +1 -1
- package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-contact-cv.entry.js +1 -1
- package/dist/esm/stzh-contact.entry.js +1 -1
- package/dist/esm/stzh-cspace.entry.js +1 -1
- package/dist/esm/stzh-cta.entry.js +1 -1
- package/dist/esm/stzh-datalist_2.entry.js +1 -1
- package/dist/esm/stzh-datatable.entry.js +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-daterange.entry.js +1 -1
- package/dist/esm/stzh-details.entry.js +1 -1
- package/dist/esm/stzh-dialog.entry.js +1 -1
- package/dist/esm/stzh-disturber.entry.js +1 -1
- package/dist/esm/stzh-dropdown.entry.js +1 -1
- package/dist/esm/stzh-eventinfo.entry.js +1 -1
- package/dist/esm/stzh-feedreader-item.entry.js +1 -1
- package/dist/esm/stzh-feedreader.entry.js +1 -1
- package/dist/esm/stzh-figure.entry.js +1 -1
- package/dist/esm/stzh-footer.entry.js +1 -1
- package/dist/esm/stzh-ghettobox_3.entry.js +1 -1
- package/dist/esm/stzh-heading.entry.js +1 -1
- package/dist/esm/stzh-heading.entry.js.map +1 -1
- package/dist/esm/stzh-homepage-service-highlights.entry.js +17 -8
- package/dist/esm/stzh-homepage-service-highlights.entry.js.map +1 -1
- package/dist/esm/stzh-input.entry.js +1 -1
- package/dist/esm/stzh-link.entry.js +1 -1
- package/dist/esm/stzh-menu_2.entry.js +1 -1
- package/dist/esm/stzh-pagecontent.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
- package/dist/esm/stzh-pagetitle-home.entry.js +22 -12
- package/dist/esm/stzh-pagetitle-home.entry.js.map +1 -1
- package/dist/esm/stzh-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-pi-content-navigation.entry.js +1 -1
- package/dist/esm/stzh-pi-pagetitle.entry.js +1 -1
- package/dist/esm/stzh-pi-teaser.entry.js +1 -1
- package/dist/esm/stzh-popover.entry.js +1 -1
- package/dist/esm/stzh-print_2.entry.js +1 -1
- package/dist/esm/stzh-readspeaker.entry.js +1 -1
- package/dist/esm/stzh-scrollup.entry.js +1 -1
- package/dist/esm/stzh-search.entry.js +1 -1
- package/dist/esm/stzh-section.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js +1 -1
- package/dist/esm/stzh-skin-portal-mitwirken.entry.js.map +1 -1
- package/dist/esm/stzh-socialmediastream.entry.js +1 -1
- package/dist/esm/stzh-sticky-actions.entry.js +1 -1
- package/dist/esm/stzh-sticky.entry.js +1 -1
- package/dist/esm/stzh-table.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js +1 -1
- package/dist/esm/stzh-text.entry.js.map +1 -1
- package/dist/esm/stzh-textandimage.entry.js +1 -1
- package/dist/esm/stzh-timeline-item.entry.js +1 -1
- package/dist/esm/stzh-toast_2.entry.js +1 -1
- package/dist/esm/stzh-toggle.entry.js +1 -1
- package/dist/esm/stzh-tooltip.entry.js +1 -1
- package/dist/esm/stzh-twocolumns.entry.js +1 -1
- package/dist/esm/stzh-upload.entry.js +1 -1
- package/dist/esm/stzh-vbz-intro.entry.js +1 -1
- package/dist/esm/stzh-vbz-intro.entry.js.map +1 -1
- package/dist/esm/{utils-a756a0c9.js → utils-2ad42b77.js} +6 -54
- package/dist/esm/utils-2ad42b77.js.map +1 -0
- package/dist/stzh-components/{p-c804ddf2.entry.js → p-020bc473.entry.js} +2 -2
- package/dist/stzh-components/p-06a4df88.entry.js +2 -0
- package/dist/stzh-components/{p-c32b673d.entry.js.map → p-06a4df88.entry.js.map} +1 -1
- package/dist/stzh-components/{p-24caf6c1.js → p-09b5eb01.js} +2 -2
- package/dist/stzh-components/p-09b5eb01.js.map +1 -0
- package/dist/stzh-components/p-0e4fb1f6.entry.js +2 -0
- package/dist/stzh-components/p-0e4fb1f6.entry.js.map +1 -0
- package/dist/stzh-components/{p-003bfdda.entry.js → p-10a74052.entry.js} +2 -2
- package/dist/stzh-components/{p-4840a0f7.entry.js → p-13a77a74.entry.js} +2 -2
- package/dist/stzh-components/{p-98c1b82e.entry.js → p-16e70122.entry.js} +2 -2
- package/dist/stzh-components/{p-1ca34f18.entry.js → p-1f2a3ae6.entry.js} +2 -2
- package/dist/stzh-components/p-221194a4.js +2 -0
- package/dist/stzh-components/{p-19d6b43e.js.map → p-221194a4.js.map} +1 -1
- package/dist/stzh-components/{p-d4d8e3b8.entry.js → p-23aa2f5e.entry.js} +2 -2
- package/dist/stzh-components/{p-1f741338.entry.js → p-26aee6b2.entry.js} +2 -2
- package/dist/stzh-components/p-26aee6b2.entry.js.map +1 -0
- package/dist/stzh-components/p-2b59864c.entry.js +2 -0
- package/dist/stzh-components/p-2b59864c.entry.js.map +1 -0
- package/dist/stzh-components/{p-8485a36a.entry.js → p-2d453802.entry.js} +2 -2
- package/dist/stzh-components/{p-20b8f661.entry.js → p-3221e8e5.entry.js} +2 -2
- package/dist/stzh-components/{p-645f4d03.entry.js → p-34c56740.entry.js} +2 -2
- package/dist/stzh-components/{p-0d166cca.entry.js → p-3ef0956b.entry.js} +2 -2
- package/dist/stzh-components/{p-21a029ec.entry.js → p-41778942.entry.js} +2 -2
- package/dist/stzh-components/{p-d9dd1c3e.entry.js → p-429af819.entry.js} +2 -2
- package/dist/stzh-components/{p-caa73f07.entry.js → p-44018d4b.entry.js} +2 -2
- package/dist/stzh-components/{p-aa045255.entry.js → p-47e10f01.entry.js} +2 -2
- package/dist/stzh-components/p-47e10f01.entry.js.map +1 -0
- package/dist/stzh-components/{p-f9a412d8.entry.js → p-50e8431f.entry.js} +2 -2
- package/dist/stzh-components/{p-970c4474.entry.js → p-5178ea62.entry.js} +2 -2
- package/dist/stzh-components/{p-7f1b1ac4.entry.js → p-5939a40a.entry.js} +2 -2
- package/dist/stzh-components/{p-7f1b1ac4.entry.js.map → p-5939a40a.entry.js.map} +1 -1
- package/dist/stzh-components/{p-e45134ff.entry.js → p-59984acf.entry.js} +2 -2
- package/dist/stzh-components/{p-66fc9e64.entry.js → p-5b715075.entry.js} +2 -2
- package/dist/stzh-components/{p-a9ae4450.entry.js → p-5c6ec1b8.entry.js} +2 -2
- package/dist/stzh-components/p-5dc20152.entry.js +2 -0
- package/dist/stzh-components/p-5dc20152.entry.js.map +1 -0
- package/dist/stzh-components/{p-4c24fe27.entry.js → p-7a3be0f1.entry.js} +2 -2
- package/dist/stzh-components/{p-a1202b5f.entry.js → p-82c0d7be.entry.js} +2 -2
- package/dist/stzh-components/{p-dd5d4c39.entry.js → p-8516eea3.entry.js} +2 -2
- package/dist/stzh-components/{p-e945b00e.entry.js → p-8a0e7cdd.entry.js} +2 -2
- package/dist/stzh-components/{p-27fe663d.entry.js → p-94764282.entry.js} +2 -2
- package/dist/stzh-components/{p-ad754693.entry.js → p-95a0a398.entry.js} +2 -2
- package/dist/stzh-components/{p-111800e9.entry.js → p-9a776f85.entry.js} +2 -2
- package/dist/stzh-components/{p-70707b8e.entry.js → p-a28b5894.entry.js} +2 -2
- package/dist/stzh-components/{p-61be006b.entry.js → p-a5709e94.entry.js} +2 -2
- package/dist/stzh-components/{p-61be006b.entry.js.map → p-a5709e94.entry.js.map} +1 -1
- package/dist/stzh-components/{p-0bfc528d.entry.js → p-a5d557ac.entry.js} +2 -2
- package/dist/stzh-components/{p-1ce029b5.entry.js → p-a61538b1.entry.js} +2 -2
- package/dist/stzh-components/{p-adde0fce.entry.js → p-ac14e15c.entry.js} +2 -2
- package/dist/stzh-components/p-ae029763.entry.js +2 -0
- package/dist/stzh-components/p-ae029763.entry.js.map +1 -0
- package/dist/stzh-components/{p-fecffdfc.entry.js → p-b6ea1a1c.entry.js} +2 -2
- package/dist/stzh-components/{p-8adab188.entry.js → p-b7363fe1.entry.js} +2 -2
- package/dist/stzh-components/{p-aafeeae9.entry.js → p-ba551ad7.entry.js} +2 -2
- package/dist/stzh-components/{p-909e12d3.entry.js → p-bed50961.entry.js} +2 -2
- package/dist/stzh-components/{p-aefe968c.entry.js → p-c27e6b43.entry.js} +2 -2
- package/dist/stzh-components/{p-b26ca94e.entry.js → p-c80885e9.entry.js} +2 -2
- package/dist/stzh-components/{p-29fd8bc1.entry.js → p-cd5641a5.entry.js} +2 -2
- package/dist/stzh-components/{p-0460eba4.entry.js → p-cde3a344.entry.js} +2 -2
- package/dist/stzh-components/{p-77e044d8.entry.js → p-d5206c53.entry.js} +2 -2
- package/dist/stzh-components/{p-fb22b090.entry.js → p-da489363.entry.js} +2 -2
- package/dist/stzh-components/p-db4fddd7.entry.js +2 -0
- package/dist/stzh-components/p-db4fddd7.entry.js.map +1 -0
- package/dist/stzh-components/{p-52cbf6d6.entry.js → p-dbc45bd8.entry.js} +2 -2
- package/dist/stzh-components/{p-8421ff45.entry.js → p-dd9feb46.entry.js} +2 -2
- package/dist/stzh-components/{p-2b35e2a8.entry.js → p-e2f24462.entry.js} +2 -2
- package/dist/stzh-components/{p-0d5b8b1e.entry.js → p-e63a6dce.entry.js} +2 -2
- package/dist/stzh-components/{p-cb5740f3.entry.js → p-eccdd8b7.entry.js} +2 -2
- package/dist/stzh-components/{p-37ada736.entry.js → p-ee83fbac.entry.js} +2 -2
- package/dist/stzh-components/{p-f4122c15.entry.js → p-ef2e8303.entry.js} +2 -2
- package/dist/stzh-components/{p-c7ef6356.entry.js → p-f109bce4.entry.js} +2 -2
- package/dist/stzh-components/{p-2944edb9.entry.js → p-f36a7102.entry.js} +2 -2
- package/dist/stzh-components/{p-60964d4f.entry.js → p-f4bd536b.entry.js} +2 -2
- package/dist/stzh-components/{p-34ce5dc9.entry.js → p-f53341ce.entry.js} +2 -2
- package/dist/stzh-components/{p-b61dd422.entry.js → p-f91f7483.entry.js} +2 -2
- package/dist/stzh-components/{p-828b7874.entry.js → p-f94a05c6.entry.js} +2 -2
- package/dist/stzh-components/{p-85d44b8a.entry.js → p-fabd85ee.entry.js} +2 -2
- package/dist/stzh-components/{p-8854272d.entry.js → p-fbde302d.entry.js} +2 -2
- package/dist/stzh-components/p-ffb0f6e6.entry.js +2 -0
- package/dist/stzh-components/p-ffb0f6e6.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.css +181 -77
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/CMS/stzh-homepage-service-highlights/stzh-homepage-service-highlights.d.ts +3 -1
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/utils-5a53d7eb.js.map +0 -1
- package/dist/components/p-047a8cfd.js.map +0 -1
- package/dist/components/p-bcc02189.js.map +0 -1
- package/dist/components/p-c28490de.js.map +0 -1
- package/dist/components/p-d1f98854.js.map +0 -1
- package/dist/components/p-dca85cea.js.map +0 -1
- package/dist/esm/utils-a756a0c9.js.map +0 -1
- package/dist/stzh-components/p-1784d8e9.entry.js +0 -2
- package/dist/stzh-components/p-1784d8e9.entry.js.map +0 -1
- package/dist/stzh-components/p-19d6b43e.js +0 -2
- package/dist/stzh-components/p-1f741338.entry.js.map +0 -1
- package/dist/stzh-components/p-24caf6c1.js.map +0 -1
- package/dist/stzh-components/p-7265a57d.entry.js +0 -2
- package/dist/stzh-components/p-7265a57d.entry.js.map +0 -1
- package/dist/stzh-components/p-aa045255.entry.js.map +0 -1
- package/dist/stzh-components/p-c32b673d.entry.js +0 -2
- package/dist/stzh-components/p-c568ad41.entry.js +0 -2
- package/dist/stzh-components/p-c568ad41.entry.js.map +0 -1
- package/dist/stzh-components/p-d40c54da.entry.js +0 -2
- package/dist/stzh-components/p-d40c54da.entry.js.map +0 -1
- package/dist/stzh-components/p-ea7f260b.entry.js +0 -2
- package/dist/stzh-components/p-ea7f260b.entry.js.map +0 -1
- package/dist/stzh-components/p-eb6e4974.entry.js +0 -2
- package/dist/stzh-components/p-eb6e4974.entry.js.map +0 -1
- /package/dist/stzh-components/{p-c804ddf2.entry.js.map → p-020bc473.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-003bfdda.entry.js.map → p-10a74052.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4840a0f7.entry.js.map → p-13a77a74.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-98c1b82e.entry.js.map → p-16e70122.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1ca34f18.entry.js.map → p-1f2a3ae6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d4d8e3b8.entry.js.map → p-23aa2f5e.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8485a36a.entry.js.map → p-2d453802.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-20b8f661.entry.js.map → p-3221e8e5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-645f4d03.entry.js.map → p-34c56740.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0d166cca.entry.js.map → p-3ef0956b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-21a029ec.entry.js.map → p-41778942.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-d9dd1c3e.entry.js.map → p-429af819.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-caa73f07.entry.js.map → p-44018d4b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f9a412d8.entry.js.map → p-50e8431f.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-970c4474.entry.js.map → p-5178ea62.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e45134ff.entry.js.map → p-59984acf.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-66fc9e64.entry.js.map → p-5b715075.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a9ae4450.entry.js.map → p-5c6ec1b8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-4c24fe27.entry.js.map → p-7a3be0f1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-a1202b5f.entry.js.map → p-82c0d7be.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-dd5d4c39.entry.js.map → p-8516eea3.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-e945b00e.entry.js.map → p-8a0e7cdd.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-27fe663d.entry.js.map → p-94764282.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-ad754693.entry.js.map → p-95a0a398.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-111800e9.entry.js.map → p-9a776f85.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-70707b8e.entry.js.map → p-a28b5894.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0bfc528d.entry.js.map → p-a5d557ac.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-1ce029b5.entry.js.map → p-a61538b1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-adde0fce.entry.js.map → p-ac14e15c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fecffdfc.entry.js.map → p-b6ea1a1c.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8adab188.entry.js.map → p-b7363fe1.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aafeeae9.entry.js.map → p-ba551ad7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-909e12d3.entry.js.map → p-bed50961.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-aefe968c.entry.js.map → p-c27e6b43.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b26ca94e.entry.js.map → p-c80885e9.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-29fd8bc1.entry.js.map → p-cd5641a5.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0460eba4.entry.js.map → p-cde3a344.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-77e044d8.entry.js.map → p-d5206c53.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-fb22b090.entry.js.map → p-da489363.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-52cbf6d6.entry.js.map → p-dbc45bd8.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8421ff45.entry.js.map → p-dd9feb46.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2b35e2a8.entry.js.map → p-e2f24462.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-0d5b8b1e.entry.js.map → p-e63a6dce.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-cb5740f3.entry.js.map → p-eccdd8b7.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-37ada736.entry.js.map → p-ee83fbac.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-f4122c15.entry.js.map → p-ef2e8303.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-c7ef6356.entry.js.map → p-f109bce4.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-2944edb9.entry.js.map → p-f36a7102.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-60964d4f.entry.js.map → p-f4bd536b.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-34ce5dc9.entry.js.map → p-f53341ce.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-b61dd422.entry.js.map → p-f91f7483.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-828b7874.entry.js.map → p-f94a05c6.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-85d44b8a.entry.js.map → p-fabd85ee.entry.js.map} +0 -0
- /package/dist/stzh-components/{p-8854272d.entry.js.map → p-fbde302d.entry.js.map} +0 -0
|
@@ -162,8 +162,12 @@
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* @prop --
|
|
165
|
+
* @prop --hover-color: Text color on hover.
|
|
166
166
|
*/
|
|
167
|
+
:host {
|
|
168
|
+
--hover-color: var(--stzh-anchornav-hover-color);
|
|
169
|
+
}
|
|
170
|
+
|
|
167
171
|
.stzh-anchornav {
|
|
168
172
|
margin-top: var(--stzh-space-large);
|
|
169
173
|
}
|
|
@@ -219,4 +223,7 @@
|
|
|
219
223
|
padding-left: var(--stzh-space-xxxlarge);
|
|
220
224
|
padding-right: var(--stzh-space-large);
|
|
221
225
|
}
|
|
226
|
+
}
|
|
227
|
+
.stzh-anchornav__item:hover {
|
|
228
|
+
color: var(--hover-color);
|
|
222
229
|
}
|
|
@@ -175,9 +175,16 @@
|
|
|
175
175
|
* @prop --stzh-header-is-not-stuck: **Global**: Whether head is currently not sticky (readonly variable on `<html>`)
|
|
176
176
|
*/
|
|
177
177
|
:host {
|
|
178
|
-
--logo-width: auto;
|
|
178
|
+
--logo-width: var(--stzh-header-logo-width, auto);
|
|
179
179
|
--logo-height: 100%;
|
|
180
180
|
--logobar-background-color: var(--stzh-header-logobar-background-color);
|
|
181
|
+
--metabar-background-color: var(--stzh-header-metabar-background-color, var(--stzh-color-coolgrey10));
|
|
182
|
+
--menu-background-color: var(--stzh-header-menu-background-color, var(--stzh-color-secondary30));
|
|
183
|
+
--menu-list-item-background-hover: var(--stzh-header-menu-list-item-background-hover, var(--stzh-color-secondary40));
|
|
184
|
+
--menu-list-item-background-level2: var(--stzh-header-menu-list-item-background-level2, var(--stzh-color-secondary20));
|
|
185
|
+
--menu-list-item-background-level2-hover: var(--stzh-header-menu-list-item-background-level2-hover, var(--stzh-color-secondary10));
|
|
186
|
+
--menu-item-color: var(--stzh-header-menu-item-color, var(--stzh-color-primary70));
|
|
187
|
+
--metanav-item-color: var(--stzh-header-metanav-item-color, var(--stzh-color-grey90));
|
|
181
188
|
}
|
|
182
189
|
@media print {
|
|
183
190
|
:host {
|
|
@@ -266,7 +273,7 @@
|
|
|
266
273
|
}
|
|
267
274
|
}
|
|
268
275
|
.stzh-header__metabar {
|
|
269
|
-
background-color: var(--
|
|
276
|
+
background-color: var(--metabar-background-color);
|
|
270
277
|
}
|
|
271
278
|
.stzh-header__metabar-inner {
|
|
272
279
|
margin-left: 1.25rem;
|
|
@@ -306,7 +313,7 @@
|
|
|
306
313
|
}
|
|
307
314
|
}
|
|
308
315
|
.stzh-header__burger, .stzh-header__search, .stzh-header__metanav-item {
|
|
309
|
-
color: var(--
|
|
316
|
+
color: var(--metanav-item-color);
|
|
310
317
|
transition: color var(--stzh-base-transition-animation-speed);
|
|
311
318
|
cursor: pointer;
|
|
312
319
|
}
|
|
@@ -328,7 +335,7 @@
|
|
|
328
335
|
padding: 0;
|
|
329
336
|
margin-right: var(--stzh-space-medium);
|
|
330
337
|
gap: var(--stzh-space-medium);
|
|
331
|
-
color: var(--
|
|
338
|
+
color: var(--menu-item-color);
|
|
332
339
|
}
|
|
333
340
|
@media screen and (min-width: 600px) {
|
|
334
341
|
.stzh-header__burger {
|
|
@@ -734,7 +741,7 @@
|
|
|
734
741
|
position: absolute;
|
|
735
742
|
width: 100%;
|
|
736
743
|
height: auto;
|
|
737
|
-
background-color: var(--
|
|
744
|
+
background-color: var(--menu-background-color);
|
|
738
745
|
display: grid;
|
|
739
746
|
grid-template-rows: auto auto;
|
|
740
747
|
transition-property: opacity, transform;
|
|
@@ -845,7 +852,7 @@
|
|
|
845
852
|
}
|
|
846
853
|
.stzh-header__menu-list.is-level-2, .stzh-header__menu-metanav-list.is-level-2 {
|
|
847
854
|
overflow: auto;
|
|
848
|
-
background-color: var(--
|
|
855
|
+
background-color: var(--menu-list-item-background-level2);
|
|
849
856
|
visibility: hidden;
|
|
850
857
|
opacity: 0;
|
|
851
858
|
transform: translateX(100%);
|
|
@@ -910,12 +917,12 @@
|
|
|
910
917
|
}
|
|
911
918
|
@media screen and (min-width: 900px) {
|
|
912
919
|
.stzh-header__menu-list-item:hover > .stzh-header__menu-item, .stzh-header__menu-list-item.is-open > .stzh-header__menu-item {
|
|
913
|
-
background-color: var(--
|
|
920
|
+
background-color: var(--menu-list-item-background-hover);
|
|
914
921
|
}
|
|
915
922
|
}
|
|
916
923
|
@media screen and (min-width: 900px) {
|
|
917
924
|
.stzh-header__menu-list-item:hover > .stzh-header__menu-item.is-level-2, .stzh-header__menu-list-item.is-open > .stzh-header__menu-item.is-level-2 {
|
|
918
|
-
background-color: var(--
|
|
925
|
+
background-color: var(--menu-list-item-background-level2-hover);
|
|
919
926
|
}
|
|
920
927
|
}
|
|
921
928
|
@media screen and (max-width: 899px) {
|
|
@@ -954,7 +961,7 @@
|
|
|
954
961
|
border: none;
|
|
955
962
|
text-decoration: none;
|
|
956
963
|
background-color: transparent;
|
|
957
|
-
color: var(--
|
|
964
|
+
color: var(--menu-item-color);
|
|
958
965
|
padding-left: var(--stzh-space-xxxlarge);
|
|
959
966
|
padding-top: var(--stzh-space-small);
|
|
960
967
|
padding-bottom: var(--stzh-space-small);
|
|
@@ -565,4 +565,37 @@
|
|
|
565
565
|
line-height: var(--stzh-font-curve-h1home-ultra-heading-line-height, var(--stzh-font-zetta-text-line-height));
|
|
566
566
|
letter-spacing: var(--stzh-font-curve-h1home-ultra-heading-letter-spacing, var(--stzh-font-zetta-text-letter-spacing));
|
|
567
567
|
}
|
|
568
|
+
}
|
|
569
|
+
.stzh-heading--curve-h1homesmall {
|
|
570
|
+
font-size: var(--stzh-font-curve-h1homesmall-default-font-size, var(--stzh-font-mega-font-size));
|
|
571
|
+
line-height: var(--stzh-font-curve-h1homesmall-default-heading-line-height, var(--stzh-font-mega-text-line-height));
|
|
572
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-default-heading-letter-spacing, var(--stzh-font-mega-text-letter-spacing));
|
|
573
|
+
}
|
|
574
|
+
@media screen and (min-width: 600px) {
|
|
575
|
+
.stzh-heading--curve-h1homesmall {
|
|
576
|
+
font-size: var(--stzh-font-curve-h1homesmall-small-font-size, var(--stzh-font-giga-font-size));
|
|
577
|
+
line-height: var(--stzh-font-curve-h1homesmall-small-heading-line-height, var(--stzh-font-giga-text-line-height));
|
|
578
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-small-heading-letter-spacing, var(--stzh-font-giga-text-letter-spacing));
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
@media screen and (min-width: 900px) {
|
|
582
|
+
.stzh-heading--curve-h1homesmall {
|
|
583
|
+
font-size: var(--stzh-font-curve-h1homesmall-medium-font-size, var(--stzh-font-peta-font-size));
|
|
584
|
+
line-height: var(--stzh-font-curve-h1homesmall-medium-heading-line-height, var(--stzh-font-peta-text-line-height));
|
|
585
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-medium-heading-letter-spacing, var(--stzh-font-peta-text-letter-spacing));
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
@media screen and (min-width: 1260px) {
|
|
589
|
+
.stzh-heading--curve-h1homesmall {
|
|
590
|
+
font-size: var(--stzh-font-curve-h1homesmall-large-font-size, var(--stzh-font-exa-font-size));
|
|
591
|
+
line-height: var(--stzh-font-curve-h1homesmall-large-heading-line-height, var(--stzh-font-exa-text-line-height));
|
|
592
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-large-heading-letter-spacing, var(--stzh-font-exa-text-letter-spacing));
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
@media screen and (min-width: 1600px) {
|
|
596
|
+
.stzh-heading--curve-h1homesmall {
|
|
597
|
+
font-size: var(--stzh-font-curve-h1homesmall-ultra-font-size, var(--stzh-font-exa-font-size));
|
|
598
|
+
line-height: var(--stzh-font-curve-h1homesmall-ultra-heading-line-height, var(--stzh-font-exa-text-line-height));
|
|
599
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-ultra-heading-letter-spacing, var(--stzh-font-exa-text-letter-spacing));
|
|
600
|
+
}
|
|
568
601
|
}
|
package/dist/collection/components/stzh-skin-portal-mitwirken/stzh-skin-portal-mitwirken.css
CHANGED
|
@@ -780,10 +780,26 @@ the .has-focus class is used by the focus target */
|
|
|
780
780
|
--stzh-color-mkz-cyan100: rgba(var(--stzh-color-mkz-cyan100-rgb) / 1);
|
|
781
781
|
|
|
782
782
|
/* PKZH */
|
|
783
|
-
--stzh-color-
|
|
784
|
-
--stzh-color-
|
|
785
|
-
--stzh-color-
|
|
786
|
-
--stzh-color-
|
|
783
|
+
--stzh-color-pkzh-cyan10-rgb: 235 249 255;
|
|
784
|
+
--stzh-color-pkzh-cyan10: rgba(var(--stzh-color-pkzh-cyan10-rgb) / 1);
|
|
785
|
+
--stzh-color-pkzh-cyan20-rgb: 194 238 255;
|
|
786
|
+
--stzh-color-pkzh-cyan20: rgba(var(--stzh-color-pkzh-cyan20-rgb) / 1);
|
|
787
|
+
--stzh-color-pkzh-cyan30-rgb: 132 220 255;
|
|
788
|
+
--stzh-color-pkzh-cyan30: rgba(var(--stzh-color-pkzh-cyan30-rgb) / 1);
|
|
789
|
+
--stzh-color-pkzh-cyan40-rgb: 52 197 254;
|
|
790
|
+
--stzh-color-pkzh-cyan40: rgba(var(--stzh-color-pkzh-cyan40-rgb) / 1);
|
|
791
|
+
--stzh-color-pkzh-cyan50-rgb: 0 159 223;
|
|
792
|
+
--stzh-color-pkzh-cyan50: rgba(var(--stzh-color-pkzh-cyan50-rgb) / 1);
|
|
793
|
+
--stzh-color-pkzh-cyan60-rgb: 5 127 172;
|
|
794
|
+
--stzh-color-pkzh-cyan60: rgba(var(--stzh-color-pkzh-cyan60-rgb) / 1);
|
|
795
|
+
--stzh-color-pkzh-cyan70-rgb: 0 102 143;
|
|
796
|
+
--stzh-color-pkzh-cyan70: rgba(var(--stzh-color-pkzh-cyan70-rgb) / 1);
|
|
797
|
+
--stzh-color-pkzh-cyan80-rgb: 3 76 103;
|
|
798
|
+
--stzh-color-pkzh-cyan80: rgba(var(--stzh-color-pkzh-cyan80-rgb) / 1);
|
|
799
|
+
--stzh-color-pkzh-cyan90-rgb: 0 44 61;
|
|
800
|
+
--stzh-color-pkzh-cyan90: rgba(var(--stzh-color-pkzh-cyan90-rgb) / 1);
|
|
801
|
+
--stzh-color-pkzh-cyan100-rgb: 0 29 41;
|
|
802
|
+
--stzh-color-pkzh-cyan100: rgba(var(--stzh-color-pkzh-cyan100-rgb) / 1);
|
|
787
803
|
|
|
788
804
|
/* Microsite Colors */
|
|
789
805
|
|
|
@@ -1373,16 +1389,16 @@ the .has-focus class is used by the focus target */
|
|
|
1373
1389
|
--stzh-color-primary: rgba(var(--stzh-color-tabasco-rgb) / 1);
|
|
1374
1390
|
--stzh-color-primary-hover-rgb: var(--stzh-color-mahogany-rgb);
|
|
1375
1391
|
--stzh-color-primary-hover: rgba(var(--stzh-color-mahogany-rgb) / 1);
|
|
1376
|
-
|
|
1392
|
+
|
|
1377
1393
|
/* Buttons */
|
|
1378
1394
|
--stzh-button-background-color: var(--stzh-color-primary);
|
|
1379
1395
|
--stzh-button-hover-background-color: var(--stzh-color-primary-hover);
|
|
1380
1396
|
--stzh-button-disabled-background-color: var(--stzh-color-grey70);
|
|
1381
|
-
|
|
1397
|
+
|
|
1382
1398
|
/* Links */
|
|
1383
1399
|
--stzh-link-color: var(--stzh-color-primary);
|
|
1384
1400
|
--stzh-link-hover-color: var(--stzh-color-primary-hover);
|
|
1385
|
-
|
|
1401
|
+
|
|
1386
1402
|
/* Header */
|
|
1387
1403
|
--stzh-header-logobar-background-color: var(--stzh-color-primary);
|
|
1388
1404
|
}
|
|
@@ -1586,18 +1602,18 @@ the .has-focus class is used by the focus target */
|
|
|
1586
1602
|
--stzh-button-tertiary-color: var(--stzh-color-primary80);
|
|
1587
1603
|
--stzh-button-tertiary-hover-color: var(--stzh-color-primary90);
|
|
1588
1604
|
--stzh-button-tertiary-disabled-color: var(--stzh-color-grey70);
|
|
1589
|
-
|
|
1605
|
+
|
|
1590
1606
|
/* Links */
|
|
1591
1607
|
--stzh-link-color: var(--stzh-color-primary80);
|
|
1592
1608
|
--stzh-link-hover-color: var(--stzh-color-primary90);
|
|
1593
1609
|
|
|
1594
1610
|
/* Header */
|
|
1595
1611
|
--stzh-header-logobar-background-color: var(--stzh-color-primary70);
|
|
1596
|
-
|
|
1612
|
+
|
|
1597
1613
|
/* Card list */
|
|
1598
1614
|
--stzh-cardlist-background-color: var(--stzh-color-coolgrey10);
|
|
1599
1615
|
--stzh-cardlist-description-color: var(--stzh-color-primary70);
|
|
1600
|
-
|
|
1616
|
+
}
|
|
1601
1617
|
|
|
1602
1618
|
/* ZVV Overrides */
|
|
1603
1619
|
#zvv-searchmask > div {
|
|
@@ -1608,88 +1624,27 @@ the .has-focus class is used by the focus target */
|
|
|
1608
1624
|
#zvv-searchmask * {
|
|
1609
1625
|
font-weight: inherit;
|
|
1610
1626
|
}
|
|
1611
|
-
/*
|
|
1612
|
-
.stzh-theme-mkz {
|
|
1613
|
-
--stzh-color-secondary10-rgb: var(--stzh-color-cyan10-rgb);
|
|
1614
|
-
--stzh-color-secondary10: rgba(var(--stzh-color-secondary10-rgb) / 1);
|
|
1615
|
-
--stzh-color-secondary20-rgb: var(--stzh-color-cyan20-rgb);
|
|
1616
|
-
--stzh-color-secondary20: rgba(var(--stzh-color-secondary20-rgb) / 1);
|
|
1617
|
-
--stzh-color-secondary30-rgb: var(--stzh-color-cyan30-rgb);
|
|
1618
|
-
--stzh-color-secondary30: rgba(var(--stzh-color-secondary30-rgb) / 1);
|
|
1619
|
-
--stzh-color-secondary40-rgb: var(--stzh-color-cyan40-rgb);
|
|
1620
|
-
--stzh-color-secondary40: rgba(var(--stzh-color-secondary40-rgb) / 1);
|
|
1621
|
-
--stzh-color-secondary50-rgb: var(--stzh-color-cyan50-rgb);
|
|
1622
|
-
--stzh-color-secondary50: rgba(var(--stzh-color-secondary50-rgb) / 1);
|
|
1623
|
-
--stzh-color-secondary60-rgb: var(--stzh-color-cyan60-rgb);
|
|
1624
|
-
--stzh-color-secondary60: rgba(var(--stzh-color-secondary60-rgb) / 1);
|
|
1625
|
-
--stzh-color-secondary70-rgb: var(--stzh-color-cyan70-rgb);
|
|
1626
|
-
--stzh-color-secondary70: rgba(var(--stzh-color-secondary70-rgb) / 1);
|
|
1627
|
-
--stzh-color-secondary80-rgb: var(--stzh-color-cyan80-rgb);
|
|
1628
|
-
--stzh-color-secondary80: rgba(var(--stzh-color-secondary80-rgb) / 1);
|
|
1629
|
-
--stzh-color-secondary90-rgb: var(--stzh-color-cyan90-rgb);
|
|
1630
|
-
--stzh-color-secondary90: rgba(var(--stzh-color-secondary90-rgb) / 1);
|
|
1631
|
-
--stzh-color-secondary100-rgb: var(--stzh-color-cyan100-rgb);
|
|
1632
|
-
--stzh-color-secondary100: rgba(var(--stzh-color-secondary100-rgb) / 1);
|
|
1633
|
-
*/
|
|
1634
|
-
/* Homepage Service Highlights */
|
|
1635
|
-
/*
|
|
1636
|
-
--stzh-homepage-service-highlights-topnews-subtitle-font: var(--stzh-font-family-heavy);
|
|
1637
|
-
}
|
|
1638
|
-
*/
|
|
1639
1627
|
|
|
1640
1628
|
.stzh-theme-uvz {
|
|
1641
1629
|
--stzh-color-primary-rgb: var(--stzh-color-monza-rgb);
|
|
1642
1630
|
--stzh-color-primary: rgba(var(--stzh-color-monza-rgb) / 1);
|
|
1643
1631
|
--stzh-color-primary-hover-rgb: var(--stzh-color-venetianred-rgb);
|
|
1644
1632
|
--stzh-color-primary-hover: rgba(var(--stzh-color-venetianred-rgb) / 1);
|
|
1645
|
-
|
|
1646
|
-
/* Buttons */
|
|
1647
|
-
--stzh-button-background-color: var(--stzh-color-primary);
|
|
1648
|
-
--stzh-button-hover-background-color: var(--stzh-color-primary-hover);
|
|
1649
|
-
--stzh-button-disabled-background-color: var(--stzh-color-grey70);
|
|
1650
|
-
|
|
1651
|
-
/* Links */
|
|
1652
|
-
--stzh-link-color: var(--stzh-color-primary);
|
|
1653
|
-
--stzh-link-hover-color: var(--stzh-color-primary-hover);
|
|
1654
|
-
/*
|
|
1655
|
-
--stzh-link-color: var(--stzh-color-scienceblue);
|
|
1656
|
-
--stzh-heading-color: rgb(77, 77, 77);
|
|
1657
|
-
*/
|
|
1658
|
-
/* Header */
|
|
1659
|
-
--stzh-header-logobar-background-color: var(--stzh-color-primary);
|
|
1660
|
-
}
|
|
1661
1633
|
|
|
1662
|
-
.stzh-theme-pkzh {
|
|
1663
|
-
--stzh-pkzh-font-family: Verdana, 'Geneva', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1664
|
-
|
|
1665
|
-
--stzh-color-primary-rgb: var(--stzh-color-shakespeare-rgb);
|
|
1666
|
-
--stzh-color-primary: rgba(var(--stzh-color-shakespeare-rgb) / 1);
|
|
1667
|
-
--stzh-color-primary-hover-rgb: var(--stzh-color-chambray-rgb);
|
|
1668
|
-
--stzh-color-primary-hover: rgba(var(--stzh-color-chambray-rgb) / 1);
|
|
1669
|
-
|
|
1670
1634
|
/* Buttons */
|
|
1671
1635
|
--stzh-button-background-color: var(--stzh-color-primary);
|
|
1672
1636
|
--stzh-button-hover-background-color: var(--stzh-color-primary-hover);
|
|
1673
1637
|
--stzh-button-disabled-background-color: var(--stzh-color-grey70);
|
|
1674
|
-
|
|
1638
|
+
|
|
1675
1639
|
/* Links */
|
|
1676
1640
|
--stzh-link-color: var(--stzh-color-primary);
|
|
1677
|
-
--stzh-link-hover-color: var(--stzh-color-primary-hover);
|
|
1678
|
-
|
|
1641
|
+
--stzh-link-hover-color: var(--stzh-color-primary-hover);
|
|
1642
|
+
/*
|
|
1643
|
+
--stzh-link-color: var(--stzh-color-scienceblue);
|
|
1644
|
+
--stzh-heading-color: rgb(77, 77, 77);
|
|
1645
|
+
*/
|
|
1679
1646
|
/* Header */
|
|
1680
1647
|
--stzh-header-logobar-background-color: var(--stzh-color-primary);
|
|
1681
|
-
|
|
1682
|
-
--stzh-font-family-light: var(--stzh-pkzh-font-family);
|
|
1683
|
-
--stzh-font-family-regular: var(--stzh-pkzh-font-family);
|
|
1684
|
-
--stzh-font-family-medium: var(--stzh-pkzh-font-family);
|
|
1685
|
-
--stzh-font-family-bold: var(--stzh-pkzh-font-family);
|
|
1686
|
-
--stzh-font-family-heavy: var(--stzh-pkzh-font-family);
|
|
1687
|
-
|
|
1688
|
-
--stzh-font-weight-light: 300;
|
|
1689
|
-
--stzh-font-weight-regular: normal;
|
|
1690
|
-
--stzh-font-weight-medium: 500;
|
|
1691
|
-
--stzh-font-weight-bold: 700;
|
|
1692
|
-
--stzh-font-weight-heavy: 800;
|
|
1693
1648
|
}
|
|
1694
1649
|
|
|
1695
1650
|
.stzh-theme-ms-aoz-agenda {
|
|
@@ -1763,6 +1718,155 @@ the .has-focus class is used by the focus target */
|
|
|
1763
1718
|
background-color: var(--stzh-color-grey10);
|
|
1764
1719
|
}
|
|
1765
1720
|
|
|
1721
|
+
/**
|
|
1722
|
+
* Pensionskasse Zürich (PKZH)
|
|
1723
|
+
*/
|
|
1724
|
+
.stzh-theme-pkzh {
|
|
1725
|
+
--stzh-color-primary10-rgb: var(--stzh-color-coolgrey10-rgb);
|
|
1726
|
+
--stzh-color-primary10: rgba(var(--stzh-color-primary10-rgb) / 1);
|
|
1727
|
+
--stzh-color-primary20-rgb: var(--stzh-color-coolgrey20-rgb);
|
|
1728
|
+
--stzh-color-primary20: rgba(var(--stzh-color-primary20-rgb) / 1);
|
|
1729
|
+
--stzh-color-primary30-rgb: var(--stzh-color-coolgrey30-rgb);
|
|
1730
|
+
--stzh-color-primary30: rgba(var(--stzh-color-primary30-rgb) / 1);
|
|
1731
|
+
--stzh-color-primary40-rgb: var(--stzh-color-coolgrey40-rgb);
|
|
1732
|
+
--stzh-color-primary40: rgba(var(--stzh-color-primary40-rgb) / 1);
|
|
1733
|
+
--stzh-color-primary50-rgb: var(--stzh-color-coolgrey50-rgb);
|
|
1734
|
+
--stzh-color-primary50: rgba(var(--stzh-color-primary50-rgb) / 1);
|
|
1735
|
+
--stzh-color-primary60-rgb: var(--stzh-color-coolgrey60-rgb);
|
|
1736
|
+
--stzh-color-primary60: rgba(var(--stzh-color-primary60-rgb) / 1);
|
|
1737
|
+
--stzh-color-primary70-rgb: var(--stzh-color-coolgrey70-rgb);
|
|
1738
|
+
--stzh-color-primary70: rgba(var(--stzh-color-primary70-rgb) / 1);
|
|
1739
|
+
--stzh-color-primary80-rgb: var(--stzh-color-coolgrey80-rgb);
|
|
1740
|
+
--stzh-color-primary80: rgba(var(--stzh-color-primary80-rgb) / 1);
|
|
1741
|
+
--stzh-color-primary90-rgb: var(--stzh-color-coolgrey90-rgb);
|
|
1742
|
+
--stzh-color-primary90: rgba(var(--stzh-color-primary90-rgb) / 1);
|
|
1743
|
+
--stzh-color-primary100-rgb: var(--stzh-color-coolgrey100-rgb);
|
|
1744
|
+
--stzh-color-primary100: rgba(var(--stzh-color-primary100-rgb) / 1);
|
|
1745
|
+
|
|
1746
|
+
--stzh-color-secondary10-rgb: var(--stzh-color-pkzh-cyan10-rgb);
|
|
1747
|
+
--stzh-color-secondary10: rgba(var(--stzh-color-secondary10-rgb) / 1);
|
|
1748
|
+
--stzh-color-secondary20-rgb: var(--stzh-color-pkzh-cyan20-rgb);
|
|
1749
|
+
--stzh-color-secondary20: rgba(var(--stzh-color-secondary20-rgb) / 1);
|
|
1750
|
+
--stzh-color-secondary30-rgb: var(--stzh-color-pkzh-cyan30-rgb);
|
|
1751
|
+
--stzh-color-secondary30: rgba(var(--stzh-color-secondary30-rgb) / 1);
|
|
1752
|
+
--stzh-color-secondary40-rgb: var(--stzh-color-pkzh-cyan40-rgb);
|
|
1753
|
+
--stzh-color-secondary40: rgba(var(--stzh-color-secondary40-rgb) / 1);
|
|
1754
|
+
--stzh-color-secondary50-rgb: var(--stzh-color-pkzh-cyan50-rgb);
|
|
1755
|
+
--stzh-color-secondary50: rgba(var(--stzh-color-secondary50-rgb) / 1);
|
|
1756
|
+
--stzh-color-secondary60-rgb: var(--stzh-color-pkzh-cyan60-rgb);
|
|
1757
|
+
--stzh-color-secondary60: rgba(var(--stzh-color-secondary60-rgb) / 1);
|
|
1758
|
+
--stzh-color-secondary70-rgb: var(--stzh-color-pkzh-cyan70-rgb);
|
|
1759
|
+
--stzh-color-secondary70: rgba(var(--stzh-color-secondary70-rgb) / 1);
|
|
1760
|
+
--stzh-color-secondary80-rgb: var(--stzh-color-pkzh-cyan80-rgb);
|
|
1761
|
+
--stzh-color-secondary80: rgba(var(--stzh-color-secondary80-rgb) / 1);
|
|
1762
|
+
--stzh-color-secondary90-rgb: var(--stzh-color-pkzh-cyan90-rgb);
|
|
1763
|
+
--stzh-color-secondary90: rgba(var(--stzh-color-secondary90-rgb) / 1);
|
|
1764
|
+
--stzh-color-secondary100-rgb: var(--stzh-color-pkzh-cyan100-rgb);
|
|
1765
|
+
--stzh-color-secondary100: rgba(var(--stzh-color-secondary100-rgb) / 1);
|
|
1766
|
+
|
|
1767
|
+
/* Font families */
|
|
1768
|
+
--stzh-font-family-regular: 'HelveticaNeueLTW05_65Medium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1769
|
+
--stzh-font-family-medium: 'HelveticaNeueLTW05_65Medium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1770
|
+
--stzh-font-family-medium-italic: 'HelveticaNeueLTW05_66MediumIt', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1771
|
+
--stzh-font-family-bold: 'HelveticaNeueLTW05_65Medium', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1772
|
+
--stzh-font-family-heavy: 'HelveticaNeueLTW01_71488914', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
1773
|
+
--stzh-font-family-title: var(--stzh-font-family-regular);
|
|
1774
|
+
--stzh-font-weight-regular: normal;
|
|
1775
|
+
--stzh-font-weight-medium: 400;
|
|
1776
|
+
--stzh-font-weight-medium-italic: 400;
|
|
1777
|
+
--stzh-font-weight-bold: 500;
|
|
1778
|
+
--stzh-font-weight-heavy: 700;
|
|
1779
|
+
|
|
1780
|
+
/* General heading color */
|
|
1781
|
+
--stzh-heading-color: var(--stzh-color-secondary70);
|
|
1782
|
+
|
|
1783
|
+
/* Logobar & Header */
|
|
1784
|
+
--stzh-header-color: var(--stzh-color-secondary90);
|
|
1785
|
+
--stzh-header-logo-width: 15rem;
|
|
1786
|
+
--stzh-header-logobar-background-color: var(--stzh-color-white);
|
|
1787
|
+
--stzh-header-menu-background-color: var(--stzh-color-secondary10);
|
|
1788
|
+
--stzh-header-menu-list-item-background-hover: var(--stzh-color-secondary20);
|
|
1789
|
+
--stzh-header-menu-item-color: var(--stzh-color-secondary90);
|
|
1790
|
+
--stzh-header-menu-list-item-background-level2: var(--stzh-color-white);
|
|
1791
|
+
--stzh-header-menu-list-item-background-level2-hover: var(--stzh-color-secondary10);
|
|
1792
|
+
--stzh-header-metabar-background-color: var(--stzh-color-grey10);
|
|
1793
|
+
--stzh-header-metanav-item-color: var(--stzh-color-secondary90);
|
|
1794
|
+
|
|
1795
|
+
/* Pagetitle Home */
|
|
1796
|
+
--stzh-pagetitle-home-heading-color: var(--stzh-color-sunnyyellow40);
|
|
1797
|
+
--stzh-pagetitle-home-subheading-color: var(--stzh-color-sunnyyellow40);
|
|
1798
|
+
|
|
1799
|
+
/* Pagetitle */
|
|
1800
|
+
--stzh-pagetitle-background-color: var(--stzh-color-pkzh-cyan10);
|
|
1801
|
+
|
|
1802
|
+
/* Breadcrumb */
|
|
1803
|
+
--stzh-breadcrumb-color: var(--stzh-color-secondary80);
|
|
1804
|
+
|
|
1805
|
+
/* Homepage Service Highlights */
|
|
1806
|
+
--stzh-homepage-service-highlights-mostsearched-background-color: var(--stzh-color-sunnyyellow40);
|
|
1807
|
+
--stzh-homepage-service-highlights-mostsearched-item-font-size: var(--stzh-font-hecto-font-size);
|
|
1808
|
+
--stzh-homepage-service-highlights-topnews-background-color: var(--stzh-color-white);
|
|
1809
|
+
--stzh-homepage-service-highlights-topnews-background-color-hover: var(--stzh-color-secondary10);
|
|
1810
|
+
--stzh-homepage-service-highlights-topnews-subtitle-font: var(--stzh-font-family-medium);
|
|
1811
|
+
|
|
1812
|
+
/* Card Superteaser */
|
|
1813
|
+
--stzh-card-superteaser-tag-color: var(--stzh-color-white);
|
|
1814
|
+
--stzh-card-superteaser-tag-color-hover: var(--stzh-color-white);
|
|
1815
|
+
--stzh-card-superteaser-tag-background-color: var(--stzh-color-secondary70);
|
|
1816
|
+
--stzh-card-superteaser-heading-margin-bottom: 0;
|
|
1817
|
+
--stzh-card-superteaser-heading-link-color: var(--stzh-color-primary90);
|
|
1818
|
+
|
|
1819
|
+
/* Footer */
|
|
1820
|
+
--stzh-footer-background-color: var(--stzh-color-secondary90);
|
|
1821
|
+
|
|
1822
|
+
/* Accordion */
|
|
1823
|
+
--stzh-accordion-button-color: var(--stzh-color-black);
|
|
1824
|
+
--stzh-accordion-button-background-color: var(--stzh-color-secondary10);
|
|
1825
|
+
--stzh-accordion-button-hover-background-color: var(--stzh-color-secondary20);
|
|
1826
|
+
--stzh-accordion-button-background-color-is-open: var(--stzh-color-secondary20);
|
|
1827
|
+
--stzh-accordion-content-background: var(--stzh-color-secondary10);
|
|
1828
|
+
|
|
1829
|
+
/**
|
|
1830
|
+
* Link
|
|
1831
|
+
*/
|
|
1832
|
+
--stzh-link-color: var(--stzh-color-secondary70);
|
|
1833
|
+
--stzh-link-hover-color: var(--stzh-color-secondary80);
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
* Buttons
|
|
1837
|
+
*/
|
|
1838
|
+
--stzh-button-background-color: var(--stzh-color-secondary70);
|
|
1839
|
+
--stzh-button-hover-background-color: var(--stzh-color-secondary60);
|
|
1840
|
+
--stzh-button-secondary-color: var(--stzh-color-primary80);
|
|
1841
|
+
--stzh-button-secondary-background-color: var(--stzh-color-secondary20);
|
|
1842
|
+
--stzh-button-secondary-hover-color: var(--stzh-color-primary80);
|
|
1843
|
+
--stzh-button-secondary-hover-background-color: var(--stzh-color-secondary40);
|
|
1844
|
+
--stzh-button-tertiary-color: var(--stzh-color-primary70);
|
|
1845
|
+
--stzh-button-tertiary-hover-color: var(--stzh-color-primary80);
|
|
1846
|
+
--stzh-button-tertiary-disabled-color: var(--stzh-color-grey70);
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* Anchornav
|
|
1850
|
+
*/
|
|
1851
|
+
--stzh-anchornav-hover-color: var(--stzh-color-secondary50);
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
.stzh-theme-pkzh--cyan {
|
|
1855
|
+
--stzh-pagetitle-background-color: var(--stzh-color-pkzh-cyan10);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.stzh-theme-pkzh--limegreen {
|
|
1859
|
+
--stzh-pagetitle-background-color: var(--stzh-color-limegreen20);
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1862
|
+
.stzh-theme-pkzh--violet {
|
|
1863
|
+
--stzh-pagetitle-background-color: var(--stzh-color-violet20);
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
.stzh-theme-pkzh--sunnyyellow {
|
|
1867
|
+
--stzh-pagetitle-background-color: var(--stzh-color-sunnyyellow20);
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1766
1870
|
/**
|
|
1767
1871
|
* Publizistische Inhalte (PI)
|
|
1768
1872
|
*/
|
|
@@ -601,6 +601,39 @@
|
|
|
601
601
|
letter-spacing: var(--stzh-font-curve-h1home-ultra-text-letter-spacing, var(--stzh-font-zetta-text-letter-spacing));
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
+
.stzh-text--curve-h1homesmall {
|
|
605
|
+
font-size: var(--stzh-font-curve-h1homesmall-default-font-size, var(--stzh-font-mega-font-size));
|
|
606
|
+
line-height: var(--stzh-font-curve-h1homesmall-default-text-line-height, var(--stzh-font-mega-text-line-height));
|
|
607
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-default-text-letter-spacing, var(--stzh-font-mega-text-letter-spacing));
|
|
608
|
+
}
|
|
609
|
+
@media screen and (min-width: 600px) {
|
|
610
|
+
.stzh-text--curve-h1homesmall {
|
|
611
|
+
font-size: var(--stzh-font-curve-h1homesmall-small-font-size, var(--stzh-font-giga-font-size));
|
|
612
|
+
line-height: var(--stzh-font-curve-h1homesmall-small-text-line-height, var(--stzh-font-giga-text-line-height));
|
|
613
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-small-text-letter-spacing, var(--stzh-font-giga-text-letter-spacing));
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
@media screen and (min-width: 900px) {
|
|
617
|
+
.stzh-text--curve-h1homesmall {
|
|
618
|
+
font-size: var(--stzh-font-curve-h1homesmall-medium-font-size, var(--stzh-font-peta-font-size));
|
|
619
|
+
line-height: var(--stzh-font-curve-h1homesmall-medium-text-line-height, var(--stzh-font-peta-text-line-height));
|
|
620
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-medium-text-letter-spacing, var(--stzh-font-peta-text-letter-spacing));
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
@media screen and (min-width: 1260px) {
|
|
624
|
+
.stzh-text--curve-h1homesmall {
|
|
625
|
+
font-size: var(--stzh-font-curve-h1homesmall-large-font-size, var(--stzh-font-exa-font-size));
|
|
626
|
+
line-height: var(--stzh-font-curve-h1homesmall-large-text-line-height, var(--stzh-font-exa-text-line-height));
|
|
627
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-large-text-letter-spacing, var(--stzh-font-exa-text-letter-spacing));
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
@media screen and (min-width: 1600px) {
|
|
631
|
+
.stzh-text--curve-h1homesmall {
|
|
632
|
+
font-size: var(--stzh-font-curve-h1homesmall-ultra-font-size, var(--stzh-font-exa-font-size));
|
|
633
|
+
line-height: var(--stzh-font-curve-h1homesmall-ultra-text-line-height, var(--stzh-font-exa-text-line-height));
|
|
634
|
+
letter-spacing: var(--stzh-font-curve-h1homesmall-ultra-text-letter-spacing, var(--stzh-font-exa-text-letter-spacing));
|
|
635
|
+
}
|
|
636
|
+
}
|
|
604
637
|
.stzh-text--size-femto {
|
|
605
638
|
font-size: var(--stzh-font-femto-font-size);
|
|
606
639
|
line-height: var(--stzh-font-femto-text-line-height);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { test } from "@playwright/test";
|
|
2
|
+
import { visualDiff } from "../../../../.build/test/utils";
|
|
3
|
+
const URL = "pages-home";
|
|
4
|
+
const STORIES = [
|
|
5
|
+
"homepage"
|
|
6
|
+
];
|
|
7
|
+
test.describe("page: home", () => {
|
|
8
|
+
STORIES.forEach((storyId) => {
|
|
9
|
+
test(`story ${storyId} visual diff`, async ({ page }) => {
|
|
10
|
+
await visualDiff({
|
|
11
|
+
storyId,
|
|
12
|
+
page,
|
|
13
|
+
url: URL
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=pkzh.e2e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pkzh.e2e.js","sourceRoot":"","sources":["../../../../../src/pages/CMS/PKZH/pkzh.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,MAAM,GAAG,GAAG,YAAY,CAAC;AAEzB,MAAM,OAAO,GAAG;IACd,UAAU;CACX,CAAC;AAEF,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC/B,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC1B,IAAI,CAAC,SAAS,OAAO,cAAc,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YACtD,MAAM,UAAU,CAAC;gBACf,OAAO;gBACP,IAAI;gBACJ,GAAG,EAAE,GAAG;aACT,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { test } from \"@playwright/test\";\nimport { visualDiff } from \"../../../../.build/test/utils\";\n\nconst URL = \"pages-home\";\n\nconst STORIES = [\n \"homepage\"\n];\n\ntest.describe(\"page: home\", () => {\n STORIES.forEach((storyId) => {\n test(`story ${storyId} visual diff`, async ({ page }) => {\n await visualDiff({\n storyId,\n page,\n url: URL\n });\n });\n });\n});\n"]}
|
|
@@ -142,56 +142,8 @@ export function addWordBreakToLinks(links) {
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
// return childNodes(node).map((n: any) => n.nodeType === 1);
|
|
150
|
-
// }
|
|
151
|
-
// const nativeCloneNodeFn = Node.prototype.cloneNode;
|
|
152
|
-
// export function cloneElement(node: Element, deep: boolean) {
|
|
153
|
-
// const clonedNode = nativeCloneNodeFn.call(node, false);
|
|
154
|
-
// const srcChildNodes = childNodes(node);
|
|
155
|
-
// if (deep) {
|
|
156
|
-
// for (let i = 0; i < srcChildNodes.length; i++) {
|
|
157
|
-
// if (srcChildNodes[i].nodeType !== 2) {
|
|
158
|
-
// const childClone = cloneElement(srcChildNodes[i], true);
|
|
159
|
-
// clonedNode.appendChild(childClone);
|
|
160
|
-
// }
|
|
161
|
-
// }
|
|
162
|
-
// }
|
|
163
|
-
// return clonedNode;
|
|
164
|
-
// }
|
|
165
|
-
// // Clone an stzh-* element that is using stencil polyfilled slots (no shadow dom)
|
|
166
|
-
// // and potentially wrapped in normal elements (e.g. angular component)
|
|
167
|
-
// export function cloneWrappedStzhElement(elementToClone: Element): [Element, Element, Element] {
|
|
168
|
-
// let clonedElement: Element;
|
|
169
|
-
// let clonedStzhElement: Element;
|
|
170
|
-
// let originalStzhElement: Element;
|
|
171
|
-
// if (isStzhElement(elementToClone)) {
|
|
172
|
-
// clonedElement = cloneElement(elementToClone, true);
|
|
173
|
-
// clonedStzhElement = clonedElement;
|
|
174
|
-
// originalStzhElement = elementToClone;
|
|
175
|
-
// } else {
|
|
176
|
-
// clonedElement = elementToClone.cloneNode() as Element;
|
|
177
|
-
// let clonedInnerElementLast: Element = clonedElement;
|
|
178
|
-
// let originalInnerElementLast: Element = elementToClone;
|
|
179
|
-
// // clone inner root elements separately until we find a stzh element
|
|
180
|
-
// while (originalInnerElementLast.children.length === 1 && !isStzhElement(originalInnerElementLast.children[0])) {
|
|
181
|
-
// originalInnerElementLast = originalInnerElementLast.children[0];
|
|
182
|
-
// const clonedInnerElementCurrent = originalInnerElementLast.cloneNode() as Element;
|
|
183
|
-
// clonedInnerElementLast.appendChild(clonedInnerElementCurrent);
|
|
184
|
-
// clonedInnerElementLast = clonedInnerElementCurrent;
|
|
185
|
-
// }
|
|
186
|
-
// if (isStzhElement(originalInnerElementLast.children[0])) {
|
|
187
|
-
// clonedStzhElement = cloneElement(originalInnerElementLast.children[0], true);
|
|
188
|
-
// originalStzhElement = originalInnerElementLast.children[0];
|
|
189
|
-
// clonedInnerElementLast.appendChild(clonedStzhElement);
|
|
190
|
-
// } else {
|
|
191
|
-
// // no root stzh element found, so we give up and just deep clone the root
|
|
192
|
-
// clonedElement = cloneElement(elementToClone, true);
|
|
193
|
-
// }
|
|
194
|
-
// }
|
|
195
|
-
// return [clonedElement, clonedStzhElement, originalStzhElement];
|
|
196
|
-
// }
|
|
145
|
+
export function getTheme() {
|
|
146
|
+
const htmlElement = document.documentElement;
|
|
147
|
+
return Array.from(htmlElement.classList).find(className => className.startsWith("stzh-theme-"));
|
|
148
|
+
}
|
|
197
149
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,mHAAmH;AACnH,uHAAuH;AACvH,MAAM,UAAU,OAAO,CAAC,EAAe,EAAE,IAAa;IACpD,wBAAwB;IACxB,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,K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IAAI,EAAE,QAAQ,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED,yFAAyF;AACzF,qFAAqF;AACrF,oDAAoD;AAEpD,4CAA4C;AAC5C,+DAA+D;AAC/D,IAAI;AAEJ,sDAAsD;AAEtD,+DAA+D;AAC/D,4DAA4D;AAC5D,4CAA4C;AAE5C,gBAAgB;AAChB,uDAAuD;AACvD,+CAA+C;AAC/C,mEAAmE;AACnE,8CAA8C;AAC9C,UAAU;AACV,QAAQ;AACR,MAAM;AAEN,uBAAuB;AACvB,IAAI;AAEJ,oFAAoF;AACpF,yEAAyE;AACzE,kGAAkG;AAClG,gCAAgC;AAChC,oCAAoC;AACpC,sCAAsC;AAEtC,yCAAyC;AACzC,0DAA0D;AAC1D,yCAAyC;AACzC,4CAA4C;AAC5C,aAAa;AACb,6DAA6D;AAE7D,2DAA2D;AAC3D,8DAA8D;AAE9D,2EAA2E;AAC3E,uHAAuH;AACvH,yEAAyE;AACzE,2FAA2F;AAE3F,uEAAuE;AACvE,4DAA4D;AAC5D,QAAQ;AAER,iEAAiE;AACjE,sFAAsF;AACtF,oEAAoE;AACpE,+DAA+D;AAC/D,eAAe;AACf,kFAAkF;AAClF,4DAA4D;AAC5D,QAAQ;AACR,MAAM;AAEN,oEAAoE;AACpE,IAAI","sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n if (\n url.includes(\"test.stadt-zuerich.loc\") ||\n url.match(/\\.dev\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.DEV;\n } else if (\n url.includes(\"integ.stadt-zuerich.ch\") ||\n url.includes(\"stzh-desi-unic-preview.netlify.app\") ||\n url.match(/\\.uat\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.UAT;\n } else if (\n url.includes(\"https://www.stadt-zuerich.ch\") ||\n url.includes(\"designsystem.stadt-zuerich.ch\") ||\n url.match(/\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.PROD;\n } else {\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n if (link.textContent?.includes(\"_\")) {\n link.innerHTML = link.textContent.replace(/_/g, \"_<wbr>\");\n }\n });\n}\n\n// `extras.experimentalSlotFixes` stencil config flag resolves cloning light dom elements\n// so our own cloneElement / cloneWrappedStzhElement helpers are not needed right now\n// (used before in cardlist and sortable component).\n\n// export function children(node: Element) {\n// return childNodes(node).map((n: any) => n.nodeType === 1);\n// }\n\n// const nativeCloneNodeFn = Node.prototype.cloneNode;\n\n// export function cloneElement(node: Element, deep: boolean) {\n// const clonedNode = nativeCloneNodeFn.call(node, false);\n// const srcChildNodes = childNodes(node);\n\n// if (deep) {\n// for (let i = 0; i < srcChildNodes.length; i++) {\n// if (srcChildNodes[i].nodeType !== 2) {\n// const childClone = cloneElement(srcChildNodes[i], true);\n// clonedNode.appendChild(childClone);\n// }\n// }\n// }\n\n// return clonedNode;\n// }\n\n// // Clone an stzh-* element that is using stencil polyfilled slots (no shadow dom)\n// // and potentially wrapped in normal elements (e.g. angular component)\n// export function cloneWrappedStzhElement(elementToClone: Element): [Element, Element, Element] {\n// let clonedElement: Element;\n// let clonedStzhElement: Element;\n// let originalStzhElement: Element;\n\n// if (isStzhElement(elementToClone)) {\n// clonedElement = cloneElement(elementToClone, true);\n// clonedStzhElement = clonedElement;\n// originalStzhElement = elementToClone;\n// } else {\n// clonedElement = elementToClone.cloneNode() as Element;\n\n// let clonedInnerElementLast: Element = clonedElement;\n// let originalInnerElementLast: Element = elementToClone;\n\n// // clone inner root elements separately until we find a stzh element\n// while (originalInnerElementLast.children.length === 1 && !isStzhElement(originalInnerElementLast.children[0])) {\n// originalInnerElementLast = originalInnerElementLast.children[0];\n// const clonedInnerElementCurrent = originalInnerElementLast.cloneNode() as Element;\n\n// clonedInnerElementLast.appendChild(clonedInnerElementCurrent);\n// clonedInnerElementLast = clonedInnerElementCurrent;\n// }\n\n// if (isStzhElement(originalInnerElementLast.children[0])) {\n// clonedStzhElement = cloneElement(originalInnerElementLast.children[0], true);\n// originalStzhElement = originalInnerElementLast.children[0];\n// clonedInnerElementLast.appendChild(clonedStzhElement);\n// } else {\n// // no root stzh element found, so we give up and just deep clone the root\n// clonedElement = cloneElement(elementToClone, true);\n// }\n// }\n\n// return [clonedElement, clonedStzhElement, originalStzhElement];\n// }\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,mHAAmH;AACnH,uHAAuH;AACvH,MAAM,UAAU,OAAO,CAAC,EAAe,EAAE,IAAa;IACpD,wBAAwB;IACxB,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,EAAE,CAAC,aAAa,CAAC,UAAU,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC;IACvD,CAAC;IAED,0BAA0B;IAC1B,OAAO,KAAK,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CAAC;AACL,CAAC;AAED,MAAM,UAAU,QAAQ;IACtB,MAAM,WAAW,GAAG,QAAQ,CAAC,eAAe,CAAC;IAC7C,OAAO,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC;AAClG,CAAC","sourcesContent":["import { dashCase } from \"./string-utils\";\n\n// Determines whether an element has a slot. If name is specified, the function will look for a corresponding named\n// slot, otherwise it will look for a \"default\" slot (e.g. a non-empty text node or an element with no slot attribute).\nexport function hasSlot(el: HTMLElement, name?: string) {\n // Look for a named slot\n if (name) {\n return el.querySelector(`[slot=\"${name}\"]`) !== null;\n }\n\n // Look for a default slot\n return Array.from(childNodes(el)).some((node) => {\n if (node.nodeType === node.TEXT_NODE && node.textContent.trim() !== \"\") {\n return true;\n }\n\n if (node.nodeType === node.ELEMENT_NODE) {\n const el = node as HTMLElement;\n if (!el.hasAttribute(\"slot\")) {\n return true;\n }\n }\n\n return false;\n });\n}\n\nexport function setPropsIfNull(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n if (element.getAttribute(dashCase(attribute)) === null) {\n element[attribute] = attributes[attribute];\n }\n });\n}\n\nexport function setProps(element: Element, attributes: any) {\n Object.keys(attributes).forEach((attribute) => {\n element[attribute] = attributes[attribute];\n });\n}\n\nexport function isStzhElement(element: Element) {\n if (!element || element.nodeType !== 1) {\n return false;\n }\n\n return element.tagName.toLowerCase().indexOf(\"stzh-\") === 0;\n}\n\n// returns content of <meta name=\"\" content=\"\"> tags or '' if empty/non existant\nexport function getMeta(name) {\n const meta = document.querySelector(\n `meta[name=\"${name}\"],[property=\"${name}\"]`\n );\n return meta ? meta.getAttribute(\"content\") : \"\";\n}\n\nexport function parents(node: Element | Node) {\n const parents = [];\n\n while (node) {\n parents.unshift(node);\n node = node.parentNode;\n }\n\n return parents;\n}\n\nexport function childNodes(node: Element) {\n const childNodes = node.childNodes;\n\n // check if element is stencil element without shadow dom\n // and then detect elements that were slotted into the element\n if (node[\"s-sc\"]) {\n const result = [];\n\n for (let i = 0; i < childNodes.length; i++) {\n const slot = childNodes[i][\"s-nr\"];\n\n if (slot) {\n result.push(slot);\n }\n }\n\n return result;\n }\n\n return Array.from(childNodes);\n}\n\nexport function isVisible(element: HTMLElement): boolean {\n // @ts-ignore\n if (typeof element.checkVisibility !== \"undefined\") {\n // @ts-ignore\n return element.checkVisibility({\n checkOpacity: false,\n checkVisibilityCSS: false\n });\n } else {\n return !!(\n element.offsetWidth ||\n element.offsetHeight ||\n element.getClientRects().length\n );\n }\n}\n\nexport function offset(element): { top: number; left: number } {\n if (!element.getClientRects().length) {\n return { top: 0, left: 0 };\n }\n\n let rect = element.getBoundingClientRect();\n let win = element.ownerDocument.defaultView;\n\n return {\n top: rect.top + win.pageYOffset,\n left: rect.left + win.pageXOffset\n };\n}\n\nexport async function raf() {\n return new Promise<void>((resolve) => {\n requestAnimationFrame(() => {\n resolve();\n });\n });\n}\n\nexport async function setTimeout(time: number) {\n return new Promise<void>((resolve) => {\n window.setTimeout(() => {\n resolve();\n }, time);\n });\n}\n\nexport enum StzhEnvironmentEnum {\n UNKNOWN = \"UNKNOWN\",\n DEV = \"DEV\",\n UAT = \"UAT\",\n PROD = \"PROD\",\n}\n\nexport function getStzhEnvironment(): StzhEnvironmentEnum {\n const url = window.location.href;\n if (\n url.includes(\"test.stadt-zuerich.loc\") ||\n url.match(/\\.dev\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.DEV;\n } else if (\n url.includes(\"integ.stadt-zuerich.ch\") ||\n url.includes(\"stzh-desi-unic-preview.netlify.app\") ||\n url.match(/\\.uat\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.UAT;\n } else if (\n url.includes(\"https://www.stadt-zuerich.ch\") ||\n url.includes(\"designsystem.stadt-zuerich.ch\") ||\n url.match(/\\.cmp\\.szh\\.loc/)\n ) {\n return StzhEnvironmentEnum.PROD;\n } else {\n return StzhEnvironmentEnum.UNKNOWN;\n }\n}\n\nexport function addWordBreakToLinks(links: HTMLElement[]) {\n links.forEach((link) => {\n if (link.textContent?.includes(\"_\")) {\n link.innerHTML = link.textContent.replace(/_/g, \"_<wbr>\");\n }\n });\n}\n\nexport function getTheme() {\n const htmlElement = document.documentElement;\n return Array.from(htmlElement.classList).find(className => className.startsWith(\"stzh-theme-\"));\n}\n"]}
|