Skip to content

Commit

Permalink
refactor(containers): change is-center to is-centered
Browse files Browse the repository at this point in the history
BREAKING CHANGE: class is-center change

#178
  • Loading branch information
guastallaigor committed Dec 12, 2018
1 parent 3d0dbfa commit 46e5219
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/containers.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stories.add('container', () => {
const isRounded = boolean('is-rounded', false) ? 'is-rounded' : '';
const alignment = radios('alignment', {
default: '',
'is-center': 'is-center',
'is-centered': 'is-centered',
'is-right': 'is-right',
}, '');
const selectedClasses = [withTitle, isDark, isRounded, alignment];
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ <h2 class="title">Buttons</h2>
<section class="nes-container with-title">
<h2 class="title">Containers</h2>
<div class="containers">
<div class="nes-container with-title is-center">
<p class="title">Container.is-center</p>
<div class="nes-container with-title is-centered">
<p class="title">Container.is-centered</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>
<div class="nes-container is-dark with-title">
Expand Down
6 changes: 3 additions & 3 deletions scss/elements/containers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
border-radius: 4px;
}

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

Expand All @@ -50,7 +50,7 @@
background-color: $background-color;
}

&.is-center {
&.is-centered {
> .title {
margin: -2rem auto 1rem;
}
Expand Down Expand Up @@ -127,7 +127,7 @@
margin-top: -1.5rem;
}

&.is-center {
&.is-centered {
> .title {
margin: -1.5rem auto 1rem;
}
Expand Down

0 comments on commit 46e5219

Please sign in to comment.