Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions sass/elements/_schedule.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ $white: #ffffff;
$black: #000000;
$shadow: rgba(0, 0, 0, 0.5);


.schedule-key-icon {
font-size: 0.6em;
color: $black;
Expand Down Expand Up @@ -53,7 +52,6 @@ $shadow: rgba(0, 0, 0, 0.5);
&:first-of-type {
width: 5%;
}

}
}

Expand Down Expand Up @@ -94,7 +92,6 @@ $shadow: rgba(0, 0, 0, 0.5);
}
}


.day-header {
text-align: center;
font-weight: 500;
Expand Down Expand Up @@ -169,6 +166,13 @@ $sustainer-color: tint($primary-color, 40%);
.schedule-card {
display: flex;
flex-direction: row;
background: white;
border-radius: 1rem;
padding: 0.5rem;
margin: 1rem;
img {
border-radius: 0.5rem;
}
}

.card-details {
Expand All @@ -183,7 +187,8 @@ $sustainer-color: tint($primary-color, 40%);

@include media-breakpoint-down(md) {
.schedule-keys .key-row {
.h5, .h6 {
.h5,
.h6 {
display: block;
margin-top: 10px;
}
Expand All @@ -197,7 +202,8 @@ $sustainer-color: tint($primary-color, 40%);
}
.schedule-keys .key-row {
text-align: left;
.h5, .h6 {
.h5,
.h6 {
display: block;
margin-top: 10px;
}
Expand Down
42 changes: 26 additions & 16 deletions views/schedule_week.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -139,25 +139,35 @@
{{else}}
<div class="tab-pane" id="{{.Day.Weekday}}" role="tabpanel" aria-labelledby="{{.Day.Weekday}}-tab">
{{end}}
<ul class="p-0">
<ul class="p-0 mb-5">
{{range .Shows}}
<li class="schedule-card">
<img src="https://ury.org.uk{{.ShowArtURL}}" width="128" height="128">
<div class="card-details pb-0">
<h3>
{{if .PageURL}}
<a href="{{.PageURL}}">{{.Name}}</a>
{{if .PageURL}}
<a href="{{.PageURL}}" class="schedule-card-link">
<li class="schedule-card">
<img src="https://ury.org.uk{{.ShowArtURL}}" width="128" height="128">
<div class="card-details pb-0">
<h3>{{.Name}}</h3>
{{if .ShowWeekDay}}
<h4>{{.Start.Format "Monday 15:04"}} - {{.Finish.Format "Monday 15:04"}}</h4>
{{else}}
<h4>{{.Start.Format "15:04"}} - {{.Finish.Format "15:04"}}</h4>
{{end}}
</div>
</li>
</a>
{{else}}
<li class="schedule-card">
<img src="https://ury.org.uk{{.ShowArtURL}}" width="128" height="128">
<div class="card-details pb-0">
<h3>{{.Name}}</h3>
{{if .ShowWeekDay}}
<h4>{{.Start.Format "Monday 15:04"}} - {{.Finish.Format "Monday 15:04"}}</h4>
{{else}}
{{.Name}}
<h4>{{.Start.Format "15:04"}} - {{.Finish.Format "15:04"}}</h4>
{{end}}
</h3>
{{if .ShowWeekDay}}
<h4>{{.Start.Format "Monday 15:04"}} - {{.Finish.Format "Monday 15:04"}}</h4>
{{else}}
<h4>{{.Start.Format "15:04"}} - {{.Finish.Format "15:04"}}</h4>
{{end}}
</div>
</li>
</div>
</li>
{{end}}
{{end}}
</ul>
</div>
Expand Down