Unify event list view on organizer and event-series (#4702)

This commit is contained in:
Richard Schreiber
2024-12-18 13:32:26 +01:00
committed by GitHub
parent b45d58b60e
commit 5b99788354
10 changed files with 203 additions and 246 deletions

View File

@@ -412,14 +412,6 @@ $(function () {
});
questions_init_profiles($("body"));
// Subevent choice
if ($(".subevent-toggle").length) {
$(".subevent-list").hide();
$(".subevent-toggle").show().click(function () {
$(".subevent-list").slideToggle(300);
$(this).slideToggle(300).attr("aria-expanded", true);
});
}
if (sessionStorage) {
$("[data-save-scrollpos]").on("click submit", function () {
sessionStorage.setItem('scrollpos', window.scrollY);

View File

@@ -235,33 +235,6 @@ div.front-page {
}
}
.subevent-list {
background-color: white;
.row {
margin: 0;
}
.label {
text-decoration: none;
}
.subevent-row a {
display: block;
color: $text-color;
padding: 3px 0;
}
.subevent-row:nth-child(2n) a {
background-color: $gray-lighter;
}
.subevent-row:hover a {
background-color: darken($gray-lighter, 10%);
}
.subevent-row .row > div {
padding: 5px;
min-height: 35px; /* label height */
vertical-align: middle;
}
}
.calendar-nav, .calendar-nav li {
list-style: none;
margin: 0;

View File

@@ -412,6 +412,13 @@ details.details-open .panel-title::before {
margin-right: .25em;
}
.panel-subhead {
margin-bottom: 15px;
padding: 15px;
background: $table-bg-accent;
border-bottom: 1px solid $table-border-color;
}
details {
list-style: none;
}
@@ -588,10 +595,10 @@ h2 .label {
margin: 0;
padding: 0;
li {
& > li, & > .row {
padding: 15px 0;
}
li+li {
& > li+li, & > .row + .row {
border-top: 1px solid $table-border-color;
}
}