Skip to content

Commit

Permalink
Show divider between sections lacking subsections.
Browse files Browse the repository at this point in the history
There's no section-list child if it's just a list of sections, so add
the border to speech-wrapper instead - but only if it's the last child,
because it's still present when there is a section-list.
  • Loading branch information
dracos committed Dec 5, 2014
1 parent 49488d7 commit 8e4bbd1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion speeches/static/speeches/css/speeches.css

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions speeches/static/speeches/sass/_speeches-bare.scss
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,20 @@ $image-path: '../img' !default;
@media (min-width: $medium-screen) {
@include grid-column(11, $offset:1);
}
}

.speech--section-signpost .section-list,
.speech--section-signpost .speech-wrapper:last-child {
padding-bottom: 1em;
border-bottom: 1px solid $colour_light_grey;
}

.speech--section-signpost .section-list .section-list {
@include grid-column(12, $offset:0);
}

.speech--section-signpost .section-list .section-list,
.speech--section-signpost .section-list .speech-wrapper {
padding-bottom: 0;
border-bottom: none;
}
Expand Down

0 comments on commit 8e4bbd1

Please sign in to comment.