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

LESS.js #6

Open
abernier opened this issue Jul 22, 2011 · 7 comments
Open

LESS.js #6

abernier opened this issue Jul 22, 2011 · 7 comments

Comments

@abernier
Copy link
Contributor

Just another idea,

Creating CSS patterns often requires to manually compute values (ex: "half the size"...), or have a variable in mind (ex: "my background is white")...

Have you thought of using something like LESS?

The pattern could then be saved as less stylesheet, but it should be displayed as plain CSS on the site (like it is) to allow users to just copy/paste the snippet which is good.

Let me know your thoughts about it ;)

— Antoine

@LeaVerou
Copy link
Owner

LeaVerou commented Dec 7, 2011

That's a very good idea actually. Does LESS.js support inline styles (in style attribute)? I wouldn't want to change how easy it is to add a new pattern.

@gravataLonga
Copy link

Hello LeaVerou,

From personal experience the "Less" does not work with inline attributes "style".

@Anahkiasen
Copy link

You could create a LESS file assigning each gradient to a class (ex: .zig-zag) and then assign that class to the corresponding li

@LeaVerou
Copy link
Owner

This would require editing two places to add a pattern instead of just one.

@codingdesigner
Copy link

A LESS option would be nice for Less users I'm sure. FYI there's a Sass version that a few of us have been working on as part of Compass Recipes
https://github.com/MoOx/compass-recipes/tree/master/stylesheets/recipes/background

@Anahkiasen
Copy link

I'm making a stylesheet of LESS mixins of all the gradients.

@moacirosa
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants