diff --git a/assets/sass/_theme/sections/persons.sass b/assets/sass/_theme/sections/persons.sass index bebf9ed596b39bfea61938c7c93935209c7c644a..fe41b6230271b935f1b386e4a4c1f58e3ed88a34 100644 --- a/assets/sass/_theme/sections/persons.sass +++ b/assets/sass/_theme/sections/persons.sass @@ -164,18 +164,25 @@ ol.persons .avatar margin-bottom: 0 width: col(3) - -@include media-breakpoint-up(lg) - .persons__page + .lead + margin-bottom: $spacing2 + .roles + a + @include small + .person-programs + margin-top: $spacing4 + @include media-breakpoint-down(lg) + .roles + margin-top: $spacing2 + @include media-breakpoint-up(lg) .informations @include grid margin-bottom: $spacing2 - > div - &:first-of-type - grid-column: 1 / 9 - &:nth-of-type(2) - grid-column: 9 / 13 - + > div:first-of-type + grid-column: 1 / 9 + .roles + grid-column: 9 / 13 + text-align: right .lead + div margin-top: $spacing2 diff --git a/layouts/partials/GetBodyclass b/layouts/partials/GetBodyclass index fd7bf370af4f9857a98bfcd1b6014243e2f2fbb7..8663c304c5ed0d448370c09f9751fccb55dbe543 100644 --- a/layouts/partials/GetBodyclass +++ b/layouts/partials/GetBodyclass @@ -4,7 +4,7 @@ {{- $bodyclass = printf "page-%s" $bodyclass -}} {{- end -}} -{{- if or .Params.full_width (and (eq .Kind "section") (eq .Type "posts")) .Params.diplomas -}} +{{- if or .Params.full_width (and (eq .Kind "section") (eq .Type "posts")) -}} {{- $bodyclass = printf "full-width %s" $bodyclass -}} {{- end -}} diff --git a/layouts/partials/persons/programs.html b/layouts/partials/persons/programs.html index 6162aea256e57ef7e05cf412aefb3d7f5c20d144..aabfaa22b44050aa93856f8f7806959a5526c07e 100644 --- a/layouts/partials/persons/programs.html +++ b/layouts/partials/persons/programs.html @@ -1,7 +1,7 @@ {{ $slug := .slug }} -<section> +<section class="person-programs"> <div class="top"> - <h2>{{ i18n "persons.programs" }}</h2> + <h2 class="h5">{{ i18n "persons.programs" }}</h2> </div> <ol class="programs" itemscope itemtype="https://schema.org/CreativeWork"> {{ range .programs }} diff --git a/layouts/persons/single.html b/layouts/persons/single.html index 586b4d1a055ff26391d42216c007b4528b3305a3..bcf64d38c5ee99299a948a0804a4e93d82b09423 100644 --- a/layouts/persons/single.html +++ b/layouts/persons/single.html @@ -40,20 +40,20 @@ </div> {{ end }} </div> - <div> - {{ range $programsForAdministrator }} - {{ $program := . }} + {{ range $programsForAdministrator }} + {{ $program := . }} + <div class="roles"> {{ range .Params.roles }} {{ $role := .title }} {{ if in .persons $slug }} <p> {{ safeHTML $role }}<br> - <a href="{{ $program.Permalink }}" class="link link-more">{{ safeHTML $program.Title }}</a> + <a href="{{ $program.Permalink }}" class="link">{{ safeHTML $program.Title }}</a> </p> {{ end }} {{ end }} - {{ end }} - </div> + </div> + {{ end }} </div> </div>