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;
}
/*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;
}

Loading…
Cancel
Save