Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
update article page alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitso committed Apr 10, 2018
1 parent bb1708d commit abd1c31
Show file tree
Hide file tree
Showing 7 changed files with 13,849 additions and 5,153 deletions.
2 changes: 1 addition & 1 deletion nurseconnect/static/dist/css/styles.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion nurseconnect/static/dist/css/styles.enhanced.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,19 @@
}

figure {
margin: scale(beta) 0;
width: 100%;
margin: scale(beta) auto;
padding: 0 scale(gamma);
img {
width: 100%;
height: auto;
}
}
figcaption {
padding: 0 scale(gamma);
padding: scale(alpha) scale(gamma) 0 0;
font-family: serif;
font-size: scale(beta);
font-weight: 600;
text-align: center;
text-align: left;
}
&-list {
clear: both;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,16 @@
padding: 0 0 0 1em;
}
figure {
margin: scale(alpha) 0;
width: 100%;
margin: scale(alpha) auto;
padding: 0 scale(alpha);
img {
max-width: 100%;
height: auto;
max-width: 100%;
margin: 0 auto;
}
}
figcaption {
padding: 0 scale(alpha);
padding: scale(alpha) scale(alpha) 0 0;
font-family: serif;
font-weight: 600;
text-align: center;
Expand Down
8 changes: 4 additions & 4 deletions nurseconnect/templates/core/article_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ <h1 class="Paper-headline">{{ self.title }}</h1>
<h2>{{ block.value }}</h2>
{% elif block.block_type == "image" %}
{% if block.value %}
<figure>
{% image block.value width-320 %}
<figcaption>{{ block.value.title }}</figcaption>
</figure>
<figure>
{% image block.value width-320 %}
<figcaption>{{ block.value.title }}</figcaption>
</figure>
{% endif %}
{% elif block.block_type == "numbered_list" %}
{% if block.value %}
Expand Down
Loading

0 comments on commit abd1c31

Please sign in to comment.