Skip to content

Commit

Permalink
Improve schedule for printing
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaborie committed Aug 23, 2019
1 parent 1c1c7ba commit defa281
Show file tree
Hide file tree
Showing 4 changed files with 151 additions and 119 deletions.
2 changes: 1 addition & 1 deletion layouts/schedule/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h3>{{ .label }}</h3>
{{ $time := split $slot.start ":" }}
{{ $hh := index $time 0 }}
{{ $mm := index $time 1 }}
<div class="session tag-{{ anchorize (delimit ($sessionPage.Params.tags | default (slice)) " " ) }}"
<div class="session format-{{$sessionPage.Params.format}} tag-{{ anchorize (delimit ($sessionPage.Params.tags | default (slice)) " " ) }}"
style="--room: {{ $index }}; --row-start: {{ $slot.row.start }}; --row-end: {{ $slot.row.end }};">

<span class="start">
Expand Down
32 changes: 31 additions & 1 deletion src/style/pages/_schedule.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
.hero {
.description {
display: flex;
p + p{

p + p {
margin-left: 1em;
}
}
Expand Down Expand Up @@ -163,6 +164,7 @@
.complexity {
display: inline;
max-height: 1em;

svg {
height: 1.5em;
max-width: 1.5em;
Expand Down Expand Up @@ -285,6 +287,7 @@
.speaker-img {
margin-right: var(--space-1);
}

.speaker-name {
display: none;
}
Expand Down Expand Up @@ -317,6 +320,7 @@

background-color: var(--color-hero);
}

.room {
grid-row: calc(var(--room) + 2);
grid-column: 1 / -1;
Expand Down Expand Up @@ -384,3 +388,29 @@
}
}
}

@media print {
.section.schedule main section.schedule .session {
font-size: 24px;

&.format-quickie {
font-size: 18px;
}

a, h4 {
background: inherit;
text-shadow: none;
box-shadow: none;
}
}

.section.schedule main > section.schedule .day .session .speakers.multi {
display: block;

.speaker {
.speaker-name {
display: block;
}
}
}
}
2 changes: 1 addition & 1 deletion static/theme.css

Large diffs are not rendered by default.

Loading

0 comments on commit defa281

Please sign in to comment.