From c68a23b10598c94c16fccf24321a8dbb37138abf Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Tue, 17 Dec 2024 11:06:11 +0200 Subject: [PATCH] Tweak holdings tables for better looks and forward-compatibility. --- themes/finna2/scss/finna/external-data.scss | 28 +++++++++++-------- themes/finna2/scss/finna/reservationlist.scss | 4 +-- .../Helpers/reservationlist-reserve.phtml | 22 ++++++++------- .../RecordTab/holdings-record-urls.phtml | 2 +- .../templates/RecordTab/holdingsarchive.phtml | 12 ++++---- .../templates/RecordTab/holdingsils.phtml | 4 +-- .../RecordTab/holdingsils/electronic.phtml | 2 +- 7 files changed, 40 insertions(+), 34 deletions(-) diff --git a/themes/finna2/scss/finna/external-data.scss b/themes/finna2/scss/finna/external-data.scss index 6a774cb30e8..c82c603c1eb 100644 --- a/themes/finna2/scss/finna/external-data.scss +++ b/themes/finna2/scss/finna/external-data.scss @@ -2,22 +2,23 @@ width: 100%; border: 1px $gray-lighter solid; - .fa-chevron-up, .fa-chevron-down { - font-size: .80em; - vertical-align: middle; - } &.collapsible { + .toggle-collapse { + display: flex; + align-self: center; + } .toggle-expand { display: none; } &.collapsed { - .toggle-collapse { - display: none; - } - .toggle-expand { - display: initial; - } - } + .toggle-collapse { + display: none; + } + .toggle-expand { + display: flex; + align-self: center; + } + } } thead { @@ -38,6 +39,10 @@ } &.external-data-headers { padding-left: 5px; + .icon-link__icon { + font-size: 0.8rem; + + } } &:nth-child(even):not(.info) { background-color: $gray-ultralight; @@ -49,7 +54,6 @@ &.tbl-left { float: left; width: 40%; - font-size: 1.5m; font-weight: 600; } &.tbl-right { diff --git a/themes/finna2/scss/finna/reservationlist.scss b/themes/finna2/scss/finna/reservationlist.scss index d27aa7ae188..fbf4f347b46 100644 --- a/themes/finna2/scss/finna/reservationlist.scss +++ b/themes/finna2/scss/finna/reservationlist.scss @@ -48,6 +48,7 @@ } .reservation-request-table { .reservation-request-buttons { + padding: 10px 15px; display: flex; align-items: center; justify-content: start; @@ -67,8 +68,7 @@ } } .saved-reservation-lists { - padding: 4px; - margin: 2px; + padding: 10px 15px; } } diff --git a/themes/finna2/templates/Helpers/reservationlist-reserve.phtml b/themes/finna2/templates/Helpers/reservationlist-reserve.phtml index d055cc7098e..721ec49a843 100644 --- a/themes/finna2/templates/Helpers/reservationlist-reserve.phtml +++ b/themes/finna2/templates/Helpers/reservationlist-reserve.phtml @@ -6,7 +6,7 @@ return; auth()->getManager()->getUserObject(); ?> -
+
transEsc('ReservationList::Add To Reservation List')?>
@@ -31,15 +31,17 @@ return; reservationList($user)->getListsContainingRecord($this->driver)): ?> -
- transEsc('Saved in')?>:
- +
+
+ transEsc('Saved in')?>:
+ +
diff --git a/themes/finna2/templates/RecordTab/holdings-record-urls.phtml b/themes/finna2/templates/RecordTab/holdings-record-urls.phtml index c4af7ed20df..c85ecaedecf 100644 --- a/themes/finna2/templates/RecordTab/holdings-record-urls.phtml +++ b/themes/finna2/templates/RecordTab/holdings-record-urls.phtml @@ -14,7 +14,7 @@ } ?> -
+
transEsc('Links')?>
diff --git a/themes/finna2/templates/RecordTab/holdingsarchive.phtml b/themes/finna2/templates/RecordTab/holdingsarchive.phtml index 150c2dd77f5..dc3bfded02d 100644 --- a/themes/finna2/templates/RecordTab/holdingsarchive.phtml +++ b/themes/finna2/templates/RecordTab/holdingsarchive.phtml @@ -3,7 +3,7 @@ driver->tryMethod('archiveRequestAllowed')): ?> auth()->getManager()->getUserObject(); ?> -
+
transEsc('ReservationList::Reserve to Research Room')?>
@@ -17,7 +17,7 @@

-reservationList($this->auth()->getUserObject())->renderReserveTemplate($driver); ?> +reservationList($this->auth()->getUserObject())->renderReserveTemplate($driver); ?> render('RecordTab/holdings-record-urls'); ?> @@ -57,10 +57,10 @@
-
- icon('collapse-open', ['class' => 'toggle-expand'])?> - icon('collapse-close', ['class' => 'toggle-collapse'])?> - escapeHtml($format)?> +