From 3d60fac26639a9f188a329a4dd328e4056c79081 Mon Sep 17 00:00:00 2001 From: Pierre Date: Tue, 21 Jan 2020 18:24:49 +0100 Subject: [PATCH] Ajout section "A la une" avec blocs articles --- content/sommaire.html | 17 ++++++++++++- css/_sq_balint.scss | 52 +++++++++++++++++++++++++++++++++++--- inclure/bloc_article.html | 35 ++++++------------------- inclure/photo_article.html | 8 +++--- 4 files changed, 77 insertions(+), 35 deletions(-) diff --git a/content/sommaire.html b/content/sommaire.html index aeb0e5a..ea82ccb 100644 --- a/content/sommaire.html +++ b/content/sommaire.html @@ -49,7 +49,8 @@
-
+

À la une

+
@@ -58,3 +59,17 @@
+ +
+
+

Nous contacter

+
+
+ +
+
+ +
+
+
+
diff --git a/css/_sq_balint.scss b/css/_sq_balint.scss index abf48ae..f3c49da 100644 --- a/css/_sq_balint.scss +++ b/css/_sq_balint.scss @@ -98,8 +98,8 @@ a, a:hover { background: $bg-mis-en-avant; background-size: cover; background-repeat: no-repeat; - .row{ - padding: 3rem 0; + .container{ + padding: 4rem 0; > div{ margin: 2px 0; } @@ -113,9 +113,10 @@ a, a:hover { flex-direction: column; text-align: center; h3{ + font-weight: 700; + text-transform: uppercase; margin: 1.5rem; color: $bg-diapo-texte; - font-weight: 700; } h4{ font-weight:500; @@ -128,7 +129,50 @@ a, a:hover { #a-la-une{ background: $bg-a-la-une; - height: 500px; + .container{ + padding: 4rem 0; + } + h3{ + font-weight: 700; + text-transform: uppercase; + padding: 1rem; + } +} + +.liste-articles{ + .bloc-article { + height: 100%; + background: white; + outline: 1px solid #DDD; + a { + min-height: 100%; + h2 { + text-align: left; + } + } + } + .bloc-contenu{ + display: flex; + flex-direction: column; + justify-content: space-between; + width: 100%; + min-height: 100%; + position: relative; + } + + .photo_article{ + max-width: 100%; + height: auto; + } + + .bloc-textes{ + padding: 1.5rem; + flex-grow: 1; + } + + .resume-article{ + flex-grow: 1; + } } /**********************************************************************/ diff --git a/inclure/bloc_article.html b/inclure/bloc_article.html index b7933bf..55bdee3 100644 --- a/inclure/bloc_article.html +++ b/inclure/bloc_article.html @@ -4,36 +4,17 @@
-

#TITRE

- [

(#SOUSTITRE|couper{150})

] - [
(#TEXTE|couper{150})
]
- -
- -
- [(#REM) - n'afficher que les mots-clés ou tags dont le groupe est "important" - ] - - - [(#TITRE)] +
+ +

#TITRE

- + [
(#SOUSTITRE|couper{150})
] +
+ [(#DATE|affdate)] +
+ [
(#DESCRIPTIF)
]
- - - - [(#AUTORISER{modifier, article, #ID_ARTICLE}) - n°#ID_ARTICLE - ] -
diff --git a/inclure/photo_article.html b/inclure/photo_article.html index 32edac2..b2cd286 100644 --- a/inclure/photo_article.html +++ b/inclure/photo_article.html @@ -1,11 +1,13 @@ #CACHE{0} [(#ENV{id_article}|=={0}|oui) [(#SESSION{id_auteur}|mult{-1}|setenv{id_article})] ] -
+
- [(#FICHIER|image_recadre{320:180,-,focus}|image_reduire{320,180})] + [(#FICHIER|image_recadre{360:180,-,focus}|image_reduire{360,180})]
- [(#LOGO_SITE_SPIP|image_reduire{320,180})] + + [(#FICHIER|image_recadre{360:180,+,center}|image_reduire{360,180})] +