From e75859abd082b047c6081b15b5d59198157966cc Mon Sep 17 00:00:00 2001 From: ouidade Date: Thu, 8 Apr 2021 22:02:27 +0200 Subject: [PATCH] =?UTF-8?q?h3=20equipe=20chasse=20contenu=20d'apr=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epau-antimatter/css-compiled/template.css | 129 ++++++------ .../scss/template/_custom.scss | 188 ++++++++++-------- .../templates/modular/accueil.html.twig | 28 ++- .../templates/modular/personnes.html.twig | 8 +- .../templates/modular/text.html.twig | 24 +-- 5 files changed, 204 insertions(+), 173 deletions(-) diff --git a/user/themes/epau-antimatter/css-compiled/template.css b/user/themes/epau-antimatter/css-compiled/template.css index bc14d53..139dfc1 100644 --- a/user/themes/epau-antimatter/css-compiled/template.css +++ b/user/themes/epau-antimatter/css-compiled/template.css @@ -860,10 +860,19 @@ ul.pagination { .titre_bsn p { padding-right: 15%; } -.after-h1 { - transition: width 5s ease-in-out; } - .after-h1:hover { - width: 100%; } +@keyframes anim { + 0% { + width: 0%; } + 100% { + width: 100%; } } + +.after-h1 .test { + opacity: 0; + transition: opacity 1s ease-in-out; + animation: anim 5s 500ms 1 normal ease-in-out forwards; } + +.after-h1:hover .test { + opacity: 1; } .programmes { display: flex; @@ -907,61 +916,67 @@ ul.pagination { padding-bottom: 6rem; padding-top: 2rem; } -#mozaique_personnes { - display: flex !important; - flex-direction: row; - flex-wrap: wrap; - width: 70%; - margin: auto; } - .mozaique_personnes { background-color: #d5d2d1; } - .mozaique_personnes h3 { - padding-top: 3rem; - padding-left: 15%; - padding-right: 15%; - font-family: "Sarabun"; - font-weight: 800; - font-size: 1rem; - line-height: 20px; - text-align: left; } - -.mozaique { - display: flex; - flex-direction: row; - width: 50%; - padding: 0.5rem; } - -.info { - background-color: #fff; - display: flex; - flex-direction: column; - font-family: "Sarabun", sans-serif; - width: 30rem; - height: 30rem; } - .info h5 { - font-weight: 900; - font-size: 1.3rem; - margin: 0; - padding-top: 1rem; - padding-left: 1rem; } - .info h6 { - font-weight: 300; - font-size: 1.1rem; - font-style: italic; - margin: 0; - padding-left: 1rem; - padding-bottom: 1rem; } - -.info:hover { - background-color: #000; - color: #fff; - transition: 0.2s ease-in-out; } - -.portrait { - background: transparent !important; } - .portrait img { - width: 5rem !important; } + .mozaique_personnes .equipe { + display: flex !important; + flex-direction: row; + flex-wrap: wrap; + width: 65%; + margin: auto; } + .mozaique_personnes .equipe h3 { + padding-top: 3rem; + min-width: 100%; + font-family: "Sarabun"; + font-weight: 800; + font-size: 1rem; + line-height: 20px; + text-align: left; } + .mozaique_personnes .equipe .personne { + display: flex; + flex-direction: row; + flex-wrap: wrap; + padding-right: 0.5rem; + padding-bottom: 0.5rem; } + .mozaique_personnes .equipe .personne .mozaique { + display: flex; + flex-direction: row; + justify-content: flex-end; + max-width: 30rem; } + .mozaique_personnes .equipe .personne .mozaique .portrait { + min-width: 10rem; + min-height: 10rem; + background: red !important; } + .mozaique_personnes .equipe .personne .mozaique .portrait img { + max-width: 5rem !important; + max-height: 5rem !important; } + .mozaique_personnes .equipe .personne .mozaique .info { + background-color: #fff; + display: flex; + flex-direction: column; + font-family: "Sarabun", sans-serif; + width: 50%; + height: 30rem; + min-width: 15rem; } + .mozaique_personnes .equipe .personne .mozaique .info h5 { + font-weight: 900; + font-size: 1.3rem; + margin: 0; + padding-top: 1rem; + padding-right: 1rem; + padding-left: 1rem; } + .mozaique_personnes .equipe .personne .mozaique .info h6 { + font-weight: 300; + font-size: 1.1rem; + font-style: italic; + margin: 0; + padding-right: 1rem; + padding-bottom: 1rem; + padding-left: 1rem; } + .mozaique_personnes .equipe .personne .mozaique .info:hover { + background-color: #000; + color: #fff; + transition: 0.2s ease-in-out; } .bouton { border: solid; diff --git a/user/themes/epau-antimatter/scss/template/_custom.scss b/user/themes/epau-antimatter/scss/template/_custom.scss index bda10a8..0ec96c4 100644 --- a/user/themes/epau-antimatter/scss/template/_custom.scss +++ b/user/themes/epau-antimatter/scss/template/_custom.scss @@ -150,10 +150,23 @@ } } +@keyframes anim { + 0% {width: 0%;} + 100% {width: 100%} +} + .after-h1 { // fonctionne mais manque "when in View" - transition: width 5s ease-in-out; + .test { + opacity: 0; + transition: opacity 1s ease-in-out; + animation: anim 5s 500ms 1 normal ease-in-out forwards; + } + &:hover { - width: 100%; + .test { + opacity: 1; + } + // opacity: 1; // transition: width 5s ease-in-out; } } @@ -332,118 +345,125 @@ } -#mozaique_personnes { - display: flex !important; - flex-direction: row; - flex-wrap: wrap; - // margin-left: 15%; - // padding-right: 15%; - width: 70%; - margin: auto; -} +.mozaique_personnes { + background-color: #d5d2d1; - .mozaique_personnes { - background-color: #d5d2d1; - h3 { - padding-top: 3rem; - padding-left: 15%; - padding-right: 15%; - font-family: "Sarabun"; - font-weight: 800; - font-size: 1rem; - line-height: 20px; - text-align: left; - } + .equipe { + display: flex !important; + flex-direction: row; + flex-wrap: wrap; + // margin-left: 15%; + // padding-right: 15%; + width: 65%; + margin: auto; + // justify-items: center; + h3 { + // display: flex; + // flex-grow: 1; + padding-top: 3rem; + // padding-left: 15%; + min-width: 100%; + font-family: "Sarabun"; + font-weight: 800; + font-size: 1rem; + line-height: 20px; + text-align: left; } + .personne { + display: flex; + flex-direction: row; + flex-wrap: wrap; + // width: 50%; + + padding-right: 0.5rem; + padding-bottom: 0.5rem; + + .mozaique { + display: flex; + flex-direction: row; -// .personne { -// // display: flex; -// // flex-direction: row; -// width: 50%; -// -// } + justify-content: flex-end; + max-width: 30rem; + .portrait { + min-width: 10rem; + min-height: 10rem; + // max-width:50% !important; + background: red !important; -.mozaique { - // background-color: #fff; - display: flex; - flex-direction: row; - width: 50%; - // max-width: 35%; - padding: 0.5rem; - // align-items: stretch; - // position: relative; - // margin-right: 34%; - // margin-bottom: 6rem; - // margin-left: 15%; - // height: auto; + img { + max-width: 5rem !important; + max-height: 5rem !important; + } + } + + .info { + background-color: #fff; + display:flex; + flex-direction: column; + font-family: $font-family-default; + width: 50%; + height: 30rem; + min-width: 15rem; + + h5 { + font-weight: 900; + font-size: 1.3rem; + margin: 0; + padding-top: 1rem; + padding-right: 1rem; + padding-left: 1rem; + } + h6 { + font-weight: 300; + font-size: 1.1rem; + font-style: italic; + margin: 0; + padding-right: 1rem; + padding-bottom: 1rem; + padding-left: 1rem; + } + + &:hover { + background-color: #000; + color: #fff; + transition:0.2s ease-in-out; + } + } + } + } + } } -// .personne { -// width: 45%; -// display: flex; -// flex-direction: row; -// } + + + + + + // .mozaique :hover { // background-color: #000; // color: #fff; // } - .info { - background-color: #fff; - display:flex; - flex-direction: column; - font-family: $font-family-default; - width: 30rem; - height: 30rem; - - h5 { - font-weight: 900; - font-size: 1.3rem; - margin: 0; - padding-top: 1rem; - padding-left: 1rem; - } - h6 { - font-weight: 300; - font-size: 1.1rem; - font-style: italic; - margin: 0; - padding-left: 1rem; - padding-bottom: 1rem; - } - } // comment faire pour donner une largueur à .info 2 fois plus grande que .portrait? les img de .portrait ne semblent pas vouloir bouger... - .info:hover { - background-color: #000; - color: #fff; - transition:0.2s ease-in-out; - } -.portrait { - // max-width:50% !important; - background: transparent !important; - img { - width: 5rem !important; - } - -} diff --git a/user/themes/epau-antimatter/templates/modular/accueil.html.twig b/user/themes/epau-antimatter/templates/modular/accueil.html.twig index 18bc588..0148373 100644 --- a/user/themes/epau-antimatter/templates/modular/accueil.html.twig +++ b/user/themes/epau-antimatter/templates/modular/accueil.html.twig @@ -1,16 +1,34 @@ -
- {% set image = page.media.images|first %} +
+ + + +

EPAU

- +
diff --git a/user/themes/epau-antimatter/templates/modular/personnes.html.twig b/user/themes/epau-antimatter/templates/modular/personnes.html.twig index 940c1f8..4c47a77 100644 --- a/user/themes/epau-antimatter/templates/modular/personnes.html.twig +++ b/user/themes/epau-antimatter/templates/modular/personnes.html.twig @@ -1,17 +1,17 @@ -
+
{{ content|raw }} {% for personne in page.header.personnes %} - +
{% if personne.portrait %} - portrait de {{personne.nom}} + photo de {{personne.nom}} {% endif %}
@@ -42,7 +42,7 @@
- +
{% endfor %} diff --git a/user/themes/epau-antimatter/templates/modular/text.html.twig b/user/themes/epau-antimatter/templates/modular/text.html.twig index 87afc4d..fb9d55a 100644 --- a/user/themes/epau-antimatter/templates/modular/text.html.twig +++ b/user/themes/epau-antimatter/templates/modular/text.html.twig @@ -3,29 +3,7 @@ {% if image %} {{ image.cropResize(400,400).html('','','align-'~page.header.image_align)|raw }} {% endif %} -
- -

Contact

- - -

- -

Fabienne Dran -Assistante de direction - -Fabienne.Dran@developpement-durable.gouv.fr - - 33 (0)1 40 81 93 27 - +33 (0)7 86 50 33 31 -

- - -
- - - -
{{ content|raw }} -
+