中天 的文章
-
Stylus @media
The @media queries work just as they do within regular CSS, but with Stylus’s block notation: @media print #header #footer …… -
Stylus Comments
Stylus supports three kinds of comments: single-line, and multi-line comments, and multi-line buffered comments. Single-line Single-line comm…… -
Stylus Interpolation
Stylus supports interpolation by using the {} characters to surround an expression, which then becomes part of the identifier. For exampl…… -
Stylus Expressive, dynamic, robust CSS
CSS needs a hero body { font: 12px Helvetica, Arial, sans-serif; } a.button { -webkit-border-radius: 5px; -moz-border-radius: 5px; borde…… -
JavaScript API
JavaScript API require模块,用给定的Stylus代码字符串调用render(),以及(可选的)optional对象。 传递filename参数可以利用Stylus框架提供更好的错误报告…… -
stylus 连接中间件(Connect Middleware)
连接中间件 有了连接中间件,无论Stylus片段什么时候改变,这些片段都能够自动编译。 stylus.middleware(options) 选项 返回给定options下的连接中间件。 `ser…… -
stylus CSS字面量(CSS Literal)
字面量CSS 不管什么原因,如果遇到Stylus搞不定的特殊需求,你可以使用@css使其作为CSS字面量解决之。 @css { body { font: 14px; } } 编译为: body { font: ……