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

Adds Sass support #837

Merged
merged 2 commits into from Feb 10, 2015
Merged

Conversation

aendra-rininsland
Copy link
Member

See #803. I've separated c3.css into its component parts and pulled all those into main.scss, which gets written to c3.css (and minified during the default grunt task). I haven't optimised or organised the scss files any further than that.

Might be worth considering optimising these into more readable SCSS, in addition to adding grunt-autoprefixer to automatically add vendor prefixes where necessary.

@aendra-rininsland aendra-rininsland changed the title Adding Sass support Adds Sass support Dec 18, 2014
@raulgomis
Copy link

+1

@aendra-rininsland aendra-rininsland added the C-feature-request Category: A feature request or an enhancement label Dec 27, 2014
@aendra-rininsland
Copy link
Member Author

@masayuki0812 Any thought on whether this is desirable? Personally, I think it'd be really helpful for making everything more modular, and improving tooling (i.e., adding autoprefixer) will help long-term for ensuring things like browser cross compatibility (Vendor prefixes are used fairly arbitrarily in the existing CSS, it seems).

If you plan to merge this, please let me know and I'll resolve the current conflicts ASAP. Thanks!

@jmnunezizu
Copy link

@Aendrew Why not use Stylus instead? I'd rather have Stylus and carry on with Node.js/JavaScript than introduce Ruby to the mix.

@aendra-rininsland
Copy link
Member Author

@jmnunezizu I've never used Stylus, but node-sass uses the C++ version of Compass — Ruby-free!

If @masayuki0812 has me update this PR, I've switch to that (and grunt-sass) instead of the Ruby version. Quite agreed it would be nice not to add Ruby to the mix.

@jmnunezizu
Copy link

@Aendrew I haven't used Sass extensively (happy stylus user myself) but I trust your judgement.

@masayuki0812
Copy link
Member

@Aendrew Sorry for late response.. I think it's ok to merge this PR basically, so could you fix the conflict? Thank you.

@aendra-rininsland
Copy link
Member Author

@masayuki0812 No worries! I've updated the PR to merge successfully, as well as changed it from grunt-contrib-sass to grunt-sass as per the point above.

@mschipperheyn
Copy link

Yeah, I actually find it extremely hard to manage the styles. Somehow, it interferes with my css styling I use for our site (bootstrap). I'm on less myself. But I suppose that it's easy to convert

masayuki0812 added a commit that referenced this pull request Feb 10, 2015
@masayuki0812 masayuki0812 merged commit 6dd093f into c3js:master Feb 10, 2015
@masayuki0812
Copy link
Member

Looks very nice. Thanks!

@aendra-rininsland aendra-rininsland deleted the 803_adding_compass branch February 10, 2015 13:47
@aendra-rininsland
Copy link
Member Author

Woo! Thanks @masayuki0812! 👍 :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request or an enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants