Browse Source

make collapsible descriptions on event cards

main
rra 3 years ago
parent
commit
885b80f5de
  1. 5
      layouts/partials/calendar_card.html
  2. 4
      static/css/main.css
  3. 1
      static/css/video-box.css

5
layouts/partials/calendar_card.html

@ -11,14 +11,13 @@
</div> </div>
<div class='calendar-meta'> <div class='calendar-meta'>
<div class='calendar-duration'>{{ .Params.duration }}</div> <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 class='calendar-location'>{{ .Params.location | markdownify }}</div>
</div> </div>
<div class='calendar-description'> <div class='calendar-description collapsed' id='event-{{ .Params.uid }}'>
{{.Content}} {{.Content}}
</div> </div>
</article> </article>
</div> </div>

4
static/css/main.css

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

1
static/css/video-box.css

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

Loading…
Cancel
Save