feat: Ajout d'une class grand
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build encountered an error Details

This commit is contained in:
Simon 2023-05-04 16:38:31 +02:00
parent 42e4eee3bb
commit a7d3ac01e9
2 changed files with 17 additions and 6 deletions

View File

@ -42,6 +42,19 @@ body
&:first-child:last-child img
margin: 0 auto
.grand
margin: 1rem calc((960px - 650px) / 2 * -1)
@media screen and (max-width: $size-lg)
margin: 1rem calc((960px - 650px) / 3 * -1)
@media screen and (max-width: $size-md)
margin: 1rem -2rem
@media screen and (max-width: $size-sm)
margin: 1rem -1rem
@media screen and (max-width: $size-xs)
margin: 1rem -.5rem
img
width: 100%
.round
border-radius: 100%
@ -185,7 +198,7 @@ hr
font-size: .9rem
.md
max-width: 645px
max-width: 650px
margin-left: auto
margin-right: auto
@media screen and (max-width: $size-sm)
@ -241,7 +254,8 @@ details > summary
blockquote
font-size: 1em
margin: 50px auto
margin-top: 50px !important
margin-bottom: 50px !important
font-family: Open Sans
font-style: italic
color: #555555
@ -251,9 +265,6 @@ blockquote
background: #EDEDED
position: relative
left: 0
right: 0
max-width: 100%
& > :first-child
margin-top: 0

View File

@ -4,7 +4,7 @@
{{ $path := cond (in .Destination "/") .Destination (path.Join "/" .Page.File.Dir .Destination) }}
{{ $image := .Page.Resources.GetMatch (printf "*%s*" .Destination) }}
{{ with $image }}
{{ $resized := $image.Resize "610x q100 webp" }}
{{ $resized := $image.Resize "960x q100 webp" }}
{{ $path = $resized.RelPermalink }}
{{ end }}
<img src="{{ $path | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} loading="lazy" />