Skip to content

Commit 0e66d0b

Browse files
authored
Merge pull request #181 from nostalgic-css/change-is-center-container-class
Change is-center container class to is-centered
2 parents 7f3cf6e + ae8ec30 commit 0e66d0b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/containers.stories.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ stories.add('container', () => {
1212
const isRounded = boolean('is-rounded', false) ? 'is-rounded' : '';
1313
const alignment = radios('alignment', {
1414
default: '',
15-
'is-center': 'is-center',
15+
'is-centered': 'is-centered',
1616
'is-right': 'is-right',
1717
}, '');
1818
const selectedClasses = [withTitle, isDark, isRounded, alignment];

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ <h2 class="title">Buttons</h2>
5555
<section class="nes-container with-title">
5656
<h2 class="title">Containers</h2>
5757
<div class="containers">
58-
<div class="nes-container with-title is-center">
59-
<p class="title">Container.is-center</p>
58+
<div class="nes-container with-title is-centered">
59+
<p class="title">Container.is-centered</p>
6060
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
6161
</div>
6262
<div class="nes-container is-dark with-title">

scss/elements/containers.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
border-radius: 4px;
3232
}
3333

34-
&.is-center {
34+
&.is-centered {
3535
text-align: center;
3636
}
3737

@@ -50,7 +50,7 @@
5050
background-color: $background-color;
5151
}
5252

53-
&.is-center {
53+
&.is-centered {
5454
> .title {
5555
margin: -2rem auto 1rem;
5656
}
@@ -127,7 +127,7 @@
127127
margin-top: -1.5rem;
128128
}
129129

130-
&.is-center {
130+
&.is-centered {
131131
> .title {
132132
margin: -1.5rem auto 1rem;
133133
}

0 commit comments

Comments
 (0)