[WordPress] 外掛分享: CSS Crush for WordPress

首頁外掛目錄 › CSS Crush for WordPress
WordPress 外掛 CSS Crush for WordPress 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
50+
安裝啟用
尚無評分
4932 天前
最後更新
問題解決
WordPress 3.1+ v0.3 上架:2012-06-26

內容簡介

CSS 可以做很多事情,但有些功能是開發人員需要的,例如變數、常數和更快速的語法。一般 CSS 並沒有這些功能,所以有了預處理器,例如 CSS Crush。

CSS Crush for WordPress 允許在 CSS 檔案中使用變數。

此外,這個外掛會自動為你的主題樣式表處理所有的事情!不需要進行配置,但可以從設定頁面進行自定義。

預設情況下,你的樣式表會被壓縮、緩存並自動生成供應商前綴。

以下是自動生成前綴的示例

/* Before */
div { background: red linear-gradient( left, red, white ); }

/* After */
div {
background: red -webkit-linear-gradient( left, red, white );
background: red -moz-linear-gradient( left, red, white );
background: red -o-linear-gradient( left, red, white );
background: red linear-gradient( left, red, white );
}

以下是使用變數的示例

/* 定義變數 */
@define {
brand-blue: #C1D9F5;
helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

ul, p {
font-family: $( helvetica );
color: $( brand-blue );
}

更多功能

在 CSS 中聲明變數
直接使用 @import
內建一些自定義數學函數
區塊巢狀
支援 :any 偽類

CSS Crush 的當前版本為 1.6.1

欲了解更多功能,請造訪http://the-echoplex.net/csscrush/。

相關連結:

http://www.codepress.nl/plugins/

翻譯

如果你想貢獻翻譯,請發送至 [email protected]

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CSS Crush for WordPress」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

CSS allows you to do lots of things, but some features are missing to developers. What about variables, constants, and general faster syntax? Normal CSS can not do that, that is why you have preprocessors, like CSS Crush.
CSS Crush for WordPress allows the use of variables in CSS files.
This plugin will automaticly process all your theme’s stylesheets for you! No configuration needed. However, you can customize it from the Settings page.
By default your stylesheet will be minified, cached and have it’s vendor prefixes automatically generated.
examples of generated prefixes
/* Before */
div { background: red linear-gradient( left, red, white ); }

/* After */
div {
background: red -webkit-linear-gradient( left, red, white );
background: red -moz-linear-gradient( left, red, white );
background: red -o-linear-gradient( left, red, white );
background: red linear-gradient( left, red, white );
}

example with the use of variables
/* Defining variables */
@define {
brand-blue: #C1D9F5;
helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

ul, p {
font-family: $( helvetica );
color: $( brand-blue );
}

More Features

Declare variables in your CSS
Direct @import
A small collection of custom math functions are built-in
Block nesting
The experimental :any pseudo class is supported

Current CSS Crush version: 1.6.1
For a full list of features please visit http://the-echoplex.net/csscrush/.
Related Links:

http://www.codepress.nl/plugins/

Translations
If you like to contribute a language, please send them to [email protected].

延伸相關外掛

文章
Filter
Apply Filters
Mastodon