Procházet zdrojové kódy

update gfi

diff/feb-2025
FlorianEisenmenger před 1 rokem
rodič
revize
ca523a19bd
14 změnil soubory, kde provedl 50 přidání a 100 odebrání
  1. +12
    -4
      gfi-ihk-2024/stories/_global/styles/_mixins.scss
  2. +1
    -17
      gfi-ihk-2024/stories/components/document-list/document-list.scss
  3. +1
    -13
      gfi-ihk-2024/stories/components/election-result-list-item/election-result-list-item.scss
  4. +3
    -0
      gfi-ihk-2024/stories/components/gallery/GalleryComponent.js
  5. +1
    -0
      gfi-ihk-2024/stories/components/gallery/GalleryData.js
  6. +3
    -0
      gfi-ihk-2024/stories/components/gallery/gallery.js
  7. +1
    -0
      gfi-ihk-2024/stories/components/gallery/gallery.scss
  8. +7
    -6
      gfi-ihk-2024/stories/components/teaser/teaser.scss
  9. +1
    -13
      gfi-ihk-2024/stories/sections/election-detail/election-detail.scss
  10. +1
    -9
      gfi-ihk-2024/stories/sections/marketingheader/marketingheader.scss
  11. +4
    -17
      gfi-ihk-2024/stories/sections/slider/slider.scss
  12. +11
    -2
      gfi-ihk-2024/stories/sections/survey/Survey.stories.js
  13. +2
    -2
      gfi-ihk-2024/stories/sections/survey/SurveyData.js
  14. +2
    -17
      gfi-ihk-2024/stories/sections/teasers/teasers.scss

+ 12
- 4
gfi-ihk-2024/stories/_global/styles/_mixins.scss Zobrazit soubor

@@ -104,15 +104,23 @@
display: block;
left: 100%;
bottom: 0;
color: white;
color: var(--theme-color-white);
font-size: 12px;
line-height: 1.2;
text-shadow: 0 0 3px rgba(black, 0.6), 0 0 8px rgba(black, 0.6);
text-shadow: -2px 2px 0 #000;
z-index: 2;
width: calc(66.6% + 7px);
padding: 8px 18px;
padding: 2px 6px 2px 4px;
transform-origin: 0 100%;
transform: rotate(-90deg);
background: #012d59;
white-space: nowrap;
max-width: calc(66.6% + 7px);
overflow: hidden;
transition: 0.3s ease;
@media(max-width: 767px) {
font-size: 10px;
max-width: 100%;
}
}

@mixin form-field {


+ 1
- 17
gfi-ihk-2024/stories/components/document-list/document-list.scss Zobrazit soubor

@@ -97,23 +97,7 @@
}

.copyright {
position: absolute;
left: 100%;
bottom: 0;
transform-origin: 0 100%;
color: var(--theme-color-white);
font-size: 12px;
line-height: 1.2;
text-shadow: 0 0 3px rgba(#000, 0.6), 0 0 8px rgba(#000, 0.6);
z-index: 2;
width: 66%;
padding: 8px 10px;
transform: rotate(-90deg);

@media(max-width: 767px) {
font-size: 10px;
padding: 6px 18px;
}
@include copyright;
}
}



+ 1
- 13
gfi-ihk-2024/stories/components/election-result-list-item/election-result-list-item.scss Zobrazit soubor

@@ -30,19 +30,7 @@
border-top-left-radius: 4px;
border-top-right-radius: 4px;
.copyright {
bottom: 0;
color: var(--theme-color-white);
display: block;
font-size: 12px;
left: 100%;
line-height: 1.2;
padding: 8px;
position: absolute;
text-shadow: 0 0 3px rgba(0,0,0,.6),0 0 8px rgba(0,0,0,.6);
transform: rotate(-90deg);
transform-origin: 0 100%;
width: 66%;
z-index: 2;
@include copyright;
}
}



+ 3
- 0
gfi-ihk-2024/stories/components/gallery/GalleryComponent.js Zobrazit soubor

@@ -24,6 +24,9 @@ export const createGallery =
imageDiv.dataset.full = item.src;
imageDiv.dataset.width = item.width;
imageDiv.dataset.height = item.height;
if (item.copyright) {
imageDiv.dataset.copyright = item.copyright;
}
})

