From 379fdcbd09c765ebda6667d4113a9d9b84e7f56c Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Thu, 19 Jan 2023 12:17:03 +0100 Subject: [PATCH] started front for paper --- assets/sass/_theme/sections/papers.sass | 25 ++++++++++++++++++++++ assets/sass/_theme/sections/volumes.sass | 27 +++++++++++++++++++++--- layouts/papers/single.html | 10 ++++----- layouts/partials/papers/authors.html | 2 +- 4 files changed, 54 insertions(+), 10 deletions(-) diff --git a/assets/sass/_theme/sections/papers.sass b/assets/sass/_theme/sections/papers.sass index a9437b6f..b3dc31b9 100644 --- a/assets/sass/_theme/sections/papers.sass +++ b/assets/sass/_theme/sections/papers.sass @@ -4,3 +4,28 @@ .papers @include grid(2, md) @include grid(3, lg) + +.papers__page + .document-content + .container + @include media-breakpoint-up(desktop) + @include grid + .content + @include media-breakpoint-up(desktop) + grid-column: 1 / 9 + section + section + margin-top: $spacing2 + @include media-breakpoint-up(desktop) + margin-top: $spacing4 + .paper-authors + h2 + @include h3 + .authors + @include grid(2, desktop) + article + margin-top: $spacing2 + .name + a + @include h4 + @include stretched-link(before) + text-decoration: none \ No newline at end of file diff --git a/assets/sass/_theme/sections/volumes.sass b/assets/sass/_theme/sections/volumes.sass index 69c05a3c..9a3f1b1d 100644 --- a/assets/sass/_theme/sections/volumes.sass +++ b/assets/sass/_theme/sections/volumes.sass @@ -68,10 +68,31 @@ * + * margin-top: $spacing0 .modal - display: none + // display: none + .modal-content + background-color: $color-background-alt + padding: $spacing3 + position: relative + @include media-breakpoint-up(desktop) + // width: col(8) + margin: auto + .modal-header + margin-bottom: $spacing0 + .btn-close + @include button-reset + @include icon-block(close, before) + position: absolute + right: 0 + top: 0 + h5 + @include h3 .document-aside @include media-breakpoint-up(desktop) grid-column: 9 / 12 order: 2 - dt - @include meta \ No newline at end of file + dl + margin: 0 + dt + @include meta + &:not(:first-of-type) + margin-top: $spacing2 \ No newline at end of file diff --git a/layouts/papers/single.html b/layouts/papers/single.html index d80abbd4..bea5b9a6 100644 --- a/layouts/papers/single.html +++ b/layouts/papers/single.html @@ -10,12 +10,10 @@ <div class="container"> <div class="content"> - <div> - {{ partial "papers/abstract.html" . }} - {{ partial "papers/authors.html" . }} - {{ partial "papers/body.html" . }} - {{ partial "papers/references.html" . }} - </div> + {{ partial "papers/abstract.html" . }} + {{ partial "papers/authors.html" . }} + {{ partial "papers/body.html" . }} + {{ partial "papers/references.html" . }} </div> </div> </div> diff --git a/layouts/partials/papers/authors.html b/layouts/partials/papers/authors.html index 24ec0266..95763e57 100644 --- a/layouts/partials/papers/authors.html +++ b/layouts/partials/papers/authors.html @@ -1,5 +1,5 @@ {{ if .Params.Researchers }} - <section> + <section class="paper-authors"> <h2>{{ i18n "volumes.authors" }}</h2> <div class="authors"> {{ range .Params.Researchers }} -- GitLab