Skip to content

Commit

Permalink
fix(containers.scss): fix alignment without title
Browse files Browse the repository at this point in the history
fix #102
  • Loading branch information
BcRikko committed Dec 7, 2018
1 parent 19022ce commit 7bf08ab
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
16 changes: 8 additions & 8 deletions css/nes.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/nes.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/nes.min.css

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions scss/elements/containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
}
}

&.is-center {
text-align: center;
}

&.is-right {
text-align: right;
}

&.with-title {
padding-top: 2rem;

Expand All @@ -84,16 +92,12 @@
}

&.is-center {
text-align: center;

> .title {
margin: -2rem auto 1rem;
}
}

&.is-right {
text-align: right;

> .title {
margin: -2rem 0 1rem auto;
}
Expand Down

0 comments on commit 7bf08ab

Please sign in to comment.