带有 Rails 3 和 haml/sass 的弹性 CSS 框架?
我最近偶然发现了“elastic css”框架,这对我来说看起来是个好东西。我已经尝试过蓝图,但我必须说这对我来说似乎有点矫枉过正(用指南针尝试过)。
所以我向rails/xhtml web 开发人员提出的问题是:弹性CSS 框架与rails (3) 和haml/sass 一起是一件好事吗? ;)
我搜索了www,但甚至没有找到elastic css是否可以与sass和haml一起使用 - 有人有这方面的经验吗?也许还有像 Fluid CSS 这样简单的东西?有什么建议吗?
谢谢!
仅供参考:http://elasticss.com
I recently stumbled upon "elastic css" framework, which looks like a good thing to me. I tried blueprint already but I must say this seems to be an overkill for me (tried it with compass).
So my question to you rails/xhtml webdevelopers out there: Is the elastic css framework together with rails (3) and haml/sass a good thing? ;)
I searched the www but did not even find if elastic css can be used together with sass and haml - anyone has experience with that? Maybe there is also something as simple as fluid css out there? Are there any recommendations?
Thanks!
FYI: http://elasticss.com
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不知道这个确切的“弹性 CSS 框架”的端口,但 Susy 是一个为 Compass/Sass 构建的原生框架,可以处理静态、流体和弹性网格的任意组合 - 专门研究 Natalie Downe 的弹性流体技术:
http://susy.oddbird.net/
希望有帮助!
I don't know about ports of this exact 'Elastic CSS Framework', but Susy is a framework built native to Compass/Sass that handles any combination of static, fluid and elastic grids - specializing in Natalie Downe's Elastic-Fluid technique:
http://susy.oddbird.net/
Hope that helps!
我想这就是你想要的:
https://github.com/marnen/compass-elastic-plugin
I think this is what you want:
https://github.com/marnen/compass-elastic-plugin
Elastic CSS Framework 的主要区别在于您不需要将其移植到 Sass/Haml,
因为它不是一个网格系统,它是一个布局框架。我们尝试过使用elastic、rails 2.3以及haml、sass。不适用于非常大的事情,但绝对有效。
它实际上应该在所有情况下都有效,因为你只会使用 sass 来给你的网站换肤,你不需要做任何布局,你可以让弹性来做,所有的填充,背景,颜色和东西,你都可以这样做在 sass 中没有问题。
就像elastic 使用类一样,haml 根本不是问题。而且您实际上并不需要只使用 div,您可以将 elastic 中的类应用到任何元素。
因此,您应该尝试一下,我们很乐意为 elasticss 群组中的任何人提供帮助,网址为Google 群组。
The main difference on Elastic CSS Framework is that you don't need to port it to Sass/Haml,
because its not a grid system its a layout framework. We have tried using elastic, rails 2.3, and haml, sass. not for very big things but definitely works.
It actually should work in all cases because you would be using sass only for skinning your site, you don't need to do any layout, you can let elastic do that, and all paddings, backgrounds, colors and stuff, you can do that in sass without problems.
Like elastic uses classes, haml is not a problem at all. and you don't really need to use divs only, you can apply the classes from elastic to any element.
So, you should try it out, and we are happy to help anyone on the elasticss group at google groups.