Просмотр исходного кода

fix: marketing header swipe

bugfix/microsites
Florian Eisenmenger 2 лет назад
Родитель
Сommit
cb73b8a696
2 измененных файлов: 15 добавлений и 25 удалений
  1. +12
    -22
      gfi-ihk-2024/stories/sections/marketingheader/marketingheader.scss
  2. +3
    -3
      gfi-ihk-2024/stories/sections/marketingheader/searchAccordion.js

+ 12
- 22
gfi-ihk-2024/stories/sections/marketingheader/marketingheader.scss Просмотреть файл

@@ -28,9 +28,11 @@ section.marketingheader{
overflow: hidden; overflow: hidden;
margin: 0; margin: 0;
background-color: var(--theme-color-primary-dimmed-04); background-color: var(--theme-color-primary-dimmed-04);
transition:all 5s ease-in-out;
max-height:100px;
//height:100%;
max-height: 100px;
transition: all .5s cubic-bezier(0,1,0,1);
@media (max-width:767px){
max-height: 64px;
}
.sc.container{ .sc.container{
position: absolute; position: absolute;
top: 0; top: 0;
@@ -70,7 +72,6 @@ section.marketingheader{
background-color: var(--theme-color-white); background-color: var(--theme-color-white);
transform: translate(-50%,-50%) rotate(45deg); transform: translate(-50%,-50%) rotate(45deg);
transition: 0.3s ease; transition: 0.3s ease;

} }
&:after { &:after {
@@ -84,19 +85,12 @@ section.marketingheader{
} }
&.open{ &.open{
//height:100%;
//animation: slowopen 2s forwards;
//transition:all 5s ease-in-out;
max-height: 2000px;
max-height: 9999px;
transition: all .5s cubic-bezier(1,0,1,0);
.close-search{ .close-search{
display:block !important; display:block !important;
} }
.tiles{ .tiles{
//display:flex !important;
//height:auto;
//opacity: 1;
//transition:none;
//transition:all 2s ease;
margin-top:0; margin-top:0;
padding-bottom:9px; padding-bottom:9px;
} }
@@ -210,19 +204,15 @@ section.marketingheader{
} }


.tiles { .tiles {
margin: 0 -8px;
//display:none;
margin: 100px -8px 0 -8px;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
font-family: "Korb", sans-serif; font-family: "Korb", sans-serif;
//height:0;
//opacity: 0;
transition: all 5s ease-in;
padding-bottom:0px;
//transition:all 2s ease;
margin-top:100px;
transition: all 0.25s ease-in;
padding-bottom: 0;
@media(max-width: 567px) { @media(max-width: 567px) {
margin: 0 -6px;
margin-left: -6px;
margin-right: -6px;
} }


.tile { .tile {


+ 3
- 3
gfi-ihk-2024/stories/sections/marketingheader/searchAccordion.js Просмотреть файл

@@ -29,9 +29,9 @@ class IHKSearchAccordion {
else{ else{
section.attr('aria-label', 'Klappmenü geöffnet'); section.attr('aria-label', 'Klappmenü geöffnet');
} }
if (this.section.data('single-open') !== false) {
section.siblings('.open').removeClass('open').find('.tiles').slideUp(300, 'easeOutQuad');
}
// if (this.section.data('single-open') !== false) {
// section.siblings('.open').removeClass('open').find('.tiles').slideUp(300, 'easeOutQuad');
// }
}); });


if (section.attr('data-type') === 'event') { if (section.attr('data-type') === 'event') {


Загрузка…
Отмена
Сохранить