Blueprint CSS 压缩脚本,如何使用?
有人讨论了蓝图 css 的压缩器脚本,您可以在其中更改像素总数,或包含花式类型等,但我从未弄清楚如何使用它。 我只能使用 Blueprint 的普通版本,在这种情况下,我的网站只有 900 px 宽,所以我根本无法使用 Blueprint,除非我将其重新制作为 900 px 格式。
There's talk of this compressor script for blueprint css, where you can change the total number of pixels, or include fancy-type etc, but I've never figured out how to use it. All I can ever use is the vanilla version of Blueprint, and in this case, my site is only 900 px wide, so I can;t use Blueprint at all until I remake it for 900px format.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Compass 使您能够将 Blueprint、YUI 或 960 GS 与 Sass 一起使用。 它还支持自定义蓝图布局。 请观看截屏以更好地了解 Compass 是什么。
Compass enables you to use Blueprint, YUI or 960 GS along with Sass. It also has support for custom Blueprint layouts. Please view the screencast to get a better idea of what Compass is.
好吧,我明白了。 我想更改 Grid.css 以反映我的网站宽度 850 像素而不是 950 像素,并包含花式类型插件。 您可以通过像上面一样输入 ruby lib/compress.rb 并传递变量来从命令行输出自定义 css 文件。 但是,如果您想包含插件,则必须使用新设置创建一个 YAML 文件。 Josh Clayton 很好地包含了一个示例配置 YAML 文件,因此我将其从: 更改
为更简单的内容:
然后我运行 compress.rb -p MySite
Okay, I figured it out. I wanted to change Grid.css to reflect my site width of 850px instead of 950px, as well as include the fancy type plugin. You can output custom css files from the command line by typing ruby lib/compress.rb like above, and passing it variables. however, if you want to include plugins, you have to create a YAML file with the new settings. Josh Clayton was nice enough to include a sample config YAML file, so I jsut changed that from:
to something much simpler, this:
And then I run compress.rb -p MySite