correction reco

This commit is contained in:
2019-06-13 12:45:06 +02:00
parent 9978c8eb8a
commit c8d8afe68a
5 changed files with 18 additions and 18 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -125,6 +125,7 @@ function addclass() {
$reco_click.on('click', function() { $reco_click.on('click', function() {
$reco_txt.toggleClass('open'); $reco_txt.toggleClass('open');
$(this).toggleClass('open'); $(this).toggleClass('open');
$('html, body').animate({scrollTop:$('#reco').position().top}, 'slow');
}) })
var $out = $('.opt-out .txt'); var $out = $('.opt-out .txt');
+5 -7
View File
@@ -732,13 +732,9 @@
} }
.txt{ .txt{
z-index: -1; z-index: -1;
position: absolute; position: relative;
width: 100%; width: 100%;
padding-top: 20px; display: none;
@include inlineflex;
justify-content: center;
-webkit-transform: translateY(-100%);
transform: translateY(-100%);
p{ p{
color: white; color: white;
width: 300px; width: 300px;
@@ -748,6 +744,9 @@
} }
} }
&.open{ &.open{
@include inlineflex;
justify-content: center;
padding-top: 20px;
z-index: 999; z-index: 999;
background: $dark-blue; background: $dark-blue;
.item{ .item{
@@ -759,7 +758,6 @@
} }
} }
.item{ .item{
display: none;
margin: 0 0px 20px 20px; margin: 0 0px 20px 20px;
border-left: 1px solid white; border-left: 1px solid white;
padding-left: 20px; padding-left: 20px;
@@ -3,22 +3,23 @@
<div id="reco"> <div id="reco">
{% for p in page.collection(options)%} {% for p in page.collection(options)%}
<div class="title">
<{{h5}}>{{p.title}}</{{h5}}>
</div>
<div class="txt"> <div class="txt">
{% for item in p.collection %} {% for item in p.collection %}
{% set image = item.media.images|first %} {% set image = item.media.images|first %}
<div class="item"> <div class="item">
{% if image %} {% if image %}
{{ image.html('','logo') }} {{ image.html('','logo') }}
{% endif %} {% endif %}
<h3>{{item.title}}</h3> <h3>{{item.title}}</h3>
{{item.content}} {{item.content}}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>
<div class="title">
<{{h5}}>{{p.title}}</{{h5}}>
</div>
{% endfor %} {% endfor %}
</div> </div>