Browse Source

collapse test

master
rdrew 3 months ago
parent
commit
59ae248694
  1. 41
      css/components/islandora_mods.css

41
css/components/islandora_mods.css

@ -49,23 +49,32 @@
font-weight: bold; font-weight: bold;
} }
/*collapsable text on collections pages*/ /*collapsable text on collections pages*/
.text-container { .views-field-field-abstract {
max-width: 600px; /* Adjust as needed */ .text-container {
} max-width: 100%; /* Adjust as needed */
}
.truncated-text { .truncated-text {
max-height: 3em; /* Initial truncation height (~3 lines) */ max-height: 8em; /* Initial truncation height (~3 lines) */
overflow: hidden; overflow: hidden;
transition: max-height 0.3s ease; transition: max-height 0.3s ease;
} }
.truncated-text.full { .truncated-text.full {
max-height: none; /* Show full text */ 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;
}
} }
div#block-olivespwc-views-block-abstract-block-for-collections-info-block {
.more-link { margin: 0;
color: #007bff;
cursor: pointer;
display: inline-block;
margin-top: 5px;
} }

Loading…
Cancel
Save