ambimax / magento-module-magemaven-lesscss
针对 Magento 1 的即时 LESS 编译器。
2.0.1
2017-08-16 12:05 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-15 02:53:25 UTC
README
针对 Magento 的即时 LESS 编译器。
此扩展允许您在主题和扩展中使用 LESS 样式表。它与 Magento 的 CSS 合并功能完全兼容。LESS 文件将即时编译,并在修改或清除缓存后自动重新编译。
扩展使用 Leaf Corcoran 的 lessphp 库,该库包含在模块中。
- 从 Magento Connect 下载: http://www.magentocommerce.com/magento-connect/catalog/product/view/id/12261/
- 支持论坛: http://magemaven.com/forum/#/categories/magemaven-lesscss
- 错误跟踪器: http://github.com/r8/magento-lesscss/issues
安装
模块安装后应能正常工作。
使用方法
扩展将自动编译所有以 'less' 为扩展名的文件,并用派生的 CSS 替换它们。您只需将 LESS 文件放置到皮肤文件夹中,并在布局更新中包含它们,就像处理 CSS 一样
<action method="addCss"><stylesheet>css/styles.less</stylesheet></action>
<action method="addItem"><type>skin_css</type><name>css/styles-ie.less</name><params/><if>lt IE 8</if></action>