
內容簡介
透過這個外掛,您可以從 WordPress 儀錶板中編寫 SASS 並編譯樣式表,同時也可以編輯您的變數。
閱讀文件
以與 CSS 相同的方式註冊和加載 SASS 樣式表。
`
wp_enqueue_style( ‘my-sass-handle’, ‘http://example.com/css/mystyle.scss’, $deps, $ver, $media );
`
使用 sass_configuration 過濾器來設置外掛程式。
外掛程式的設置是可選的,但如果您使用 CSS 框架,至少應該註冊您的變數。
設置 SASS 變數值:
`
sass_set( $variable, $value );
`
獲取 SASS 變數值:
`
sass_get( $variable );
`
您最有可能在您的主題的 functions.php 中使用這些功能。
此外掛程式使用 scssphp 編譯器。
外掛標籤
開發者團隊
原文外掛簡介
Write SASS, edit your variables and compile your stylesheet from your dashboard.
Read the documentation
Register and enqueue your SASS sheets the same way you would do for your CSS.
`
wp_enqueue_style( ‘my-sass-handle’, ‘http://example.com/css/mystyle.scss’, $deps, $ver, $media );
`
Configure the plugin with the sass_configuration filter.
Configuration of the plugin is optional, but you should at least register your variables if you are using a CSS framework.
Set a SASS variable value
`
sass_set( $variable, $value );
`
Get a SASS variable value
`
sass_get( $variable );
`
You will most likely use these functions in your theme’s functions.php.
The plugin uses the scssphp Compiler.