$(document).ready(() => {


+ 1
- 0
gfi-ihk-2024/stories/components/gallery/GalleryData.js Zobrazit soubor

@@ -3,6 +3,7 @@ export const galleryData = [
src: './dummy/placeholder-3-2.svg',
width: 1470,
height: 980,
copyright: '© Shutterstock'
},
{
src: './dummy/placeholder-2-3.svg',


+ 3
- 0
gfi-ihk-2024/stories/components/gallery/gallery.js Zobrazit soubor

@@ -70,6 +70,9 @@ class IHKGallery {
const first = this.items.first().addClass('loading');
const a = $('<a href="' + first.data('full') + '" />').attr('data-index', 0).appendTo(first);
const img = $('<img alt="' + first.attr("alt") + '" />').appendTo(a);
if (first.data('copyright')) {
$('<span class="copyright">' + first.data('copyright') + '</span>').appendTo(a);
}

first.find('.image-description').appendTo(this.wrapper);



+ 1
- 0
gfi-ihk-2024/stories/components/gallery/gallery.scss Zobrazit soubor

@@ -89,6 +89,7 @@

.copyright {
@include copyright;
opacity: 1 !important;
}
}



+ 7
- 6
gfi-ihk-2024/stories/components/teaser/teaser.scss Zobrazit soubor

@@ -90,6 +90,7 @@

.copyright {
@include copyright;
bottom: 8px;
}

.chart-title {
@@ -146,6 +147,12 @@
.image-box::after {
height: var(--border-width-hover);
}
.copyright {
bottom: 14px;
@media(max-width: 767px) {
bottom: 10px;
}
}
}
}

@@ -224,9 +231,6 @@
}

&[data-image-size='s'] {
.copyright {
width: 100%;
}

.image-box::before {
padding-top: 100%;
@@ -234,9 +238,6 @@
}

&[data-image-size='l'] {
.copyright {
width: 55%;
}

.image-box::before {
padding-top: 55%;


+ 1
- 13
gfi-ihk-2024/stories/sections/election-detail/election-detail.scss Zobrazit soubor

@@ -29,19 +29,7 @@
margin: 0;
}
.copyright {
bottom: 0;
color: var(--theme-color-white);
display: block;
font-size: 12px;
left: 100%;
line-height: 1.2;
padding: 8px;
position: absolute;
text-shadow: 0 0 3px rgba(0,0,0,.6),0 0 8px rgba(0,0,0,.6);
transform: rotate(-90deg);
transform-origin: 0 100%;
width: 66%;
z-index: 2;
@include copyright;
}
}



+ 1
- 9
gfi-ihk-2024/stories/sections/marketingheader/marketingheader.scss Zobrazit soubor

@@ -24,11 +24,6 @@ section.marketingheader{
height:auto;
}
}
.copyright {
@media screen and (max-width: 900px) {
left: calc(100% - 14px);
}
}
}
}
.text-box{
@@ -643,10 +638,7 @@ section.marketingheader{
}
}
.copyright {
bottom: 0;
@media screen and (min-width:901px) {
padding-bottom: 26px;
}
left: 100%;
}
.slider{
background-color: transparent;


+ 4
- 17
gfi-ihk-2024/stories/sections/slider/slider.scss Zobrazit soubor

@@ -174,23 +174,10 @@
}

.copyright {
position: absolute;
display: block;
left: 100%;
bottom: 0;
transform-origin: 0 100%;
color: var(--theme-color-white);
font-size: 12px;
line-height: 1.2;
text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.6), 0px 0px 8px rgba(0, 0, 0, 0.6);
z-index: 2;
width: 66%;
padding: 26px 8px;
transform: rotate(-90deg);

@media(max-width: 999px) {
font-size: 10px;
padding: 4px 6px;
@include copyright;
left: calc(100% - 20px);
@media screen and (min-width: 901px) and (max-width: 999px) {
left: 100%;
}
}



+ 11
- 2
gfi-ihk-2024/stories/sections/survey/Survey.stories.js Zobrazit soubor

@@ -1,4 +1,6 @@
import {createSurvey} from "./SurveyComponent";
import {SurveySimpleData} from "./SurveyData";
import {SurveyComplexData} from "./SurveyData";

export default {
title: 'Sections/Survey',
@@ -16,5 +18,12 @@ const Template = ({...args}) => {
return createSurvey({...args});
};

export const Survey = Template.bind({});
Survey.args = {};
export const SurveySimple = Template.bind({});
SurveySimple.args = {
data: SurveySimpleData
};

export const SurveyComplex = Template.bind({});
SurveyComplex.args = {
data: SurveyComplexData
};

+ 2
- 2
gfi-ihk-2024/stories/sections/survey/SurveyData.js Zobrazit soubor

@@ -1,4 +1,4 @@
export const SurveySimple = [
export const SurveySimpleData = [
{
legend: null,
name: 'vote',
@@ -10,7 +10,7 @@ export const SurveySimple = [
}
]

export const SurveyComplex = [
export const SurveyComplexData = [
{
legend: 'Sie sind?',
name: 'group',


+ 2
- 17
gfi-ihk-2024/stories/sections/teasers/teasers.scss Zobrazit soubor

@@ -536,23 +536,8 @@
}

.copyright {
position: absolute;
left: 100%;
bottom: 0;
transform-origin: 0 100%;
color: var(--theme-color-background);
font-size: 12px;
line-height: 1.2;
text-shadow: 0 0 3px rgba(var(--theme-color-text-intensed), 0.6), 0 0 8px rgba(var(--theme-color-text-intensed), 0.6);
z-index: 2;
width: 66%;
padding: 8px 20px;
transform: rotate(-90deg);

@media(max-width: 767px) {
font-size: 10px;
padding: 6px 18px;
}
@include copyright;
bottom: 8px;
}

img {


Načítá se…
Zrušit
Uložit