From 59ae2486946cb2c36d18b9b62ee30e932e5a8afc Mon Sep 17 00:00:00 2001 From: rdrew Date: Thu, 18 Sep 2025 13:28:57 -0300 Subject: [PATCH] collapse test --- css/components/islandora_mods.css | 41 +++++++++++++++++++------------ 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/css/components/islandora_mods.css b/css/components/islandora_mods.css index 870ed0c..0d33603 100755 --- a/css/components/islandora_mods.css +++ b/css/components/islandora_mods.css @@ -49,23 +49,32 @@ font-weight: bold; } /*collapsable text on collections pages*/ -.text-container { - max-width: 600px; /* Adjust as needed */ -} +.views-field-field-abstract { + .text-container { + max-width: 100%; /* Adjust as needed */ + } -.truncated-text { - max-height: 3em; /* Initial truncation height (~3 lines) */ - overflow: hidden; - transition: max-height 0.3s ease; -} + .truncated-text { + max-height: 8em; /* Initial truncation height (~3 lines) */ + overflow: hidden; + transition: max-height 0.3s ease; + } -.truncated-text.full { - max-height: none; /* Show full text */ + .truncated-text.full { + max-height: none; /* Show full text */ + } + p { + margin: 0; + } + .more-link { + /*color: #007bff;*/ + cursor: pointer; + font-family: var(--font-sans); + display: inline-block; + margin-top: 5px; + float: right; + } } - -.more-link { - color: #007bff; - cursor: pointer; - display: inline-block; - margin-top: 5px; +div#block-olivespwc-views-block-abstract-block-for-collections-info-block { + margin: 0; }