Giter Club home page Giter Club logo

Comments (12)

IngwiePhoenix avatar IngwiePhoenix commented on May 17, 2024 3

from nes.css.

BcRikko avatar BcRikko commented on May 17, 2024 2

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.

DanSnow avatar DanSnow commented on May 17, 2024 1

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.

IngwiePhoenix avatar IngwiePhoenix commented on May 17, 2024 1

Derp, I forgot that for a moment... Then I am siding with nes-.

from nes.css.

IngwiePhoenix avatar IngwiePhoenix commented on May 17, 2024 1

from nes.css.

trezy avatar trezy commented on May 17, 2024 1

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.

BcRikko avatar BcRikko commented on May 17, 2024

@DanSnow Thanks for translate šŸ™‡

from nes.css.

trezy avatar trezy commented on May 17, 2024

.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.

BcRikko avatar BcRikko commented on May 17, 2024

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.

BcRikko avatar BcRikko commented on May 17, 2024

This issue include breaking changes. āš ļø
so I would like to fix after setting CI. -> #13

from nes.css.

BinaryMoon avatar BinaryMoon commented on May 17, 2024

I'd suggest everything should have a prefix. is-large, is-primary etc could all be classes used in other libraries.

from nes.css.

BcRikko avatar BcRikko commented on May 17, 2024

šŸŽ‰ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.