Skip to content

Commit

Permalink
apps/documents/chapter_detail: rm calls names. assets/document: add a…
Browse files Browse the repository at this point in the history
…dditional styling fixes #3596
  • Loading branch information
philli-m authored and fuzzylogic2000 committed May 6, 2021
1 parent cd4944e commit 9c6077f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="l-wrapper">
<div class="l-center-8">
{% if chapter_list|length > 1 %}
<nav class="doc-toc u-border" aria-label="{% trans 'Table of Contents' %}">
<nav class="doc-toc" aria-label="{% trans 'Table of Contents' %}">
<button
class="doc-toc__toggle {% if object.prev %}collapsed{% endif %}"
data-toggle="collapse"
Expand All @@ -38,7 +38,7 @@ <h2 class="doc-toc__title">{% trans 'Table of Contents' %}</h2>
</nav>
{% endif %}

<div class="chapter u-border">
<div class="chapter">
<h2 class="chapter-title">{{ object.name }}</h2>

{% for paragraph in object.paragraphs.all %}
Expand Down
6 changes: 4 additions & 2 deletions meinberlin/assets/scss/components/_document.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
.paragraph {
margin-bottom: $spacer / 2;
margin-bottom: $spacer;
border: solid 1px $border-color;
border-radius: 5px;
}

.chapter-title,
.paragraph__content,
.paragraph__actions {
background-color: $body-bg;
padding: $padding;
}

Expand All @@ -20,4 +21,5 @@

.paragraph__actions {
text-align: right;
border-top: solid 1px $border-color;
}

0 comments on commit 9c6077f

Please sign in to comment.