[WordPress] 外掛分享: WP-LESS

首頁外掛目錄 › WP-LESS
10,000+
安裝啟用
★★★★
4.6/5 分(19 則評價)
307 天前
最後更新
問題解決
WordPress 3.2+ v1.9.8 上架:2009-08-13

內容簡介

LESS 是一種基於 CSS 的樣板語言。它提供了許多增強功能,以加速開發並使維護更容易。

主題開發人員甚至可以捆綁該外掛而不用擔心衝突:只需包含特殊的 bootstrap-for-theme.php 並閱讀其說明。

功能

變數
Mixins(繼承規則)
嵌套規則(少寫,效果多)
Accessors(繼承特定規則的值)
功能(用於動態結果的邏輯操作)

這個外掛讓您集中精力於您需要的工作:編寫 CSS,其他所有事務都會自動處理,從快取管理到用戶交付。
是真的。

文件

有關如何使用該外掛 API 的高級主題,可在 Github 專案文檔中找到。

要求

唯一的要求是使用 WordPress API 和 LESS 慣例:使用 .less 擴展名。

最低要求:PHP 5.3 和 WordPress 3.2。
依賴於:Less.php、plugin-toolkit。

注意:如果您想放棄使用該外掛,這樣做是安全的。您只需將樣式表轉換回 CSS。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.9.8) 或搜尋安裝

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

原文外掛簡介

LESS is a templating language based on top of CSS. It provides numerous enhancements to speed up development and make its maintenance easier.
Theme developers can even bundle the plugin without worrying about conflicts: just include the special bootstrap-for-theme.php and read its instructions.
Features

Variables
Mixins (inheritance of rules)
Nested Rules (write less, do more)
Accessors (inherit a value from a specific rule)
Functions (logic operations for dynamic results)

The plugin lets you concentrate on what you need: coding CSS. Everything else is handled automatically, from cache management to user delivery.
Seriously.
Documentation
Advanced topics on how to use the plugin API are available on the Github project documentation.
Requirements
The sole requirement is to use WordPress API and LESS convention: the .less extension.
Minimal Requirements: PHP 5.3 and WordPress 3.2.
Relies on: Less.php, plugin-toolkit.
Notice: in case you’d like to drop the usage of this plugin, it’s safe to do it. You will just need to convert back your stylesheets to CSS.

延伸相關外掛

文章
Filter
Mastodon