make collapsible descriptions on event cards

This commit is contained in:
rra 2021-07-12 16:51:28 +02:00
parent 57751269f9
commit 885b80f5de
3 changed files with 5 additions and 5 deletions

View File

@ -11,14 +11,13 @@
</div>
<div class='calendar-meta'>
<div class='calendar-duration'>{{ .Params.duration }}</div>
<span class='descr_button' id='toggle-button' onclick="toggleDescription('#event-{{ .Params.uid }}')"> <a href='#'> </a></span>
<div class='calendar-location'>{{ .Params.location | markdownify }}</div>
</div>
<div class='calendar-description'>
<div class='calendar-description collapsed' id='event-{{ .Params.uid }}'>
{{.Content}}
</div>
</article>
</div>

View File

@ -250,7 +250,6 @@ footer.post-footer {
.calendar-meta {
display: flex;
border-bottom: 2px solid cornflowerblue;
justify-content: space-between;
}
@ -289,6 +288,9 @@ footer.post-footer {
padding-left: 1em;
padding-right: 1em;
padding-bottom: 0.5em;
display: block;
overflow: hidden;
border-top: 2px solid cornflowerblue;
}
.calendar-description p {

View File

@ -81,7 +81,6 @@
.description{
padding: 1em;
display: block;
/*transition: height 0.5s linear;*/
overflow: hidden;
border-top: 2px solid var(--video-border-color);
}