简体   繁体   English

指南针和SASS或更少和?

[英]Compass and SASS or Less and?

I understand what Less offers me with CSS and I also looked at the twitter bootstrap product. 我理解Less为CSS提供了什么,我也看了一下twitter bootstrap产品。 But can someone explain how these compare to Compass and SASS. 但有人可以解释这些与Compass和SASS的比较。 I really only understand what SASS is right now. 我真的只明白SASS现在是什么。 How about Compass, what does that do for me. 指南针怎么样,这对我有什么影响。

I'm working on a Windows platform with ASP MVC3(4). 我正在使用ASP MVC3(4)在Windows平台上工作。 Can I use Compass and SASS on that platform also? 我也可以在该平台上使用Compass和SASS吗?

SASS and LESS are basically the same; SASS和LESS基本相同; the ability to use variables and mixins etc, and then compile that to normal css. 能够使用变量和mixins等,然后将其编译为普通的css。

Twitter Bootstrap is a css framework (including some javascript plugins) with all kinds of different styles to get you up and running quickly by defining grids, typography etc. It does offer some LESS files, but that has nothing to do with LESS itself. Twitter Bootstrap是一个css框架(包括一些javascript插件),具有各种不同的样式,通过定义网格,排版等来快速启动和运行。它确实提供了一些LESS文件,但这与LESS本身无关。

Compass is more of a framework that kind of combines the above. Compass更像是一种结合了上述内容的框架。 It uses SASS with a lot more helper functions than what SASS and LESS offer themselves. 它使用的SASS具有比SASS和LESS自身更多的辅助功能。 It also includes a similar css framework to Twitter Bootstrap named Blueprint. 它还包括一个名为Blueprint的Twitter Bootstrap的类似css框架。

With tons of functions, I'm definately going to be using Compass for all my upcoming projects. 有了大量的功能,我肯定将使用Compass来完成我即将开展的所有项目。
It's also very well documented! 它也有很好的记录! http://compass-style.org/reference/compass/ http://compass-style.org/reference/compass/

And about .NET/MVC3 support, take a look here: http://thedevstop.wordpress.com/2012/01/08/integrating-the-compass-css-framework-into-visual-studio/ 关于.NET / MVC3支持,请看一下: http//thedevstop.wordpress.com/2012/01/08/integrating-the-compass-css-framework-into-visual-studio/
I haven't tried it myself yet, but it seems like the best solution I've seen so far. 我还没有尝试过,但它似乎是迄今为止我见过的最好的解决方案。

TL;DR TL; DR
I'd say Compass is the way to go! 我会说Compass是要走的路!

Twitter's Bootstrap framework is quite popular and is based on LESS. Twitter的Bootstrap框架非常受欢迎,基于LESS。 I checked its github repo, and it appears to have at least twice the activity of that of Compass, and more people favoriting the project. 我检查了它的github仓库,它似乎至少有两倍于Compass的活动,更多的人喜欢这个项目。 Just something to be aware of, you'll most likely be OK with whatever you pick, both seem very solid. 需要注意的是,无论你选择什么,你都很可能会很好,两者看起来都很稳固。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM