1
0
mirror of https://github.com/nostalgic-css/NES.css.git synced 2025-08-21 05:21:28 +02:00

Merge pull request #181 from nostalgic-css/change-is-center-container-class

Change is-center container class to is-centered
This commit is contained in:
Trezy
2018-12-13 16:30:49 -06:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -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];

View File

@@ -55,8 +55,8 @@
<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">

View File

@@ -31,7 +31,7 @@
border-radius: 4px;
}
&.is-center {
&.is-centered {
text-align: center;
}
@@ -50,7 +50,7 @@
background-color: $background-color;
}
&.is-center {
&.is-centered {
> .title {
margin: -2rem auto 1rem;
}
@@ -127,7 +127,7 @@
margin-top: -1.5rem;
}
&.is-center {
&.is-centered {
> .title {
margin: -1.5rem auto 1rem;
}