From 0f7ed99ab362cc5d1cc04090d60ecd1703c92a98 Mon Sep 17 00:00:00 2001 From: axolotle Date: Tue, 24 May 2022 21:29:51 +0200 Subject: [PATCH] update PageView to display notes links + misc fixes --- src/components/layouts/PageView.vue | 101 +++++++++++++++++++++++++--- src/pages/Gallery.vue | 13 ++-- src/pages/_partials/MainHeader.vue | 1 + src/pages/kit/KitList.vue | 12 +++- src/store/modules/pages.js | 17 +++++ 5 files changed, 128 insertions(+), 16 deletions(-) diff --git a/src/components/layouts/PageView.vue b/src/components/layouts/PageView.vue index 862e5ab..76aac71 100644 --- a/src/components/layouts/PageView.vue +++ b/src/components/layouts/PageView.vue @@ -1,23 +1,66 @@ @@ -110,6 +165,16 @@ export default { } } + img { + display: block; + max-width: 100%; + max-height: 90vh; + } + + .page-footnotes { + display: none; + } + &-footnote-link { display: inline-block; text-align: center; @@ -122,7 +187,7 @@ export default { border-radius: 1em; padding: 0 .5em; min-width: 1.25em; - max-height: 1.4em; + max-height: 1.5em; margin: 0 .2em; &:hover, @@ -132,7 +197,7 @@ export default { } } - &-footnote-content { + .footnote { background-color: $black; color: $white; font-size: 1.5rem; @@ -148,6 +213,14 @@ export default { // @include media-breakpoint-up(lg) { // max-width: 50%; // } + &-child-list { + margin-top: 0; + } + + &-content + .footnote-child-list { + margin-top: 1rem; + } + &:not(.show) { display: none; @@ -161,5 +234,15 @@ export default { margin: 0 0 1em 2em; } } + + &.small { + font-size: 1rem; + padding: 0; + + .footnote { + font-size: 1rem; + padding: $node-card-spacer-y $node-card-spacer-x; + } + } } diff --git a/src/pages/Gallery.vue b/src/pages/Gallery.vue index 0b5f210..9adbc3e 100644 --- a/src/pages/Gallery.vue +++ b/src/pages/Gallery.vue @@ -28,7 +28,11 @@