hr-design-system-handlebars 1.34.2 → 1.34.4

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 (31) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/assets/index.css +99 -17
  3. package/dist/views/components/content/social_media_links/social_media_links.hbs +2 -2
  4. package/dist/views/components/site_header/header.hbs +7 -7
  5. package/dist/views/components/site_header/navigation_flyout/navigation_flyout.hbs +4 -4
  6. package/dist/views/components/site_header/navigation_search/quick_search_form.hbs +1 -1
  7. package/dist/views/components/site_header/service_navigation/service_list.hbs +1 -1
  8. package/dist/views/components/site_header/service_navigation/service_navigation_item.hbs +1 -1
  9. package/dist/views/components/teaser/components/teaser_comments.hbs +1 -1
  10. package/dist/views/components/teaser/podcast/podcast_subscribe_button.hbs +1 -1
  11. package/dist/views_static/components/content/social_media_links/social_media_links.hbs +2 -2
  12. package/dist/views_static/components/site_header/header.hbs +7 -7
  13. package/dist/views_static/components/site_header/navigation_flyout/navigation_flyout.hbs +4 -4
  14. package/dist/views_static/components/site_header/navigation_search/quick_search_form.hbs +1 -1
  15. package/dist/views_static/components/site_header/service_navigation/service_list.hbs +1 -1
  16. package/dist/views_static/components/site_header/service_navigation/service_navigation_item.hbs +1 -1
  17. package/dist/views_static/components/teaser/components/teaser_comments.hbs +1 -1
  18. package/dist/views_static/components/teaser/podcast/podcast_subscribe_button.hbs +1 -1
  19. package/package.json +1 -1
  20. package/src/assets/css/custom-components.css +1 -1
  21. package/src/assets/tailwind.css +22 -1
  22. package/src/stories/conventions-and-datastructure.mdx +18 -1
  23. package/src/stories/views/components/content/social_media_links/social_media_links.hbs +2 -2
  24. package/src/stories/views/components/site_header/header.hbs +7 -7
  25. package/src/stories/views/components/site_header/navigation_flyout/navigation_flyout.hbs +4 -4
  26. package/src/stories/views/components/site_header/navigation_search/quick_search_form.hbs +1 -1
  27. package/src/stories/views/components/site_header/service_navigation/service_list.hbs +1 -1
  28. package/src/stories/views/components/site_header/service_navigation/service_navigation_item.hbs +1 -1
  29. package/src/stories/views/components/teaser/components/teaser_comments.hbs +1 -1
  30. package/src/stories/views/components/teaser/podcast/podcast_subscribe_button.hbs +1 -1
  31. package/tailwind.config.js +5 -13
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v1.34.4 (Wed Jul 26 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - Dpe 2272 [#690](https://github.com/mumprod/hr-design-system-handlebars/pull/690) ([@vascoeduardo](https://github.com/vascoeduardo))
6
+
7
+ #### Authors: 1
8
+
9
+ - Vasco ([@vascoeduardo](https://github.com/vascoeduardo))
10
+
11
+ ---
12
+
13
+ # v1.34.3 (Wed Jul 26 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - DPE-2311 Z-Index konsolidieren [#664](https://github.com/mumprod/hr-design-system-handlebars/pull/664) ([@Sunny1112358](https://github.com/Sunny1112358))
18
+
19
+ #### Authors: 1
20
+
21
+ - [@Sunny1112358](https://github.com/Sunny1112358)
22
+
23
+ ---
24
+
1
25
  # v1.34.2 (Wed Jul 26 2023)
2
26
 
3
27
  #### 🐛 Bug Fix
@@ -915,7 +915,7 @@ video {
915
915
  }
916
916
  /* ---------------- NAV DROPDOWN - CONTENT ------------------ */
917
917
  .content-nav-dropdown_content.-isOpen {
918
- z-index: 9999;
918
+ z-index: 100;
919
919
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
920
920
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
921
921
  box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
@@ -1096,8 +1096,8 @@ video {
1096
1096
  .top-full {
1097
1097
  top: 100%;
1098
1098
  }
1099
- .-z-1000 {
1100
- z-index: -1000;
1099
+ .-z-40 {
1100
+ z-index: -40;
1101
1101
  }
1102
1102
  .z-10 {
1103
1103
  z-index: 10;
@@ -1105,20 +1105,17 @@ video {
1105
1105
  .z-100 {
1106
1106
  z-index: 100;
1107
1107
  }
1108
- .z-10000 {
1109
- z-index: 10000;
1110
- }
1111
- .z-10001 {
1112
- z-index: 10001;
1108
+ .z-110 {
1109
+ z-index: 110;
1113
1110
  }
1114
- .z-10002 {
1115
- z-index: 10002;
1111
+ .z-120 {
1112
+ z-index: 120;
1116
1113
  }
1117
1114
  .z-20 {
1118
1115
  z-index: 20;
1119
1116
  }
1120
- .z-9999 {
1121
- z-index: 9999;
1117
+ .z-30 {
1118
+ z-index: 30;
1122
1119
  }
1123
1120
  .order-1 {
1124
1121
  order: 1;
@@ -2736,6 +2733,10 @@ video {
2736
2733
  color: #006dc1;
2737
2734
  color: var(--color-subline);
2738
2735
  }
2736
+ .text-text {
2737
+ color: #000;
2738
+ color: var(--color-standard-text);
2739
+ }
2739
2740
  .text-tickerTeaserFooter {
2740
2741
  color: #ffffff;
2741
2742
  color: var(--color-ticker-teaser-footer);
@@ -2944,7 +2945,7 @@ video {
2944
2945
  border-bottom-color: var(--color-secondary-ds);
2945
2946
  }
2946
2947
  .counter-reset {
2947
- counter-reset: cnt1690365962927;
2948
+ counter-reset: cnt1690381863847;
2948
2949
  }
2949
2950
  .hyphens-auto {
2950
2951
  -webkit-hyphens: auto;
@@ -3179,7 +3180,7 @@ video {
3179
3180
  --tw-ring-color: rgba(255, 255, 255, 0.5);
3180
3181
  }
3181
3182
  .-ordered {
3182
- counter-increment: cnt1690365962927 1;
3183
+ counter-increment: cnt1690381863847 1;
3183
3184
  }
3184
3185
  .-ordered::before {
3185
3186
  position: absolute;
@@ -3195,7 +3196,7 @@ video {
3195
3196
  letter-spacing: .0125em;
3196
3197
  --tw-text-opacity: 1;
3197
3198
  color: rgba(0, 0, 0, var(--tw-text-opacity));
3198
- content: counter(cnt1690365962927);
3199
+ content: counter(cnt1690381863847);
3199
3200
  }
3200
3201
  /*! ****************************/
3201
3202
  /*! text-shadow */
@@ -3271,6 +3272,9 @@ video {
3271
3272
  --color-highlight-2: #d34600;
3272
3273
  --color-highlight-3: #707070;
3273
3274
 
3275
+ /* Text */
3276
+ --color-standard-text: #000;
3277
+ --color-standard-text-dark: #F0F0F0;
3274
3278
  /* Navigation Hintergrund */
3275
3279
  --color-navigation-bg: #005293;
3276
3280
  --color-brandnavigation-bg: #fff;
@@ -3346,6 +3350,7 @@ video {
3346
3350
  --color-subline: var(--color-topline);
3347
3351
  /* Link */
3348
3352
  --color-link: #006eb7;
3353
+ --color-link-dark: #006eb7;
3349
3354
  /* Stage */
3350
3355
  --color-stage-text-box: 0 110 183;
3351
3356
  --color-stage-text: #ffffff;
@@ -3394,6 +3399,10 @@ video {
3394
3399
  --color-highlight-2: #d34600;
3395
3400
  --color-highlight-3: #005293;
3396
3401
 
3402
+ /* Text */
3403
+ --color-standard-text: #000;
3404
+ --color-standard-text-dark: #d8e9f6;
3405
+
3397
3406
  /* Logo-Container Padding */
3398
3407
  --logo-padding-top: 6px;
3399
3408
  --logo-padding-bottom: 6px;
@@ -3440,6 +3449,7 @@ video {
3440
3449
  --color-subline: var(--color-topline);
3441
3450
  /* Link */
3442
3451
  --color-link: #006dc1;
3452
+ --color-link-dark: #199bff;
3443
3453
  /*Stage */
3444
3454
  --color-stage-text-box: 67 61 55;
3445
3455
  --color-stage-primary: #005293;
@@ -3516,6 +3526,7 @@ video {
3516
3526
  --color-subline: var(--color-topline);
3517
3527
  /* Link */
3518
3528
  --color-link: #a00d65;
3529
+ --color-link-dark: #a00d65;
3519
3530
  /* Stage */
3520
3531
  --color-stage-text-box: 234 237 237;
3521
3532
  --color-stage-text: #000000;
@@ -3586,6 +3597,7 @@ video {
3586
3597
  --color-subline: var(--color-topline);
3587
3598
  /* Link */
3588
3599
  --color-link: #276b9e;
3600
+ --color-link-dark: #276b9e;
3589
3601
  /* Stage */
3590
3602
  --color-stage-text-box: 0 55 93;
3591
3603
  --color-stage-primary: #00375d;
@@ -3658,6 +3670,7 @@ video {
3658
3670
  --color-subline: var(--color-topline);
3659
3671
  /* Link */
3660
3672
  --color-link: #006eb7;
3673
+ --color-link-dark: #006eb7;
3661
3674
  /* Stage */
3662
3675
  --color-stage-text-box: 0 110 183;
3663
3676
  --color-stage-primary: #006eb7;
@@ -3724,6 +3737,7 @@ video {
3724
3737
  --color-subline: var(--color-topline);
3725
3738
  /* Link */
3726
3739
  --color-link: var(--color-primary-ds);
3740
+ --color-link-dark: var(--color-primary-ds);
3727
3741
  /* Stage */
3728
3742
  --color-stage-text-box: 0 110 183;
3729
3743
  --color-stage-primary: var(--color-primary-ds);
@@ -3804,6 +3818,7 @@ video {
3804
3818
  --color-subline: var(--color-topline);
3805
3819
  /* Link */
3806
3820
  --color-link: #AB2F2D;
3821
+ --color-link-dark: #AB2F2D;
3807
3822
  /* Stage */
3808
3823
  --color-stage-text-box: 141 39 37;
3809
3824
  --color-stage-primary: var(--color-primary-ds);
@@ -3884,6 +3899,7 @@ video {
3884
3899
  --color-subline: var(--color-topline);
3885
3900
  /* Link */
3886
3901
  --color-link: #007A7C;
3902
+ --color-link-dark: #007A7C;
3887
3903
  /* Stage */
3888
3904
  --color-stage-text-box: 67 61 55;
3889
3905
  --color-stage-primary: #00646f;
@@ -3960,6 +3976,7 @@ video {
3960
3976
  --color-subline: var(--color-topline);
3961
3977
  /* Link */
3962
3978
  --color-link: var(--color-primary-ds);
3979
+ --color-link-dark: var(--color-primary-ds);
3963
3980
  /* Stage */
3964
3981
  --color-stage-text-box: 0 110 183;
3965
3982
  --color-stage-primary: var(--color-primary-ds);
@@ -4039,6 +4056,7 @@ video {
4039
4056
  --color-subline: #916B00;
4040
4057
  /* Link */
4041
4058
  --color-link: #916B00;
4059
+ --color-link-dark: #916B00;
4042
4060
  /* Stage */
4043
4061
  --color-stage-text-box: 67 61 55;
4044
4062
  --color-stage-primary: #e0ae00;
@@ -4119,6 +4137,7 @@ video {
4119
4137
  --color-subline: var(--color-topline);
4120
4138
  /* Link */
4121
4139
  --color-link: #8C033D;
4140
+ --color-link-dark: #8C033D;
4122
4141
  /* Stage */
4123
4142
  --color-stage-text-box: 255 255 255;
4124
4143
  --color-stage-primary: var(--color-primary-ds);
@@ -4209,6 +4228,7 @@ video {
4209
4228
  --color-subline: var(--color-topline);
4210
4229
  /* Link */
4211
4230
  --color-link: var(--color-primary-ds);
4231
+ --color-link-dark: var(--color-primary-ds);
4212
4232
  /* Stage */
4213
4233
  --color-stage-text-box: 255 255 255;
4214
4234
  --color-stage-primary: var(--color-primary-ds);
@@ -4296,6 +4316,7 @@ video {
4296
4316
  --color-subline: var(--color-topline);
4297
4317
  /* Link */
4298
4318
  --color-link: #0F6157;
4319
+ --color-link-dark: #0F6157;
4299
4320
  /* Stage */
4300
4321
  --color-stage-text-box: 255 255 255;
4301
4322
  --color-stage-primary: #168378;
@@ -4375,6 +4396,7 @@ video {
4375
4396
  --color-subline: var(--color-topline);
4376
4397
  /* Link */
4377
4398
  --color-link: #006783;
4399
+ --color-link-dark: #006783;
4378
4400
  /* Stage */
4379
4401
  --color-stage-text-box: 255 255 255;
4380
4402
  --color-stage-primary: #f2da6c;
@@ -4717,6 +4739,66 @@ video {
4717
4739
  .after\:col-full::after {
4718
4740
  grid-column: full;
4719
4741
  }
4742
+ @media (color-index: 48) {
4743
+
4744
+ .dark\:text-link-dark {
4745
+ color: #006eb7;
4746
+ color: var(--color-link-dark);
4747
+ }
4748
+
4749
+ .dark\:text-text-dark {
4750
+ color: #F0F0F0;
4751
+ color: var(--color-standard-text-dark);
4752
+ }
4753
+ }
4754
+ @media (color: 48842621) {
4755
+
4756
+ .dark\:text-link-dark {
4757
+ color: #006eb7;
4758
+ color: var(--color-link-dark);
4759
+ }
4760
+
4761
+ .dark\:text-text-dark {
4762
+ color: #F0F0F0;
4763
+ color: var(--color-standard-text-dark);
4764
+ }
4765
+ }
4766
+ @media (color-index: 48) {
4767
+
4768
+ .dark\:text-link-dark {
4769
+ color: #006eb7;
4770
+ color: var(--color-link-dark);
4771
+ }
4772
+
4773
+ .dark\:text-text-dark {
4774
+ color: #F0F0F0;
4775
+ color: var(--color-standard-text-dark);
4776
+ }
4777
+ }
4778
+ @media (color: 48842621) {
4779
+
4780
+ .dark\:text-link-dark {
4781
+ color: #006eb7;
4782
+ color: var(--color-link-dark);
4783
+ }
4784
+
4785
+ .dark\:text-text-dark {
4786
+ color: #F0F0F0;
4787
+ color: var(--color-standard-text-dark);
4788
+ }
4789
+ }
4790
+ @media (prefers-color-scheme: dark) {
4791
+
4792
+ .dark\:text-link-dark {
4793
+ color: #006eb7;
4794
+ color: var(--color-link-dark);
4795
+ }
4796
+
4797
+ .dark\:text-text-dark {
4798
+ color: #F0F0F0;
4799
+ color: var(--color-standard-text-dark);
4800
+ }
4801
+ }
4720
4802
  @media print {
4721
4803
 
4722
4804
  .print\:flex {
@@ -4985,8 +5067,8 @@ video {
4985
5067
  top: auto;
4986
5068
  }
4987
5069
 
4988
- .md\:z-10000 {
4989
- z-index: 10000;
5070
+ .md\:z-100 {
5071
+ z-index: 100;
4990
5072
  }
4991
5073
 
4992
5074
  .md\:order-2 {
@@ -1,10 +1,10 @@
1
1
  {{#with this.socialMediaLinks }}
2
2
  <div class="flex">
3
- <span class="mr-2 font-bold whitespace-nowrap">{{~loca "social_media_links_text"~}}</span>
3
+ <span class="mr-2 font-bold whitespace-nowrap text-text dark:text-text-dark">{{~loca "social_media_links_text"~}}</span>
4
4
  <ul class="inline">
5
5
  {{~#each this~}}
6
6
  <li class="inline mr-1">
7
- {{~#> components/base/link _link=this.link _css="underline text-link" ~}}
7
+ {{~#> components/base/link _link=this.link _css="underline text-link dark:text-link-dark" ~}}
8
8
  {{~this.linkText~}}
9
9
  {{~#if this.link.hasIcon~}}
10
10
  {{~> components/base/image/icon _icon=this.link.iconName _iconmap="icons" _addClass="inline -mt-0.5 w-5 h-5 fill-current"~}}
@@ -1,5 +1,5 @@
1
1
  <div class="sb-main-navigation" x-data="mainNavigationHandler()" x-init="{{#if _useSticky}}start(){{/if}}">
2
- <header class="print:hidden relative z-10001 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
2
+ <header class="print:hidden relative z-110 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
3
3
  <div x-data
4
4
  id="headerWrapper"
5
5
  @resize.window="resetNav()"
@@ -13,16 +13,16 @@
13
13
  </div>
14
14
 
15
15
  <div id="brandNavWrapper"
16
- class="box-content relative flex items-center justify-center order-1 w-full bg-white border-b border-brandnavigation-border-color z-10001">
16
+ class="box-content relative flex items-center justify-center order-1 w-full bg-white border-b border-brandnavigation-border-color z-110">
17
17
  {{> components/site_header/brand_navigation/brand_navigation }}
18
18
  </div>
19
19
 
20
20
  <div id="serviceNavWrapper"
21
21
  :class="shouldServiceNavBeHidden() ? '-mt-40' : ''"
22
22
 
23
- class="relative flex justify-center order-2 w-full transition-all duration-500 ease-in-out border-b border-navigation-border-color bg-navigation-bg z-10002">
23
+ class="relative flex justify-center order-2 w-full transition-all duration-500 ease-in-out border-b border-navigation-border-color bg-navigation-bg z-120">
24
24
  <div id="serviceNavMainContainer"
25
- class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-10001">
25
+ class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-110">
26
26
 
27
27
  <span id="serviceNavHeadline" class="hidden print:hidden">Service Navigation</span>
28
28
 
@@ -54,7 +54,7 @@
54
54
  x-ref="sectionnavigation"
55
55
  @toggle-sectionnav.window="toggleSectionNav"
56
56
  :class="shouldSectionNavBeHidden() ? '-mt-40 md:-mt-40 lg:-mt-40' : ''"
57
- class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:border-navigation-border-color [border-image-source:var(--border-navigation-border-image)] [border-image-slice:1] lg:border-b-navigation-border-width lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-navigation-bg z-10000 print:hidden"
57
+ class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:border-navigation-border-color [border-image-source:var(--border-navigation-border-image)] [border-image-slice:1] lg:border-b-navigation-border-width lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-navigation-bg z-100 print:hidden"
58
58
  >
59
59
  {{> components/site_header/section_navigation/section_navigation }}
60
60
  </div>
@@ -62,7 +62,7 @@
62
62
  <div x-cloak :class="shouldServiceNavBeHidden() ? 'hidden -mt-40' : ''"
63
63
  x-effect="$el.setAttribute('id', 'flyout-' + $store.searchID.current + '-2');$el.setAttribute('aria-expanded', $store.searchFieldOpen);$el.setAttribute('aria-hidden', !$store.searchFieldOpen);$el.setAttribute('aria-labelledby', 'flyout-' + $store.searchID.current + '-1')"
64
64
  x-show="$store.searchFieldOpen"
65
- class="sb-quick-search-flyout flex tablet:w-half-screen tablet:ml-half-screen justify-end order-4 w-full max-w-full p-2 px-5 py-3.5 bg-white drop-shadow-md md:mt-0 z-10002 lg:hidden print:hidden"
65
+ class="sb-quick-search-flyout flex tablet:w-half-screen tablet:ml-half-screen justify-end order-4 w-full max-w-full p-2 px-5 py-3.5 bg-white drop-shadow-md md:mt-0 z-120 lg:hidden print:hidden"
66
66
  @search-close.window="$store.searchFieldOpen = false"
67
67
  @click.outside="$store.searchFieldOpen = false; $dispatch('search-mobile-click-outside'); dropped = false; toggleScrolling(!$store.serviceNavIsOpensearchFieldOpen && !$store.burgeropen)"
68
68
  x-transition:enter="transition ease-out duration-200"
@@ -85,6 +85,6 @@
85
85
  />
86
86
  </div>
87
87
  <div x-ref="myOverlay">
88
- <div x-cloak x-data="overlayHandler()" @click.debounce="overlayWasClicked()" x-show="shouldOverlayBeShown()" class="fixed top-0 left-0 w-screen h-screen bg-gray-800 z-10000 lg:hidden opacity-70"></div>
88
+ <div x-cloak x-data="overlayHandler()" @click.debounce="overlayWasClicked()" x-show="shouldOverlayBeShown()" class="fixed top-0 left-0 w-screen h-screen bg-gray-800 z-100 lg:hidden opacity-70"></div>
89
89
  </div>
90
90
  </div>
@@ -11,10 +11,10 @@
11
11
  {{~#if ../_isSectionNav}} relative md:top-auto md:left-auto lg:mt-10 w-full transition-all duration-500 ease-in-out
12
12
  {{#unless this.showAsFlyout}}
13
13
  {{#if ../this.selected}}
14
- isSelectedAndOpen lg:ml-0 z-10000 lg:border-b lg:border-primary lg:filter-none lg:left-0 flex justify-center
15
- {{else}} z-10002 lg:left-auto lg:w-auto {{/if}}
16
- {{else}} z-10002 lg:left-auto lg:w-auto divide-y divide-gray-200{{/unless}}
17
- {{else}} z-10002 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
14
+ isSelectedAndOpen lg:ml-0 z-100 lg:border-b lg:border-primary lg:filter-none lg:left-0 flex justify-center
15
+ {{else}} z-120 lg:left-auto lg:w-auto {{/if}}
16
+ {{else}} z-120 lg:left-auto lg:w-auto divide-y divide-gray-200{{/unless}}
17
+ {{else}} z-120 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
18
18
  {{~#if this.showAsFlyout}} lg:rounded-b lg:px-4 lg:absolute{{else}} lg:fixed{{/if}}"
19
19
 
20
20
  aria-labelledby="flyout-{{getRandom}}-1"
@@ -65,7 +65,7 @@
65
65
  <button
66
66
  aria-label='{{loca "search_input_aria_submit" }}'
67
67
  type="submit"
68
- class="pl-3 pr-2 border-l cursor-pointer lg:search-border-desktop lg:rounded-r link-focus-inset bg-primary lg:bg-white text-primary z-10002"
68
+ class="pl-3 pr-2 border-l cursor-pointer lg:search-border-desktop lg:rounded-r link-focus-inset bg-primary lg:bg-white text-primary z-120"
69
69
  >
70
70
  <svg class="w-6 h-6 text-white fill-current bg-primary lg:fill-current lg:text-primary lg:bg-white"
71
71
  xmlns="http://www.w3.org/2000/svg"
@@ -3,7 +3,7 @@
3
3
  @click.outside="$store.serviceNavIsOpen = false; toggleScrolling(!$store.searchFieldOpen && !$store.burgeropen)"
4
4
  x-ref="serviceList"
5
5
  :class="shouldServiceIconsBeHidden() ? '-mt-40' : ''"
6
- class="absolute left-0 flex justify-center flex-initial w-full h-10 max-w-full align-top duration-500 ease-in-out border-b border-navigation-border-color sb-service-list transition-margin-top -z-1000 md:z-10000 md:h-12 top-[41px] bg-navigation-bg md:border-0 md:top-auto md:w-auto md:left-auto md:static md:justify-end md:flex md:flex-auto lg:h-16 lg:pl-0 lg:pr-4 lg:w-3/4 "
6
+ class="absolute left-0 flex justify-center flex-initial w-full h-10 max-w-full align-top duration-500 ease-in-out border-b border-navigation-border-color sb-service-list transition-margin-top -z-40 md:z-100 md:h-12 top-[41px] bg-navigation-bg md:border-0 md:top-auto md:w-auto md:left-auto md:static md:justify-end md:flex md:flex-auto lg:h-16 lg:pl-0 lg:pr-4 lg:w-3/4 "
7
7
  >
8
8
  {{#with this.serviceNavigationSSILinks}}
9
9
  <ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
@@ -35,7 +35,7 @@
35
35
  <span class="sr-only lg:hidden">{{this.text}}</span>
36
36
  </div>
37
37
 
38
- <div :class="{'text-primary fill-current': dropped,'text-navigation-icons fill-white': !dropped}" class="relative flex-row items-center justify-center hidden pt-px text-navigation-icons lg:flex z-10002">
38
+ <div :class="{'text-primary fill-current': dropped,'text-navigation-icons fill-white': !dropped}" class="relative flex-row items-center justify-center hidden pt-px text-navigation-icons lg:flex z-120">
39
39
  <div class="flex" >
40
40
  <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
@@ -1,5 +1,5 @@
1
1
  {{#if this.commentLink}}
2
- <span class="relative whitespace-nowrap z-100">
2
+ <span class="relative whitespace-nowrap z-30">
3
3
  {{#> components/base/link _link=this.commentLink.link _css="hover:underline decoration-1" _isAriaHidden=true}}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
@@ -16,7 +16,7 @@
16
16
  x-on:keydown.escape.prevent.stop="close($refs.button)"
17
17
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
18
18
  x-id="['dropdown-button']"
19
- class="relative h-10 z-9999"
19
+ class="relative h-10 z-100"
20
20
  >
21
21
 
22
22
  {{!-- Button --}}
@@ -1,10 +1,10 @@
1
1
  {{#with this.socialMediaLinks }}
2
2
  <div class="flex">
3
- <span class="mr-2 font-bold whitespace-nowrap">{{~loca "social_media_links_text"~}}</span>
3
+ <span class="mr-2 font-bold whitespace-nowrap text-text dark:text-text-dark">{{~loca "social_media_links_text"~}}</span>
4
4
  <ul class="inline">
5
5
  {{~#each this~}}
6
6
  <li class="inline mr-1">
7
- {{~#> components/base/link _link=this.link _css="underline text-link" ~}}
7
+ {{~#> components/base/link _link=this.link _css="underline text-link dark:text-link-dark" ~}}
8
8
  {{~this.linkText~}}
9
9
  {{~#if this.link.hasIcon~}}
10
10
  {{~> components/base/image/icon _icon=this.link.iconName _iconmap="icons" _addClass="inline -mt-0.5 w-5 h-5 fill-current"~}}
@@ -1,5 +1,5 @@
1
1
  <div class="sb-main-navigation" x-data="mainNavigationHandler()" x-init="{{#if _useSticky}}start(){{/if}}">
2
- <header class="print:hidden relative z-10001 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
2
+ <header class="print:hidden relative z-110 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
3
3
  <div x-data
4
4
  id="headerWrapper"
5
5
  @resize.window="resetNav()"
@@ -13,16 +13,16 @@
13
13
  </div>
14
14
 
15
15
  <div id="brandNavWrapper"
16
- class="box-content relative flex items-center justify-center order-1 w-full bg-white border-b border-brandnavigation-border-color z-10001">
16
+ class="box-content relative flex items-center justify-center order-1 w-full bg-white border-b border-brandnavigation-border-color z-110">
17
17
  {{> components/site_header/brand_navigation/brand_navigation }}
18
18
  </div>
19
19
 
20
20
  <div id="serviceNavWrapper"
21
21
  :class="shouldServiceNavBeHidden() ? '-mt-40' : ''"
22
22
 
23
- class="relative flex justify-center order-2 w-full transition-all duration-500 ease-in-out border-b border-navigation-border-color bg-navigation-bg z-10002">
23
+ class="relative flex justify-center order-2 w-full transition-all duration-500 ease-in-out border-b border-navigation-border-color bg-navigation-bg z-120">
24
24
  <div id="serviceNavMainContainer"
25
- class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-10001">
25
+ class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-110">
26
26
 
27
27
  <span id="serviceNavHeadline" class="hidden print:hidden">Service Navigation</span>
28
28
 
@@ -54,7 +54,7 @@
54
54
  x-ref="sectionnavigation"
55
55
  @toggle-sectionnav.window="toggleSectionNav"
56
56
  :class="shouldSectionNavBeHidden() ? '-mt-40 md:-mt-40 lg:-mt-40' : ''"
57
- class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:border-navigation-border-color [border-image-source:var(--border-navigation-border-image)] [border-image-slice:1] lg:border-b-navigation-border-width lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-navigation-bg z-10000 print:hidden"
57
+ class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:border-navigation-border-color [border-image-source:var(--border-navigation-border-image)] [border-image-slice:1] lg:border-b-navigation-border-width lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-navigation-bg z-100 print:hidden"
58
58
  >
59
59
  {{> components/site_header/section_navigation/section_navigation }}
60
60
  </div>
@@ -62,7 +62,7 @@
62
62
  <div x-cloak :class="shouldServiceNavBeHidden() ? 'hidden -mt-40' : ''"
63
63
  x-effect="$el.setAttribute('id', 'flyout-' + $store.searchID.current + '-2');$el.setAttribute('aria-expanded', $store.searchFieldOpen);$el.setAttribute('aria-hidden', !$store.searchFieldOpen);$el.setAttribute('aria-labelledby', 'flyout-' + $store.searchID.current + '-1')"
64
64
  x-show="$store.searchFieldOpen"
65
- class="sb-quick-search-flyout flex tablet:w-half-screen tablet:ml-half-screen justify-end order-4 w-full max-w-full p-2 px-5 py-3.5 bg-white drop-shadow-md md:mt-0 z-10002 lg:hidden print:hidden"
65
+ class="sb-quick-search-flyout flex tablet:w-half-screen tablet:ml-half-screen justify-end order-4 w-full max-w-full p-2 px-5 py-3.5 bg-white drop-shadow-md md:mt-0 z-120 lg:hidden print:hidden"
66
66
  @search-close.window="$store.searchFieldOpen = false"
67
67
  @click.outside="$store.searchFieldOpen = false; $dispatch('search-mobile-click-outside'); dropped = false; toggleScrolling(!$store.serviceNavIsOpensearchFieldOpen && !$store.burgeropen)"
68
68
  x-transition:enter="transition ease-out duration-200"
@@ -85,6 +85,6 @@
85
85
  />
86
86
  </div>
87
87
  <div x-ref="myOverlay">
88
- <div x-cloak x-data="overlayHandler()" @click.debounce="overlayWasClicked()" x-show="shouldOverlayBeShown()" class="fixed top-0 left-0 w-screen h-screen bg-gray-800 z-10000 lg:hidden opacity-70"></div>
88
+ <div x-cloak x-data="overlayHandler()" @click.debounce="overlayWasClicked()" x-show="shouldOverlayBeShown()" class="fixed top-0 left-0 w-screen h-screen bg-gray-800 z-100 lg:hidden opacity-70"></div>
89
89
  </div>
90
90
  </div>
@@ -11,10 +11,10 @@
11
11
  {{~#if ../_isSectionNav}} relative md:top-auto md:left-auto lg:mt-10 w-full transition-all duration-500 ease-in-out
12
12
  {{#unless this.showAsFlyout}}
13
13
  {{#if ../this.selected}}
14
- isSelectedAndOpen lg:ml-0 z-10000 lg:border-b lg:border-primary lg:filter-none lg:left-0 flex justify-center
15
- {{else}} z-10002 lg:left-auto lg:w-auto {{/if}}
16
- {{else}} z-10002 lg:left-auto lg:w-auto divide-y divide-gray-200{{/unless}}
17
- {{else}} z-10002 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
14
+ isSelectedAndOpen lg:ml-0 z-100 lg:border-b lg:border-primary lg:filter-none lg:left-0 flex justify-center
15
+ {{else}} z-120 lg:left-auto lg:w-auto {{/if}}
16
+ {{else}} z-120 lg:left-auto lg:w-auto divide-y divide-gray-200{{/unless}}
17
+ {{else}} z-120 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
18
18
  {{~#if this.showAsFlyout}} lg:rounded-b lg:px-4 lg:absolute{{else}} lg:fixed{{/if}}"
19
19
 
20
20
  aria-labelledby="flyout-{{getRandom}}-1"
@@ -65,7 +65,7 @@
65
65
  <button
66
66
  aria-label='{{loca "search_input_aria_submit" }}'
67
67
  type="submit"
68
- class="pl-3 pr-2 border-l cursor-pointer lg:search-border-desktop lg:rounded-r link-focus-inset bg-primary lg:bg-white text-primary z-10002"
68
+ class="pl-3 pr-2 border-l cursor-pointer lg:search-border-desktop lg:rounded-r link-focus-inset bg-primary lg:bg-white text-primary z-120"
69
69
  >
70
70
  <svg class="w-6 h-6 text-white fill-current bg-primary lg:fill-current lg:text-primary lg:bg-white"
71
71
  xmlns="http://www.w3.org/2000/svg"
@@ -3,7 +3,7 @@
3
3
  @click.outside="$store.serviceNavIsOpen = false; toggleScrolling(!$store.searchFieldOpen && !$store.burgeropen)"
4
4
  x-ref="serviceList"
5
5
  :class="shouldServiceIconsBeHidden() ? '-mt-40' : ''"
6
- class="absolute left-0 flex justify-center flex-initial w-full h-10 max-w-full align-top duration-500 ease-in-out border-b border-navigation-border-color sb-service-list transition-margin-top -z-1000 md:z-10000 md:h-12 top-[41px] bg-navigation-bg md:border-0 md:top-auto md:w-auto md:left-auto md:static md:justify-end md:flex md:flex-auto lg:h-16 lg:pl-0 lg:pr-4 lg:w-3/4 "
6
+ class="absolute left-0 flex justify-center flex-initial w-full h-10 max-w-full align-top duration-500 ease-in-out border-b border-navigation-border-color sb-service-list transition-margin-top -z-40 md:z-100 md:h-12 top-[41px] bg-navigation-bg md:border-0 md:top-auto md:w-auto md:left-auto md:static md:justify-end md:flex md:flex-auto lg:h-16 lg:pl-0 lg:pr-4 lg:w-3/4 "
7
7
  >
8
8
  {{#with this.serviceNavigationSSILinks}}
9
9
  <ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
@@ -35,7 +35,7 @@
35
35
  <span class="sr-only lg:hidden">{{this.text}}</span>
36
36
  </div>
37
37
 
38
- <div :class="{'text-primary fill-current': dropped,'text-navigation-icons fill-white': !dropped}" class="relative flex-row items-center justify-center hidden pt-px text-navigation-icons lg:flex z-10002">
38
+ <div :class="{'text-primary fill-current': dropped,'text-navigation-icons fill-white': !dropped}" class="relative flex-row items-center justify-center hidden pt-px text-navigation-icons lg:flex z-120">
39
39
  <div class="flex" >
40
40
  <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
@@ -1,5 +1,5 @@
1
1
  {{#if this.commentLink}}
2
- <span class="relative whitespace-nowrap z-100">
2
+ <span class="relative whitespace-nowrap z-30">
3
3
  {{#> components/base/link _link=this.commentLink.link _css="hover:underline decoration-1" _isAriaHidden=true}}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
@@ -16,7 +16,7 @@
16
16
  x-on:keydown.escape.prevent.stop="close($refs.button)"
17
17
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
18
18
  x-id="['dropdown-button']"
19
- class="relative h-10 z-9999"
19
+ class="relative h-10 z-100"
20
20
  >
21
21
 
22
22
  {{!-- Button --}}
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "1.34.2",
9
+ "version": "1.34.4",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -249,7 +249,7 @@
249
249
  }
250
250
  /* ---------------- NAV DROPDOWN - CONTENT ------------------ */
251
251
  .content-nav-dropdown_content.-isOpen {
252
- @apply z-9999;
252
+ @apply z-100;
253
253
  @apply shadow-lg;
254
254
  }
255
255
 
@@ -14,6 +14,9 @@
14
14
  --color-highlight-2: theme('colors.orange.spicyCarrot');
15
15
  --color-highlight-3: theme('colors.gray.dark');
16
16
 
17
+ /* Text */
18
+ --color-standard-text: #000;
19
+ --color-standard-text-dark: #F0F0F0;
17
20
  /* Navigation Hintergrund */
18
21
  --color-navigation-bg: theme('colors.blue.congress');
19
22
  --color-brandnavigation-bg: #fff;
@@ -89,6 +92,7 @@
89
92
  --color-subline: var(--color-topline);
90
93
  /* Link */
91
94
  --color-link: theme('colors.blue.deepCerulean');
95
+ --color-link-dark: theme('colors.blue.deepCerulean');
92
96
  /* Stage */
93
97
  --color-stage-text-box: 0 110 183;
94
98
  --color-stage-text: theme('colors.white.DEFAULT');
@@ -138,6 +142,10 @@
138
142
  --color-highlight-2: theme('colors.orange.spicyCarrot');
139
143
  --color-highlight-3: theme('colors.blue.congress');
140
144
 
145
+ /* Text */
146
+ --color-standard-text: #000;
147
+ --color-standard-text-dark: #d8e9f6;
148
+
141
149
  /* Logo-Container Padding */
142
150
  --logo-padding-top: 6px;
143
151
  --logo-padding-bottom: 6px;
@@ -179,11 +187,12 @@
179
187
  /* Eventkalender */
180
188
  --color-eventcalendar-primary: var(--color-primary-ds);
181
189
  /* Dachzeile */
182
- --color-topline: #006dc1;
190
+ --color-topline: theme('colors.blue.science');
183
191
  /* Subline */
184
192
  --color-subline: var(--color-topline);
185
193
  /* Link */
186
194
  --color-link: theme('colors.blue.science');
195
+ --color-link-dark: #199bff;
187
196
  /*Stage */
188
197
  --color-stage-text-box: 67 61 55;
189
198
  --color-stage-primary: theme('colors.blue.congress');
@@ -262,6 +271,7 @@
262
271
  --color-subline: var(--color-topline);
263
272
  /* Link */
264
273
  --color-link: theme('colors.purple.jazzberry');
274
+ --color-link-dark: theme('colors.purple.jazzberry');
265
275
  /* Stage */
266
276
  --color-stage-text-box: 234 237 237;
267
277
  --color-stage-text: theme('colors.black.DEFAULT');
@@ -333,6 +343,7 @@
333
343
  --color-subline: var(--color-topline);
334
344
  /* Link */
335
345
  --color-link: theme('colors.blue.jellyBean');
346
+ --color-link-dark: theme('colors.blue.jellyBean');
336
347
  /* Stage */
337
348
  --color-stage-text-box: 0 55 93;
338
349
  --color-stage-primary: theme('colors.blue.astronautBlue');
@@ -406,6 +417,7 @@
406
417
  --color-subline: var(--color-topline);
407
418
  /* Link */
408
419
  --color-link: theme('colors.blue.deepCerulean');
420
+ --color-link-dark: theme('colors.blue.deepCerulean');
409
421
  /* Stage */
410
422
  --color-stage-text-box: 0 110 183;
411
423
  --color-stage-primary: theme('colors.blue.deepCerulean');
@@ -473,6 +485,7 @@
473
485
  --color-subline: var(--color-topline);
474
486
  /* Link */
475
487
  --color-link: var(--color-primary-ds);
488
+ --color-link-dark: var(--color-primary-ds);
476
489
  /* Stage */
477
490
  --color-stage-text-box: 0 110 183;
478
491
  --color-stage-primary: var(--color-primary-ds);
@@ -554,6 +567,7 @@
554
567
  --color-subline: var(--color-topline);
555
568
  /* Link */
556
569
  --color-link: theme('colors.red.wellRead');
570
+ --color-link-dark: theme('colors.red.wellRead');
557
571
  /* Stage */
558
572
  --color-stage-text-box: 141 39 37;
559
573
  --color-stage-primary: var(--color-primary-ds);
@@ -635,6 +649,7 @@
635
649
  --color-subline: var(--color-topline);
636
650
  /* Link */
637
651
  --color-link: theme('colors.green.teal');
652
+ --color-link-dark: theme('colors.green.teal');
638
653
  /* Stage */
639
654
  --color-stage-text-box: 67 61 55;
640
655
  --color-stage-primary: theme('colors.blue.blueStone');
@@ -712,6 +727,7 @@
712
727
  --color-subline: var(--color-topline);
713
728
  /* Link */
714
729
  --color-link: var(--color-primary-ds);
730
+ --color-link-dark: var(--color-primary-ds);
715
731
  /* Stage */
716
732
  --color-stage-text-box: 0 110 183;
717
733
  --color-stage-primary: var(--color-primary-ds);
@@ -792,6 +808,7 @@
792
808
  --color-subline: theme('colors.yellow.olive');
793
809
  /* Link */
794
810
  --color-link: theme('colors.yellow.olive');
811
+ --color-link-dark: theme('colors.yellow.olive');
795
812
  /* Stage */
796
813
  --color-stage-text-box: 67 61 55;
797
814
  --color-stage-primary: theme('colors.yellow.corn');
@@ -873,6 +890,7 @@
873
890
  --color-subline: var(--color-topline);
874
891
  /* Link */
875
892
  --color-link: theme('colors.red.paprika');
893
+ --color-link-dark: theme('colors.red.paprika');
876
894
  /* Stage */
877
895
  --color-stage-text-box: 255 255 255;
878
896
  --color-stage-primary: var(--color-primary-ds);
@@ -964,6 +982,7 @@
964
982
  --color-subline: var(--color-topline);
965
983
  /* Link */
966
984
  --color-link: var(--color-primary-ds);
985
+ --color-link-dark: var(--color-primary-ds);
967
986
  /* Stage */
968
987
  --color-stage-text-box: 255 255 255;
969
988
  --color-stage-primary: var(--color-primary-ds);
@@ -1052,6 +1071,7 @@
1052
1071
  --color-subline: var(--color-topline);
1053
1072
  /* Link */
1054
1073
  --color-link: theme('colors.green.eden');
1074
+ --color-link-dark: theme('colors.green.eden');
1055
1075
  /* Stage */
1056
1076
  --color-stage-text-box: 255 255 255;
1057
1077
  --color-stage-primary: theme('colors.green.genoa');
@@ -1132,6 +1152,7 @@
1132
1152
  --color-subline: var(--color-topline);
1133
1153
  /* Link */
1134
1154
  --color-link: theme('colors.blue.sea');
1155
+ --color-link-dark: theme('colors.blue.sea');
1135
1156
  /* Stage */
1136
1157
  --color-stage-text-box: 255 255 255;
1137
1158
  --color-stage-primary: theme('colors.yellow.goldenSand');
@@ -12,6 +12,7 @@ import { Meta, Canvas } from '@storybook/addon-docs'
12
12
  - [JSON](#json)
13
13
  - [Konventionen beim Bau von Komponenten](#konventionen-beim-bau-von-komponentenn)
14
14
  - [Styling von Komponenten](#styling-von-komponenten)
15
+ - [Ausrichtung mit z-index](#ausrichtung-mit-z-index)
15
16
  - [Wiederverwendbarkeit und Erweiterbarkeit von Komponenten](#wiederverwendbarkeit-und-erweiterbarkeit-von-komponenten)
16
17
 
17
18
  ## Übersicht
@@ -321,7 +322,23 @@ Ansatz mit mehreren CSS Eigenschaften pro Klasse.
321
322
  Nachteil ist jedoch, dass alle CSS Logik auf diese Weise in die Templates verlagert wird und diese auf den ersten
322
323
  Blick recht unübersichtlich wirken können.
323
324
 
324
- #### Definition eigener CSS Klassen
325
+ ### Ausrichtung mit z-index
326
+
327
+ Die Eigenschaft z-index gibt an, in welcher Reihenfolge Elemente auf dem Ausgabemedium von hinten nach vorne angeordnet werden. Das ist von Bedeutung, wenn die Elemente sich überlappen.
328
+ Elemente mit einem größeren z-index liegen dabei näher am Betrachter und können Elemente mit kleinerem z-index überlagern.
329
+
330
+ Das z-index-Attribut kann folgende Werte besitzen:
331
+
332
+ | Range / Value | Elements |
333
+ | :------------------- | :----------------------------------------- |
334
+ | 99 | Toplink |
335
+ | 1 - 99 | Content |
336
+ | 100 - 199 | Navi |
337
+ | 200 - 299 | Radioplayer |
338
+ | 300 | Modal |
339
+
340
+
341
+ ### Definition eigener CSS Klassen
325
342
 
326
343
  Tailwind CSS gestattet es auch sehr einfach eigene CSS Klassen zu schreiben. Sollte es für eine bestimmte CSS Eigenschaft
327
344
  noch keine eigene Utility Klasse geben, kann diese problemlos in der Datei `custom-utilities.css` definiert werden.
@@ -1,10 +1,10 @@
1
1
  {{#with this.socialMediaLinks }}
2
2
  <div class="flex">
3
- <span class="mr-2 font-bold whitespace-nowrap">{{~loca "social_media_links_text"~}}</span>
3
+ <span class="mr-2 font-bold whitespace-nowrap text-text dark:text-text-dark">{{~loca "social_media_links_text"~}}</span>
4
4
  <ul class="inline">
5
5
  {{~#each this~}}
6
6
  <li class="inline mr-1">
7
- {{~#> components/base/link _link=this.link _css="underline text-link" ~}}
7
+ {{~#> components/base/link _link=this.link _css="underline text-link dark:text-link-dark" ~}}
8
8
  {{~this.linkText~}}
9
9
  {{~#if this.link.hasIcon~}}
10
10
  {{~> components/base/image/icon _icon=this.link.iconName _iconmap="icons" _addClass="inline -mt-0.5 w-5 h-5 fill-current"~}}
@@ -1,5 +1,5 @@
1
1
  <div class="sb-main-navigation" x-data="mainNavigationHandler()" x-init="{{#if _useSticky}}start(){{/if}}">
2
- <header class="print:hidden relative z-10001 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
2
+ <header class="print:hidden relative z-110 {{#if _useSticky}}{{#if this.hasOpenSubNavigation}}lg:h-header-lg-big {{else}}lg:h-header-lg-small {{/if}}{{else}}lg:h-auto {{/if}}md:h-header-md h-header-sm">
3
3
  <div x-data
4
4
  id="headerWrapper"
5
5
  @resize.window="resetNav()"
@@ -13,16 +13,16 @@
13
13
  </div>
14
14
 
15
15
  <div id="brandNavWrapper"
16
- class="box-content relative flex items-center justify-center order-1 w-full bg-white border-b border-brandnavigation-border-color z-10001">
16
+ class="box-content relative flex items-center justify-center order-1 w-full bg-white border-b border-brandnavigation-border-color z-110">
17
17
  {{> components/site_header/brand_navigation/brand_navigation }}
18
18
  </div>
19
19
 
20
20
  <div id="serviceNavWrapper"
21
21
  :class="shouldServiceNavBeHidden() ? '-mt-40' : ''"
22
22
 
23
- class="relative flex justify-center order-2 w-full transition-all duration-500 ease-in-out border-b border-navigation-border-color bg-navigation-bg z-10002">
23
+ class="relative flex justify-center order-2 w-full transition-all duration-500 ease-in-out border-b border-navigation-border-color bg-navigation-bg z-120">
24
24
  <div id="serviceNavMainContainer"
25
- class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-10001">
25
+ class="flex w-full h-10 lg:container md:h-12 lg:px-10 lg:h-16 z-110">
26
26
 
27
27
  <span id="serviceNavHeadline" class="hidden print:hidden">Service Navigation</span>
28
28
 
@@ -54,7 +54,7 @@
54
54
  x-ref="sectionnavigation"
55
55
  @toggle-sectionnav.window="toggleSectionNav"
56
56
  :class="shouldSectionNavBeHidden() ? '-mt-40 md:-mt-40 lg:-mt-40' : ''"
57
- class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:border-navigation-border-color [border-image-source:var(--border-navigation-border-image)] [border-image-slice:1] lg:border-b-navigation-border-width lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-navigation-bg z-10000 print:hidden"
57
+ class="flex justify-center order-3 w-full overflow-hidden duration-500 transition-max-height lg:border-navigation-border-color [border-image-source:var(--border-navigation-border-image)] [border-image-slice:1] lg:border-b-navigation-border-width lg:transition-margin-top lg:duration-500 tablet:absolute tablet:top-20 tablet:w-half-screen tablet:ml-half-screen max-h-0 lg:overflow-visible md:mt-0 lg:flex lg:max-h-full lg:h-auto bg-navigation-bg z-100 print:hidden"
58
58
  >
59
59
  {{> components/site_header/section_navigation/section_navigation }}
60
60
  </div>
@@ -62,7 +62,7 @@
62
62
  <div x-cloak :class="shouldServiceNavBeHidden() ? 'hidden -mt-40' : ''"
63
63
  x-effect="$el.setAttribute('id', 'flyout-' + $store.searchID.current + '-2');$el.setAttribute('aria-expanded', $store.searchFieldOpen);$el.setAttribute('aria-hidden', !$store.searchFieldOpen);$el.setAttribute('aria-labelledby', 'flyout-' + $store.searchID.current + '-1')"
64
64
  x-show="$store.searchFieldOpen"
65
- class="sb-quick-search-flyout flex tablet:w-half-screen tablet:ml-half-screen justify-end order-4 w-full max-w-full p-2 px-5 py-3.5 bg-white drop-shadow-md md:mt-0 z-10002 lg:hidden print:hidden"
65
+ class="sb-quick-search-flyout flex tablet:w-half-screen tablet:ml-half-screen justify-end order-4 w-full max-w-full p-2 px-5 py-3.5 bg-white drop-shadow-md md:mt-0 z-120 lg:hidden print:hidden"
66
66
  @search-close.window="$store.searchFieldOpen = false"
67
67
  @click.outside="$store.searchFieldOpen = false; $dispatch('search-mobile-click-outside'); dropped = false; toggleScrolling(!$store.serviceNavIsOpensearchFieldOpen && !$store.burgeropen)"
68
68
  x-transition:enter="transition ease-out duration-200"
@@ -85,6 +85,6 @@
85
85
  />
86
86
  </div>
87
87
  <div x-ref="myOverlay">
88
- <div x-cloak x-data="overlayHandler()" @click.debounce="overlayWasClicked()" x-show="shouldOverlayBeShown()" class="fixed top-0 left-0 w-screen h-screen bg-gray-800 z-10000 lg:hidden opacity-70"></div>
88
+ <div x-cloak x-data="overlayHandler()" @click.debounce="overlayWasClicked()" x-show="shouldOverlayBeShown()" class="fixed top-0 left-0 w-screen h-screen bg-gray-800 z-100 lg:hidden opacity-70"></div>
89
89
  </div>
90
90
  </div>
@@ -11,10 +11,10 @@
11
11
  {{~#if ../_isSectionNav}} relative md:top-auto md:left-auto lg:mt-10 w-full transition-all duration-500 ease-in-out
12
12
  {{#unless this.showAsFlyout}}
13
13
  {{#if ../this.selected}}
14
- isSelectedAndOpen lg:ml-0 z-10000 lg:border-b lg:border-primary lg:filter-none lg:left-0 flex justify-center
15
- {{else}} z-10002 lg:left-auto lg:w-auto {{/if}}
16
- {{else}} z-10002 lg:left-auto lg:w-auto divide-y divide-gray-200{{/unless}}
17
- {{else}} z-10002 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
14
+ isSelectedAndOpen lg:ml-0 z-100 lg:border-b lg:border-primary lg:filter-none lg:left-0 flex justify-center
15
+ {{else}} z-120 lg:left-auto lg:w-auto {{/if}}
16
+ {{else}} z-120 lg:left-auto lg:w-auto divide-y divide-gray-200{{/unless}}
17
+ {{else}} z-120 lg:rounded-b absolute w-full top-10 left-0 md:w-80 lg:w-92 md:top-12 lg:px-4 md:mt-0 md:left-0 lg:top-15 lg:left-0 divide-y divide-gray-200 tablet:w-half-screen tablet:ml-half-screen tablet:right-0 tablet:left-auto {{/if}}
18
18
  {{~#if this.showAsFlyout}} lg:rounded-b lg:px-4 lg:absolute{{else}} lg:fixed{{/if}}"
19
19
 
20
20
  aria-labelledby="flyout-{{getRandom}}-1"
@@ -65,7 +65,7 @@
65
65
  <button
66
66
  aria-label='{{loca "search_input_aria_submit" }}'
67
67
  type="submit"
68
- class="pl-3 pr-2 border-l cursor-pointer lg:search-border-desktop lg:rounded-r link-focus-inset bg-primary lg:bg-white text-primary z-10002"
68
+ class="pl-3 pr-2 border-l cursor-pointer lg:search-border-desktop lg:rounded-r link-focus-inset bg-primary lg:bg-white text-primary z-120"
69
69
  >
70
70
  <svg class="w-6 h-6 text-white fill-current bg-primary lg:fill-current lg:text-primary lg:bg-white"
71
71
  xmlns="http://www.w3.org/2000/svg"
@@ -3,7 +3,7 @@
3
3
  @click.outside="$store.serviceNavIsOpen = false; toggleScrolling(!$store.searchFieldOpen && !$store.burgeropen)"
4
4
  x-ref="serviceList"
5
5
  :class="shouldServiceIconsBeHidden() ? '-mt-40' : ''"
6
- class="absolute left-0 flex justify-center flex-initial w-full h-10 max-w-full align-top duration-500 ease-in-out border-b border-navigation-border-color sb-service-list transition-margin-top -z-1000 md:z-10000 md:h-12 top-[41px] bg-navigation-bg md:border-0 md:top-auto md:w-auto md:left-auto md:static md:justify-end md:flex md:flex-auto lg:h-16 lg:pl-0 lg:pr-4 lg:w-3/4 "
6
+ class="absolute left-0 flex justify-center flex-initial w-full h-10 max-w-full align-top duration-500 ease-in-out border-b border-navigation-border-color sb-service-list transition-margin-top -z-40 md:z-100 md:h-12 top-[41px] bg-navigation-bg md:border-0 md:top-auto md:w-auto md:left-auto md:static md:justify-end md:flex md:flex-auto lg:h-16 lg:pl-0 lg:pr-4 lg:w-3/4 "
7
7
  >
8
8
  {{#with this.serviceNavigationSSILinks}}
9
9
  <ul class="flex justify-around w-full h-full -itemCount-{{ count }} lg:w-auto lg:justify-end lg:pt-1">
@@ -35,7 +35,7 @@
35
35
  <span class="sr-only lg:hidden">{{this.text}}</span>
36
36
  </div>
37
37
 
38
- <div :class="{'text-primary fill-current': dropped,'text-navigation-icons fill-white': !dropped}" class="relative flex-row items-center justify-center hidden pt-px text-navigation-icons lg:flex z-10002">
38
+ <div :class="{'text-primary fill-current': dropped,'text-navigation-icons fill-white': !dropped}" class="relative flex-row items-center justify-center hidden pt-px text-navigation-icons lg:flex z-120">
39
39
  <div class="flex" >
40
40
  <span class="flex text-xs leading-4 whitespace-nowrap">
41
41
  {{text}}
@@ -1,5 +1,5 @@
1
1
  {{#if this.commentLink}}
2
- <span class="relative whitespace-nowrap z-100">
2
+ <span class="relative whitespace-nowrap z-30">
3
3
  {{#> components/base/link _link=this.commentLink.link _css="hover:underline decoration-1" _isAriaHidden=true}}
4
4
  {{> components/base/image/icon _icon="kommentar" _iconmap="icons" _addClass="mr-0.5 inline w-5 h-5 text-toplineColor fill-current"}}
5
5
  <span class="sr-only">{{loca "comment_anchor_1"}}</span>
@@ -16,7 +16,7 @@
16
16
  x-on:keydown.escape.prevent.stop="close($refs.button)"
17
17
  x-on:focusin.window="! $refs.panel.contains($event.target) && close()"
18
18
  x-id="['dropdown-button']"
19
- class="relative h-10 z-9999"
19
+ class="relative h-10 z-100"
20
20
  >
21
21
 
22
22
  {{!-- Button --}}
@@ -107,18 +107,8 @@ module.exports = {
107
107
  '0': '0',
108
108
  '50': '50',
109
109
  '100': '100',
110
- '101': '101',
111
- '102': '102',
112
- '103': '103',
113
- '1000': '1000',
114
- '1001': '1001',
115
- '1002': '1002',
116
- '1003': '1003',
117
- '9999': '9999',
118
- '10000': '10000',
119
- '10001': '10001',
120
- '10002': '10002',
121
- '-1000': '-1000',
110
+ '110': '110',
111
+ '120': '120'
122
112
  },
123
113
  spacing: {
124
114
  '9.5': '2.375rem',
@@ -342,7 +332,8 @@ module.exports = {
342
332
  'highlight-2': 'var(--color-highlight-2)',
343
333
  'highlight-3': 'var(--color-highlight-3)',
344
334
  'top-topic-background': 'var(--color-top-topic-background)',
345
-
335
+ 'text': 'var(--color-standard-text)',
336
+ 'text-dark': 'var(--color-standard-text-dark)',
346
337
  'navigation-bg': 'var(--color-navigation-bg)',
347
338
  'navigation-icons': 'var(--color-navigation-icons)',
348
339
  'navigation-text': 'var(--color-navigation-text)',
@@ -369,6 +360,7 @@ module.exports = {
369
360
  'toplineColor': 'var(--color-topline)',
370
361
  'subline': 'var(--color-subline)',
371
362
  'link': 'var(--color-link)',
363
+ 'link-dark': 'var(--color-link-dark)',
372
364
  'stageLink': 'var(--color-stage-link)',
373
365
  'stageTextBox': 'rgb(var(--color-stage-text-box) / <alpha-value>)',
374
366
  'stageText': 'var(--color-stage-text)',