Skip to content

Commit

Permalink
Fix text feature alignment #4
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Jul 25, 2018
1 parent 26e86a6 commit 1128b7e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* Added blueprint option for `continue_link` [#45](https://github.com/getgrav/grav-theme-quark/issues/45)
* Added blueprint option for Feature `class` [#14](https://github.com/getgrav/grav-theme-quark/issues/14)
* Fixed `Duplicate ID` issues with modular sections. Might break CSS on first load, need to refresh to pick up new CSS [#24](https://github.com/getgrav/grav-theme-quark/issues/24)
* Fixed Text feature alignment issue [#7](https://github.com/getgrav/grav-theme-quark/issues/4)

# v1.0.3
## 05/11/2018
Expand Down
4 changes: 3 additions & 1 deletion css-compiled/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css-compiled/theme.min.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions scss/theme/_onepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,8 @@
.modular-text {
padding-top: 4rem;
padding-bottom: 4rem;

.columns.left {
flex-direction: row-reverse;
}
}
4 changes: 2 additions & 2 deletions templates/modular/text.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

<section class="section modular-text {{ page.header.class}} bg-gray">
<section class="container {{ grid_size }}">
<div class="columns">
<div class="columns {{ page.header.image_align|default('align-right') }}">
<div class="column col-6 col-md-12">
{{ content }}
</div>
<div class="column col-6 col-md-12">
{% if image %}
{{ image.html('','','align-'~page.header.image_align) }}
{{ image.html }}
{% endif %}
</div>
</div>
Expand Down

0 comments on commit 1128b7e

Please sign in to comment.