... | ... |
@@ -74,13 +74,10 @@ h4 { |
74 | 74 |
} |
75 | 75 |
|
76 | 76 |
h5 { |
77 |
- color: $color-text; |
|
78 |
- font-weight: 400; |
|
79 |
- font-size: font-size(32px); |
|
80 |
- |
|
81 |
- &.fw_normal { |
|
82 |
- font-weight: 400; |
|
83 |
- } |
|
77 |
+ font-size: font-size(22px); |
|
78 |
+ letter-spacing: 0.125em; |
|
79 |
+ text-transform: uppercase; |
|
80 |
+ margin-bottom: 0.25em; |
|
84 | 81 |
} |
85 | 82 |
|
86 | 83 |
@include for-tablet { |
... | ... |
@@ -616,92 +616,60 @@ |
616 | 616 |
|
617 | 617 |
|
618 | 618 |
.ce_accordion { |
619 |
+ position: relative; |
|
620 |
+ padding-bottom: 40px; |
|
619 | 621 |
+ .ce_accordion { |
620 | 622 |
margin-top: 5px; |
621 | 623 |
} |
622 | 624 |
.toggler { |
623 | 625 |
cursor: pointer; |
624 | 626 |
display: block; |
625 |
- background-color: $color-bg-tertiary; |
|
626 |
- color: $color-text-invert; |
|
627 |
- font-size: font-size(25px); |
|
628 |
- padding: 10px 50px 10px 15px; |
|
629 |
- line-height: 30px; |
|
630 |
- position: relative; |
|
631 |
- outline: none; |
|
632 |
- overflow: hidden; |
|
633 |
- @include transition(all 0.25s ease); |
|
627 |
+ @include headline($font-size: font-size(22px), $color: $color-bg-primary); |
|
628 |
+ letter-spacing: 0.125em; |
|
629 |
+ text-transform: uppercase; |
|
630 |
+ margin: 0; |
|
631 |
+ line-height: 1.3; |
|
634 | 632 |
|
635 |
- .arrow { |
|
636 |
- position: absolute; |
|
637 |
- top:0; |
|
638 |
- bottom: 0; |
|
639 |
- right: 0; |
|
640 |
- width: 50px; |
|
641 |
- fill: $color-bg-secondary; |
|
642 |
- @include transition(all 0.25s ease); |
|
633 |
+ .title { |
|
634 |
+ padding-bottom: 0.3em; |
|
635 |
+ position: relative; |
|
636 |
+ |
|
637 |
+ &:after { |
|
638 |
+ position: absolute; |
|
639 |
+ left: 0; |
|
640 |
+ right: 0; |
|
641 |
+ height: 0; |
|
642 |
+ @include border-radius(99em); |
|
643 |
+ border-color: currentColor; |
|
644 |
+ content: ""; |
|
645 |
+ bottom: -0.15em; |
|
646 |
+ border-bottom-width: 8px; |
|
647 |
+ border-bottom-style: solid; |
|
648 |
+ } |
|
643 | 649 |
} |
644 | 650 |
|
645 |
- /*&:before { |
|
651 |
+ .ui-accordion-header-icon { |
|
646 | 652 |
position: absolute; |
647 |
- top:0; |
|
653 |
+ left: 0; |
|
648 | 654 |
bottom: 0; |
649 |
- right: 0; |
|
650 |
- width: 50px; |
|
651 |
- content: ''; |
|
652 |
- background: url('data:image/svg+xml; charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22%23000000%22%20viewBox%3D%220%200%20100%20100%22%20preserveAspectRatio%3D%22none%22%20%3E%3Cpath%20d%3D%22M10%2C0%20L100%2C0%20L100%2C100%20L10%2C100%20L0%2C50z%22%3E%3C%2Fpath%3E%3C%2Fsvg%3E') no-repeat 100% 50%; |
|
653 |
- -webkit-background-size: 100% 100%; |
|
654 |
- background-size: 100% 100%; |
|
655 |
- //@include transform(translate(50%,-50%)); |
|
656 |
- @include transition(transform 0.25s ease); |
|
657 |
- }*/ |
|
658 |
- |
|
659 |
- &:before, |
|
660 |
- &:after { |
|
661 |
- z-index: 1; |
|
662 |
- position: absolute; |
|
663 |
- top: 50%; |
|
664 |
- font-size: 35px; |
|
665 |
- @include transform(translate(50%,-50%)); |
|
666 |
- @include transition(all 0.25s ease); |
|
667 |
- } |
|
668 |
- |
|
669 |
- &:before { |
|
670 |
- right: 20px; |
|
671 |
- content: '+'; |
|
672 |
- opacity: 1; |
|
673 |
- visibility: visible; |
|
674 |
- } |
|
675 |
- &:after { |
|
676 |
- top: 22px; |
|
677 |
- right: 25px; |
|
678 |
- content: '–'; |
|
679 |
- opacity: 0; |
|
680 |
- visibility: hidden; |
|
655 |
+ -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 123 62' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3E%3Cpath d='M57.548,60.943c2.509,1.409 5.581,1.409 8.09,0l54.92,-36.13c2.31,-1.41 3.18,-5.08 1.74,-7.05l-7,-15c-1.39,-2.22 -5.14,-2.78 -7.46,-1.37l-46.24,30.23l-45.67,-29.95c-2.6,-1.69 -6.36,-0.84 -7.52,0.85l-7.22,15.24c-1.45,2.25 -0.29,5.64 1.73,7.05l54.63,36.13Z' style='fill:%23000000;fill-rule:nonzero;'/%3E%3C/svg%3E"); |
|
656 |
+ mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 123 62' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' xml:space='preserve' xmlns:serif='http://www.serif.com/' style='fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;'%3E%3Cpath d='M57.548,60.943c2.509,1.409 5.581,1.409 8.09,0l54.92,-36.13c2.31,-1.41 3.18,-5.08 1.74,-7.05l-7,-15c-1.39,-2.22 -5.14,-2.78 -7.46,-1.37l-46.24,30.23l-45.67,-29.95c-2.6,-1.69 -6.36,-0.84 -7.52,0.85l-7.22,15.24c-1.45,2.25 -0.29,5.64 1.73,7.05l54.63,36.13Z' style='fill:%23000000;fill-rule:nonzero;'/%3E%3C/svg%3E"); |
|
657 |
+ -webkit-mask-repeat: no-repeat; |
|
658 |
+ mask-repeat: no-repeat; |
|
659 |
+ width: 40px; |
|
660 |
+ height: 20px; |
|
661 |
+ background-color: $color-bg-secondary; |
|
681 | 662 |
} |
682 | 663 |
|
683 | 664 |
&.ui-state-active { |
684 |
- background-color: $color-bg-secondary; |
|
685 |
- color: $color-text-invert; |
|
686 |
- &:before { |
|
687 |
- opacity: 0; |
|
688 |
- visibility: hidden; |
|
689 |
- } |
|
690 |
- &:after { |
|
691 |
- opacity: 1; |
|
692 |
- visibility: visible; |
|
693 |
- } |
|
694 |
- .arrow { |
|
695 |
- @include transform(rotate(-90deg)); |
|
696 |
- fill: $color-bg-tertiary; |
|
697 |
- max-height:50px; |
|
665 |
+ .ui-accordion-header-icon { |
|
666 |
+ @include transform(rotate(180deg)); |
|
698 | 667 |
} |
699 | 668 |
} |
700 | 669 |
} |
701 | 670 |
|
702 | 671 |
.accordion { |
703 |
- padding: 1.5rem 1rem; |
|
704 |
- background: $color-bg-primary; |
|
672 |
+ padding: 1.75em 0 0; |
|
705 | 673 |
} |
706 | 674 |
} |
707 | 675 |
|
708 | 676 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,24 @@ |
1 |
+ |
|
2 |
+<section class="<?= $this->class ?> ce_accordion ce_text block"<?= $this->cssID ?><?php if ($this->style): ?> style="<?= $this->style ?>"<?php endif; ?>> |
|
3 |
+ |
|
4 |
+ <div class="<?= $this->toggler ?>"<?php if ($this->headlineStyle): ?> style="<?= $this->headlineStyle ?>"<?php endif; ?>> |
|
5 |
+ <span class="title"><?= $this->headline ?></span> |
|
6 |
+ </div> |
|
7 |
+ |
|
8 |
+ <div class="<?= $this->accordion ?>"> |
|
9 |
+ <div> |
|
10 |
+ <?php if (!$this->addBefore): ?> |
|
11 |
+ <?= $this->text ?> |
|
12 |
+ <?php endif; ?> |
|
13 |
+ |
|
14 |
+ <?php if ($this->addImage): ?> |
|
15 |
+ <?php $this->insert('image', $this->arrData); ?> |
|
16 |
+ <?php endif; ?> |
|
17 |
+ |
|
18 |
+ <?php if ($this->addBefore): ?> |
|
19 |
+ <?= $this->text ?> |
|
20 |
+ <?php endif; ?> |
|
21 |
+ </div> |
|
22 |
+ </div> |
|
23 |
+ |
|
24 |
+</section> |
0 | 25 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,22 @@ |
1 |
+ |
|
2 |
+<script src="<?= $this->asset('js/jquery-ui.min.js', 'contao-components/jquery-ui') ?>"></script> |
|
3 |
+<script> |
|
4 |
+ jQuery(function($) { |
|
5 |
+ $(document).accordion({ |
|
6 |
+ // Put custom options here |
|
7 |
+ heightStyle: 'content', |
|
8 |
+ header: '.toggler', |
|
9 |
+ collapsible: true, |
|
10 |
+ active: false, |
|
11 |
+ create: function(event, ui) { |
|
12 |
+ ui.header.addClass('active'); |
|
13 |
+ $('.toggler').attr('tabindex', 0); |
|
14 |
+ }, |
|
15 |
+ activate: function(event, ui) { |
|
16 |
+ ui.newHeader.addClass('active'); |
|
17 |
+ ui.oldHeader.removeClass('active'); |
|
18 |
+ $('.toggler').attr('tabindex', 0); |
|
19 |
+ } |
|
20 |
+ }); |
|
21 |
+ }); |
|
22 |
+</script> |