From 64cd67713e1cafc4b19c619ecc15cd8f8b147d48 Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Wed, 18 Jan 2023 18:04:16 +0100 Subject: [PATCH] changed articles buttons style --- assets/sass/_theme/sections/volumes.sass | 21 ++++++++++++++++++--- layouts/volumes/term.html | 4 ++-- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/assets/sass/_theme/sections/volumes.sass b/assets/sass/_theme/sections/volumes.sass index 3afff66b..40dcd9f2 100644 --- a/assets/sass/_theme/sections/volumes.sass +++ b/assets/sass/_theme/sections/volumes.sass @@ -33,17 +33,32 @@ &:hover text-decoration-color: rgba(0,0,0,1) .item--informations + margin-top: $spacing1 a, button @include meta - background-color: white - border: 1px solid $color-border + @include button-reset cursor: pointer + &::before + background-color: white + border: 1px solid $color-border + margin-right: $spacing1 + padding: half($spacing0) + transition: background 0.3s ease, border 0.3s ease + &:hover::before + background-color: $color-text + border-color: transparent + color: $color-background + button + @include icon-block(eye, before) + a + @include icon-block(download, before) * + * - margin-left: $spacing0 + margin-left: $spacing4 .modal display: none .document-aside @include media-breakpoint-up(desktop) grid-column: 9 / 12 + order: 2 dt @include meta \ No newline at end of file diff --git a/layouts/volumes/term.html b/layouts/volumes/term.html index 72e019c2..86437069 100644 --- a/layouts/volumes/term.html +++ b/layouts/volumes/term.html @@ -13,13 +13,13 @@ <div class="container"> + {{ partial "volumes/document-aside.html" . }} + <div class="content"> {{ partial "volumes/description.html" . }} {{ partial "volumes/table-contents.html" . }} </div> - {{ partial "volumes/document-aside.html" . }} - </div> {{ partial "blocks/list.html" . }} -- GitLab