mirror of
https://github.com/nostalgic-css/NES.css.git
synced 2025-01-17 21:58:27 +01:00
refactor(containers): change is-center to is-centered
BREAKING CHANGE: class is-center change #178
This commit is contained in:
parent
3d0dbfae7f
commit
46e5219786
@ -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];
|
||||
|
@ -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">
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user