Comments (12)
from nes.css.
I think that there are few libraries that only use .is-primary
or is-xxx
. š¤
For example, in the case of bulma.
.button
&.is-primary
https://github.com/jgthms/bulma/blob/master/docs/_sass/index.sass#L72-L73
.nes-btn.is-primary
(NES.css) and .button.is-primary
(Bulma) do not conflict.
so, I think that prefix is not necessary for everything š
from nes.css.
Translation:
Title: Add prefix to class name
Body:
Since NES.css doesn't provide layout. It maybe conflict when NES.css using the common class name.
Maybe add a prefix like ns-
or nes-
to solve this.
from nes.css.
Derp, I forgot that for a moment... Then I am siding with nes-
.
from nes.css.
from nes.css.
Another option we could eventually look into is allowing users to generate their own version of the library. This idea comes from the Brototype library. There's a companion to that library, Bro-tie, that allows the user to do just that.
It's certainly not something we need to bother with while the framework is still in such an early stage, but it would certainly be a fun option to provide. Either way, I agree that we should be fine if we add the prefix to the main classes, then we leave the modifiers as they are.
from nes.css.
@DanSnow Thanks for translate š
from nes.css.
.8bit-selector
is an invalid selector, since CSS selectors can't start with a digit. .nes-selector
would be a good one, though, as it's not used by any other major CSS libraries.
from nes.css.
OK, nes-
š
For example...
<button class="nes-button is-primary"></button>
<section class="nes-container is-rounded with-title"></section>
<i class="nes-icon heart is-large"></i>
<div class="nes-field">
<input class="nes-input is-success">
</div>
from nes.css.
This issue include breaking changes.
so I would like to fix after setting CI. -> #13
from nes.css.
I'd suggest everything should have a prefix. is-large, is-primary etc could all be classes used in other libraries.
from nes.css.
š This issue has been resolved in version 1.0.0 š
The release is available on:
Your semantic-release bot š¦š
from nes.css.
Related Issues (20)
- soph-iest Picture Missing HOT 1
- Pixelated image rendering doesn't work on Firefox HOT 3
- favicon etc are SNES not NES controllers? HOT 1
- about polyfill
- Package engine "Node >= 10.0.0" causing installation problem in Node 15.4.0 HOT 4
- Simple cool improvements for the project! HOT 1
- Visual glitch in non-rounded dark dialog HOT 1
- Form component disable style HOT 1
- Custom theme HOT 1
- radio
- NES.css react component library HOT 3
- Adding Korean translation of CONTRIBUTING.md HOT 4
- `package.json`'s `engines` field having `"Node >= 10.0.0"` prevents installation with Node 16.9.1 HOT 4
- Buttons on index.html aren't clickable
- It's look like different between chrome and debug tools.What happened?
- Adding Discord Icon HOT 4
- Adding font for Arabic HOT 1
- Change icon HOT 1
- Feat: Update Twitter icon
- Buttons and containers look .. weird on Firefox and Chrome
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nes.css.