Giter Club home page Giter Club logo

Comments (5)

danro avatar danro commented on June 15, 2024

I think classes should all look the same, because they're all classes. But perhaps I can look into a regex for mixins that end with ; and ( ... is that along the lines of what you where thinking?

from less-sublime.

smlombardi avatar smlombardi commented on June 15, 2024

I agree with you. Perhaps only the ones where they end with ";", since
that's where the class is being used not defined? I expect the
definition of a class mixin to be like any other class. It's just when you
use it inside another class (or other selector) that it starts to look
confusing. But I defer to your judgement on this.

On Wed, Apr 18, 2012 at 2:00 PM, Dan Rogers <
[email protected]

wrote:

I think classes should all look the same, because they're all classes. But
perhaps I can look into a regex for mixins that end with ; and ( ... is
that along the lines of what you where thinking?


Reply to this email directly or view it on GitHub:
#7 (comment)

from less-sublime.

aziz avatar aziz commented on June 15, 2024

I also want to be able to see mixins in different color. You can add another scope name like entity.mixin.less.
can't wait to have this feature

from less-sublime.

danro avatar danro commented on June 15, 2024

Hey guys, just an update on this. I won't have time in the near future, but pull requests are more than welcome.

from less-sublime.

danro avatar danro commented on June 15, 2024

@smlombardi this should now be available in master, thanks to @aziz.

In order for the scope to be applied, you must use your mixins like this:
.ie7-inline-block();

Otherwise, if you omit the () it will use the css class scope. I like this, as it makes using mixins more explicit.

from less-sublime.

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.