From ba097f8c80343060e64f238147d229c509ed202a Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Wed, 15 Feb 2023 14:28:15 +0100 Subject: [PATCH] fixed diploma presentation --- assets/sass/_theme/sections/diplomas.sass | 13 ++++++++++++- layouts/diplomas/term.html | 11 +++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/assets/sass/_theme/sections/diplomas.sass b/assets/sass/_theme/sections/diplomas.sass index 05c8bdc8..66621a8e 100644 --- a/assets/sass/_theme/sections/diplomas.sass +++ b/assets/sass/_theme/sections/diplomas.sass @@ -154,4 +154,15 @@ ul.diplomas ol.programs li @include grid(2, desktop) - align-items: start \ No newline at end of file + align-items: start + a + @include media-breakpoint-between(sm, desktop) + display: flex + margin-right: $spacing0 + &::after + bottom: unset + + p + margin-top: $spacing0 + @include media-breakpoint-down(sm) + &::after + transform: translateY(50%) \ No newline at end of file diff --git a/layouts/diplomas/term.html b/layouts/diplomas/term.html index 6e518d4f..6751e223 100644 --- a/layouts/diplomas/term.html +++ b/layouts/diplomas/term.html @@ -8,13 +8,16 @@ {{- range .Pages -}} <li> {{- $title := partial "PrepareHTML" .Title -}} + {{/* TODO: check title class relevance */}} <a href="{{ .Permalink }}" class="title" title="{{ safeHTML (i18n "commons.more_aria" (dict "Title" $title)) }}"> {{- $title -}} </a> - <p class="description"> - {{/* TODO: replace with description_short */}} - {{- partial "PrepareHTML" .Params.presentation -}} - </p> + {{ if .Params.presentation }} + <p class="description"> + {{/* TODO: replace with description_short */}} + {{- partial "PrepareHTML" .Params.presentation -}} + </p> + {{ end }} </li> {{- end -}} </ol> -- GitLab