包含标签:CSS预处理框架 的文章
-
Stylus JavaScript API
Simply require the module, and call render() with the given string of Stylus code, and (optional) options object. …… -
Stylus Introspection API
Stylus supports an introspection API. This allows mixins and functions to reflect relative to the caller, etc. mixin The mixin loca…… -
Stylus Executable
Stylus ships with the stylus executable for converting Stylus to CSS. Usage: stylus [options] [command] [< in [> out]] …… -
Stylus @extend
The Stylus @extend directive is inspired by (and essentially the same as) the SASS Implementation, with few subtle differences. This…… -
Stylus @keyframes
Stylus supports @keyframes both with curly braces or without them, you can also use interpolation both in names or steps of @keyframes: …… -
Stylus @media
The @media queries work just as they do within regular CSS, but with Stylus’s block notation: @media print #header #footer …… -
Stylus @import and @require
Stylus supports both literal @import for CSS, as well as dynamic importing or requiring of other Stylus sheets. Literal CSS Any fil…… -
Stylus Iteration
Stylus allows you to iterate expressions via the for/in construct, taking the form of: for <val-name> [, <key-name>] in <ex…… -
Stylus Hashes
In 0.39.0 version Stylus got hash objects. Define You can define a hash using the curly braces and colons to divide the keys and va…… -
Stylus Conditionals
Conditionals provide control flow to a language which is otherwise static, providing conditional imports, mixins, functions, and more. The examples…… -
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 Rest Params
Stylus supports rest parameters in the form of name.... These params consume the remaining arguments passed to a mixin or function. This is us…… -
Stylus Keyword Arguments
Stylus supports keyword arguments, or “kwargs”. These allow you to reference arguments by their associated parameter name. The examples shown be…… -
Stylus Mixins
Both mixins and functions are defined in the same manner, but they are applied in different ways. For example, we have a border-radius(n)&n…… -
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…… -
Stylus TextMate Bundle
Stylus ships with a TextMate bundle, located within ./editors. To install, simply execute make install-bundle, or place ./editors/Sty…… -
Stylus FireStylus extension for Firebug
FireStylus is a Firebug extension that makes Firebug display the Stylus filename and line numbers of the Stylus-generated CSS styles rather than th…… -
Stylus Implementation Comparisons
Below we go head to head with other implementations. 变量(Variables) SCSS: $main-color: #006; color: $main-color; Less: @main-color…… -
Stylus Sourcemaps
Stylus supports basic sourcemaps according to the Sourcemap v3 spec Create a sourcemap Pass the --sourcemap flag (or -m) …… -
Stylus 块(@block)
您可以将Stylus中的任何代码块赋值给变量,然后调用它,作为参数传递或以任何其他方式重用。 To define a block, either write it down with an increased…… -
Stylus 其他 @-rules
Stylus支持大多数的CSS @规则, 如 @viewport, @page, @host, @supports 以及其他@规则,在Stylus中使用@规则可以省略花括号({}): …… -
JavaScript API
JavaScript API require模块,用给定的Stylus代码字符串调用render(),以及(可选的)optional对象。 传递filename参数可以利用Stylus框架提供更好的错误报告…… -
stylus 自检API(Introspection API)
自检API Stylus支持自我检测的API, 这允许混写以及函数反应调用者的相关性。 混写(mixin) mixin这个局部变量在函数体内自动赋值。如果调用的函数在根级别,则m…… -
stylus 连接中间件(Connect Middleware)
连接中间件 有了连接中间件,无论Stylus片段什么时候改变,这些片段都能够自动编译。 stylus.middleware(options) 选项 返回给定options下的连接中间件。 `ser……