This commit is contained in:
2019-06-05 14:33:24 +02:00
parent 0fa4bd166c
commit a5d55495fa
4 changed files with 27 additions and 15 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+18 -10
View File
@@ -70,12 +70,24 @@
.bandeau{ .bandeau{
width: 100%; width: 100%;
height: auto; height: auto;
overflow: hidden; position: relative;
display: flex; &::before{
background-image: url('/user/themes/lecampus/images/Trame-bleu.svg'); position: absolute;
background-repeat: no-repeat; display: block;
background-position: center; content: ' ';
background-size: cover; background-image: url('/user/themes/lecampus/images/Trame-bleu.svg');
background-repeat: no-repeat;
background-position: center;
background-size: cover;
width: 100%;
height: 100%;
top: 0;
z-index: -1;
}
.img{
width: 70%;
margin: auto;
}
.title_gal{ .title_gal{
position: absolute; position: absolute;
right: 25%; right: 25%;
@@ -91,10 +103,6 @@
line-height: 2.2rem; line-height: 2.2rem;
} }
} }
img{
width: 70%;
margin: auto;
}
} }
.container{ .container{
@@ -24,7 +24,9 @@
{% set image = page.media.images|first %} {% set image = page.media.images|first %}
{% if image %} {% if image %}
<div class="bandeau"> <div class="bandeau">
<div class="img">
{{ image.html('','bandeau') }} {{ image.html('','bandeau') }}
</div>
{% if header.txtimg.text %} {% if header.txtimg.text %}
<div class="title_gal"> <div class="title_gal">
<p>{{header.txtimg.text}}</p> <p>{{header.txtimg.text}}</p>