Giter VIP home page Giter VIP logo

Comments (5)

src-code avatar src-code commented on July 27, 2024

This is related to issue #90...

from atomizer.

3den avatar 3den commented on July 27, 2024

👍 nice this looks even better thanP-$foo. Are we supporting both?

from atomizer.

thierryk avatar thierryk commented on July 27, 2024

@src-code actually, as @3den mentions it should be:

.H-\$foo {
  height: 10px;
}
.P-\$foo {
  padding: 10px;
}

The reason for this is that it is important that authors recognize those classes as global variables, hence the addition of the $ character.

from atomizer.

src-code avatar src-code commented on July 27, 2024

So as we discussed offline this morning, Atomizer won't need to offer special support for $ or any other namespace - it'll be treated the same as any other string value used to denote a global/custom suffix. It'll be up to a project to define their naming conventions for globals. We'll be sure to document a recommendation around namespacing and dealing with conflicts like this.

On a side note, what we will want to ensure is that Atomizer properly warns when merging configs that define the same customs/globals but with conflicting values. This is a need unrelated to the use of a namespace for customs/globals.

from atomizer.

src-code avatar src-code commented on July 27, 2024

Addressed in pull #108

from atomizer.

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.