diff --git a/data.json b/data.json index 76cb922..3a68ac0 100644 --- a/data.json +++ b/data.json @@ -1503,6 +1503,7 @@ "accordion": { "key": "accordion", "classes": "block-accordion--sm block-accordion--2cols", + "multi_columns": true, "content": { "items": [ { @@ -6979,7 +6980,7 @@ { "key": "paragraph", "classes": "block-paragraph--sm block-paragraph--1col", - "content": "
Vengono svolte prove speciali su materiali sperimentali e su committenza (legno massiccio e lamellare, materiali compositi, GFRP, RFCM, muratura, ecc.)
Vengono svolte tarature di strumentazione per prove mediante equipaggiamento certificato.
" + "content": "Vengono svolte prove speciali su materiali sperimentali e su committenza (legno massiccio e lamellare, materiali compositi, GFRP, RFCM, muratura, ecc.)Vengono svolte tarature di strumentazione per prove mediante equipaggiamento certificato.
" }, { "key": "files-list", diff --git a/src/assets/css/blocks/accordion.css b/src/assets/css/blocks/accordion.css index 40582fe..a6a51b0 100644 --- a/src/assets/css/blocks/accordion.css +++ b/src/assets/css/blocks/accordion.css @@ -8,6 +8,7 @@ > button{ @apply relative + text-left flex items-center w-full text-size-lg diff --git a/src/assets/css/components/card.css b/src/assets/css/components/card.css index 4ef2999..b0ff156 100644 --- a/src/assets/css/components/card.css +++ b/src/assets/css/components/card.css @@ -1,8 +1,8 @@ .cards-container{ @apply pl-[calc(var(--grid-gutter)*2)] md:pl-[var(--grid-offset)] pr-[calc(var(--grid-gutter)*2)] mb-base overflow-x-clip; - /* @at-root :where(.grid-container) .cards-container{ + @at-root :where(.block-container, .grid-container) .cards-container{ @apply mx-0 px-0; - } */ + } &__inner{ @apply grid gap-[calc(var(--grid-gutter)*2)] grid-cols-12; /* &-squares{ @@ -98,6 +98,9 @@ /* aspect-ratio: unset; */ .card__title{ @apply items-start; + .card__icon{ + @apply mt-2.5; + } } > div{ @apply w-full xl:aspect-square; @@ -138,7 +141,7 @@ aspect-ratio: unset; } .card__icon{ - @apply xl:absolute xl:right-[calc(var(--grid-gutter)*2)] xl:top-7; + @apply xl:absolute xl:right-[calc(var(--grid-gutter)*2)] /*xl:top-7*/; } footer{ /* @apply mb-base xl:mb-0; */ @@ -187,6 +190,12 @@ } } } + &:hover{ + @apply text-yellow-100; + p, span{ + @apply text-yellow-100; + } + } } &--no-arrow{ @apply items-start; diff --git a/src/assets/css/components/header.css b/src/assets/css/components/header.css index 006dcd0..5740f65 100644 --- a/src/assets/css/components/header.css +++ b/src/assets/css/components/header.css @@ -60,7 +60,7 @@ @apply flex items-center; > li{ &:not(:last-child){ - @apply mr-6 xl:mr-8; + @apply mr-6 lg:mr-7 2xl:mr-8; } > a{ @apply block; diff --git a/src/blocks/accordion.twig b/src/blocks/accordion.twig index 006f111..443f3c2 100644 --- a/src/blocks/accordion.twig +++ b/src/blocks/accordion.twig @@ -2,7 +2,7 @@ # Blocco accordion #} - {% if block.multi_columns %}{% set multi_columns = true %}{% endif %} + {% if block.multi_columns == true %}{% set multi_columns = true %}{% endif %} {% set id = random(99999) %}