From 10c4abfa8218cc51f714609146e797efedc42799 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 7 Apr 2022 22:49:12 +0200 Subject: [PATCH] bibliography improvment #1257 --- assets/css/app.scss | 82 +++++++++++++- assets/css/base/_fonts.scss | 9 ++ src/pages/Bibliographie.vue | 206 ++++++++++++++++++++++++++++++++---- 3 files changed, 274 insertions(+), 23 deletions(-) diff --git a/assets/css/app.scss b/assets/css/app.scss index cc5d98f..0a48e6d 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -31,8 +31,8 @@ that is currently Firefox-only */ body{ color: #1a1a1a; - background-image: url('/static/img/grille-ligne-de-base.png'); - background-repeat: repeat; + // background-image: url('/static/img/grille-ligne-de-base.png'); + // background-repeat: repeat; } #root{ @@ -927,14 +927,88 @@ section[role="main-content"]{ padding:0; li{ padding:0; - margin:0 0 1.5em 0; + margin:0 0 $base-line 0; h2{ margin:0; - @include title2black; + @include title1black; } p{ margin:0; } + + span.date{ + @include title2black; + font-weight: 600; + } + + aside{ + overflow: hidden; + h5{ + @include title2black; + margin: $base-line / 2 0; + cursor: pointer; + // padding-left: 1em; + // position: relative; + &:before{ + cursor: pointer; + content:"\2304"; + position: relative; + display: inline-block; + top: -4px; + // transform-origin: center; + // transform: rotateZ(-90deg); + } + } + ul{ + max-height: 1px; + transition: all 0.3s ease-in-out; + padding-left: 1em; + li{ + margin-bottom: $base-line / 2; + } + } + + &.opened{ + h5{ + &:before{ + top: 4px; + content:"\2303"; + // transform: rotateZ(90deg); + } + } + ul{ + max-height: 100em; + } + + } + } + } + &.manifestations{ + li{ + max-height: 0.2px; + margin-bottom:0; + overflow: hidden; + transition: all 1s ease-in-out; + &.active{ + max-height: 10em; + } + .wrapper{ + margin-bottom: $base-line; + } + } + } + } + ul.authors-filters{ + li{ + @include title4black; + line-height: $base-line / 2; + span{ + cursor: pointer; + color: $gris; + &.active{ + color: $grisfonce; + } + } } } } diff --git a/assets/css/base/_fonts.scss b/assets/css/base/_fonts.scss index 00ffed1..98c801d 100644 --- a/assets/css/base/_fonts.scss +++ b/assets/css/base/_fonts.scss @@ -55,6 +55,15 @@ footer[role="tools"] .row>nav{ line-height: $base-line / 2; } +@mixin title2blue { + @include fontserif; + font-size: 1.134em; + color: $grisfonce; + font-weight: 400; + margin:0; + line-height: $base-line / 2; +} + @mixin title3black { @include fontserif; font-size: 1em; diff --git a/src/pages/Bibliographie.vue b/src/pages/Bibliographie.vue index b7633df..78af194 100644 --- a/src/pages/Bibliographie.vue +++ b/src/pages/Bibliographie.vue @@ -28,39 +28,94 @@ - -