Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(breaking changes)Add prefix to class name #82

Merged
merged 8 commits into from
Dec 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/balloons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ stories.add('balloon', () => {
'from-left': 'from-left',
'from-right': 'from-right',
}, '');
return `<div class="balloon ${selectedClass}"> <p>Hello NES.css</p> </div>`;
return `<div class="nes-balloon ${selectedClass}"> <p>Hello NES.css</p> </div>`;
});
2 changes: 1 addition & 1 deletion docs/buttons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ stories.add('button', () => {
'is-error': 'is-error',
'is-disabled': 'is-disabled',
}, '');
return `<button type="button" class="btn ${extraClass}">Normal</button>`;
return `<button type="button" class="nes-btn ${extraClass}">Normal</button>`;
});
2 changes: 1 addition & 1 deletion docs/containers.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stories.add('container', () => {
}, '');
const selectedClasses = [withTitle, isDark, isRounded, alignment];

return `<div class="container ${selectedClasses.join(' ')}">
return `<div class="nes-container ${selectedClasses.join(' ')}">
<p class="title">Container</p>
<p>Good morning. Thou hast had a good night's sleep, I hope.</p>
</div>`;
Expand Down
36 changes: 18 additions & 18 deletions docs/icons.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ stories.addDecorator(withKnobs);

stories.add('icon', () => {
const selectedClass = select('class', {
'icon twitter': 'icon twitter',
'icon facebook': 'icon facebook',
'icon github': 'icon github',
'icon google': 'icon google',
'icon youtube': 'icon youtube',
'icon whatsapp': 'icon whatsapp',
'icon close': 'icon close',
pokeball: 'pokeball',
bulbasaur: 'bulbasaur',
charmander: 'charmander',
squirtle: 'squirtle',
smartphone: 'smartphone',
phone: 'phone',
'octocat animate': 'octocat animate',
ash: 'ash',
'icon trophy': 'icon trophy',
mario: 'mario',
'nes-icon twitter': 'nes-icon twitter',
'nes-icon facebook': 'nes-icon facebook',
'nes-icon github': 'nes-icon github',
'nes-icon google': 'nes-icon google',
'nes-icon youtube': 'nes-icon youtube',
'nes-icon whatsapp': 'nes-icon whatsapp',
'nes-icon close': 'nes-icon close',
'nes-pokeball': 'nes-pokeball',
'nes-bulbasaur': 'nes-bulbasaur',
'nes-charmander': 'nes-charmander',
'nes-squirtle': 'nes-squirtle',
'nes-smartphone': 'nes-smartphone',
'nes-phone': 'nes-phone',
'nes-octocat animate': 'nes-octocat animate',
'nes-ash': 'nes-ash',
'nes-icon trophy': 'nes-icon trophy',
'nes-mario': 'nes-mario',
'nes-logo': 'nes-logo',
'nes-jp-logo': 'nes-jp-logo',
'snes-logo': 'snes-logo',
'snes-jp-logo': 'snes-jp-logo',
}, 'icon twitter');
}, 'nes-icon twitter');
const selectedSize = radios('size', {
default: '',
'is-small': 'is-small',
Expand Down
8 changes: 4 additions & 4 deletions docs/inputs.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ stories.addDecorator(withKnobs);

stories.add('input.radio', () => `
<label>
<input type="radio" class="radio" name="answer" checked />
<input type="radio" class="nes-radio" name="answer" checked />
<span>Yes</span>
</label> <label>
<input type="radio" class="radio" name="answer" />
<input type="radio" class="nes-radio" name="answer" />
<span>No</span>
</label>`)
.add('input.checkbox', () => `
<label>
<input type="checkbox" class="checkbox" checked />
<input type="checkbox" class="nes-checkbox" checked />
<span>Enable</span>
</label>`)
.add('input', () => {
Expand All @@ -27,5 +27,5 @@ stories.add('input.radio', () => `
'is-error': 'is-error',
}, '');

return `<input type="text" id="name_field" class="input ${selectedClass}" placeholder="NES.css">`;
return `<input type="text" id="name_field" class="nes-input ${selectedClass}" placeholder="NES.css">`;
});
2 changes: 1 addition & 1 deletion docs/table.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ stories.add('table', () => {

const selectedClasses = [isBordered, isCentered, isDark];

return `<table class="table ${selectedClasses.join(' ')}" style="margin:15px 4px 5px 4px">
return `<table class="nes-table ${selectedClasses.join(' ')}" style="margin:15px 4px 5px 4px">
<thead>
<tr>
<th>Table.is-dark</th>
Expand Down
2 changes: 1 addition & 1 deletion docs/textarea.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ stories.add('textarea', () => {
'is-error': 'is-error',
}, '');

return `<textarea id="textarea_field" class="textarea ${selectedClass}" placeholder="NES.css"></textarea>`;
return `<textarea id="textarea_field" class="nes-textarea ${selectedClass}" placeholder="NES.css"></textarea>`;
});
Loading