Don't render full input witness if user does not press "show all"

This commit is contained in:
natsoni
2024-06-06 17:53:20 +02:00
parent f840ac951b
commit 77d42bfdbb
3 changed files with 39 additions and 50 deletions

View File

@@ -172,42 +172,7 @@ h2 {
}
.vin-witness {
.witness-item.accordioned {
max-height: 300px;
overflow: hidden;
}
input:checked + .witness-item.accordioned {
max-height: none;
}
.witness-toggle {
display: flex;
flex-direction: row;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 1em;
.show-all {
display: inline;
}
.show-less {
display: none;
}
.ellipsis {
visibility: visible;
}
}
input:checked ~ .witness-toggle {
.show-all {
display: none;
}
.show-less {
display: inline;
}
.ellipsis {
visibility: hidden;
}
.witness-item {
overflow: hidden;
}
}