From 28c008ae1ff6dd7e888e2ae2747a36309c3daa9d Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 12 Jan 2024 12:16:29 +0100 Subject: [PATCH] improved entite content layout #2325 --- src/api/gql/entite.fragment.gql | 4 ++++ src/assets/main.scss | 28 +++++++++++++++++++++------- src/components/contents/Entite.vue | 8 +++++--- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/src/api/gql/entite.fragment.gql b/src/api/gql/entite.fragment.gql index 53228ef..08e49bc 100644 --- a/src/api/gql/entite.fragment.gql +++ b/src/api/gql/entite.fragment.gql @@ -2,6 +2,10 @@ fragment EntiteFields on Entite { action menacemaintien title + image { + alt + url + } sources { description images { diff --git a/src/assets/main.scss b/src/assets/main.scss index b3e0cb3..845c926 100644 --- a/src/assets/main.scss +++ b/src/assets/main.scss @@ -163,7 +163,7 @@ body{ $cartouch_width : 450px; @mixin font_questions{ font-size: 1em; - font-weight: 300; + font-weight: 500; line-height: 1.4; } @mixin font_reponses{ @@ -331,19 +331,33 @@ body{ >section{ padding-bottom: 2em; } + >section.image{ + img{ + max-width: 100%; + } + } .sources{ - padding-top: 1em; + // padding-top: 1em; .source{ padding-top: 0.5em; - div.date{ - display: block; - font-weight: 100; - font-size: 0.882em; - padding: 0 0 0.5em 0; + // div.date{ + // display: block; + // font-weight: 100; + // font-size: 0.882em; + // padding: 0 0 0.5em 0; + // } + >section.description{ + >div{ + // @include font_reponses(); + font-size: inherit; + padding-bottom: 1em; + } + } .liens{ a{ text-decoration: underline; + @include font_reponses(); } } } diff --git a/src/components/contents/Entite.vue b/src/components/contents/Entite.vue index 782e8a3..edb5cae 100644 --- a/src/components/contents/Entite.vue +++ b/src/components/contents/Entite.vue @@ -42,7 +42,9 @@ export default {