Skip to content
Snippets Groups Projects
Unverified Commit b510911e authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Correction de la liste des actualités (#629)

parent 7f51f85b
No related branches found
No related tags found
No related merge requests found
...@@ -23,11 +23,11 @@ ...@@ -23,11 +23,11 @@
display: flex display: flex
margin-bottom: $spacing-3 margin-bottom: $spacing-3
padding-bottom: $spacing-3 padding-bottom: $spacing-3
flex-direction: row
.post-title + p .post-title + p
margin-top: $spacing-2 margin-top: $spacing-2
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
@include grid @include grid
flex-direction: row
margin-bottom: $spacing-5 margin-bottom: $spacing-5
padding-bottom: $spacing-5 padding-bottom: $spacing-5
.post-content .post-content
...@@ -35,6 +35,9 @@ ...@@ -35,6 +35,9 @@
.post-meta .post-meta
> * > *
display: block display: block
@include media-breakpoint-down(desktop)
flex: 1
margin-left: $spacing-2
.media .media
background: none background: none
margin: 0 margin: 0
...@@ -42,6 +45,9 @@ ...@@ -42,6 +45,9 @@
width: 33.33333% width: 33.33333%
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
grid-column: 1/4 grid-column: 1/4
&:empty
background: var(--color-background-alt)
aspect-ratio: 3/2
&, img &, img
aspect-ratio: auto aspect-ratio: auto
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
......
{{ $section_type := . }} {{- $section_type := . -}}
{{ $use_default := (index site.Params $section_type).default_image }} {{- $use_default := (index site.Params $section_type).default_image -}}
{{ $image := index site.Data.website.default "image" }} {{- $image := index site.Data.website.default "image" -}}
{{ if and $use_default $image }} {{- if and $use_default $image -}}
{{ with index site.Params.image_sizes.sections $section_type }} {{ with index site.Params.image_sizes.sections $section_type }}
{{ $sizes := .item }} {{ $sizes := .item }}
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
"sizes" $sizes "sizes" $sizes
) -}} ) -}}
{{ end }} {{ end }}
{{ end }} {{- end -}}
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
</div> </div>
{{ if $options.image }} {{ if $options.image }}
<div class="media"> <div class="media">
{{- if and .Params.image -}} {{- if .Params.image -}}
{{- partial "commons/image.html" {{- partial "commons/image.html"
(dict (dict
"image" .Params.image "image" .Params.image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment