Linux 软件免费装
Banner图

WP-SCSS

开发者 connectthink
sky-bolt
更新时间 2024年11月4日 00:37
PHP版本: 7.2 及以上
WordPress版本: 6.4.2
版权: GPLv3 or later
版权网址: 版权信息

标签

css sass scss ScssPhp

下载

2.3.5 2.3.2 2.3.0 2.1.6 1.1.3 1.1.5 1.1.6 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.6 2.0.1 2.1.1 2.1.2 2.1.3 1.1.0 2.3.3 2.3.4 2.4.0 3.0.0 3.0.1 4.0.0 4.0.1 1.1.1 2.2.0 2.3.1 1.2.4 1.1.2 1.2.5 2.0.0 4.0.2 4.0.3

详情介绍:

Compiles .scss files on your wordpress install using ScssPhp. Includes settings page for configuring directories, error reporting, compiling options, and auto enqueuing. The plugin only compiles when changes have been made to the scss files. Compiles are made to the matching css file, so disabling this plugin will not take down your stylesheets. In the instance where a matching css file does not exist yet, the plugin will create the appropriate css file in the css directory. Get detailed instructions on github

安装:

  1. Upload plugin to plugins directory
  2. Active plugin through the 'Plugins' menu in Wordpress
  3. Configure plugin options through settings page settings -> WP-SCSS.

常见问题:

Can I use a child theme?

Yes, absolutely. Make sure you define your directories relative to your child theme and that your child theme is active. Otherwise you'll see an error regarding missing directories.

What version of PHP is required?

PHP 7.2 is required to run WP-SCSS

How do I @import subfiles

You can import other scss files into parent files and compile them into a single css file. To do this, use @import as normal in your scss file. All imported file names must start with an underscore. Otherwise they will be compiled into their own css file. When importing in your scss file, you can leave off the underscore.

@import 'subfile';

Does this plugin support Compass?

Currently there isn't a way to fully support compass with a php compiler. If you want limited support, you can manually import the compass framework. You'll need both the _compass.scss and compass directory.

compass / frameworks / compass / stylesheets /@import 'compass';`
Alternatively, you can include Bourbon in a similar fashion.

Can I use .sass syntax with this Plugin?

This plugin will only work with .scss format.

It's not updating my css, what's happening?

Do you have errors printing to the front end? If not, check your log file in your scss directory. The css will not be updated if there are errors in your sass file(s). Make sure your directories are properly defined in the settings. Paths are defined from the root of the theme.

I'm having other issues and need help

If you are having issues with the plugin, create an issue on github, and we'll do our best to help.

更新日志:

4.0.3 4.0.2 4.0.0 3.0.1 3.0.0 2.4.0 2.3.5 2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.0 2.1.6 2.1.5 2.1.4 2.1.3 2.1.2 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.2.6 1.2.5 1.2.4 1.2.3 1.2.2 1.2.1 1.2.0 1.1.9 1.1.8 Various improvements from pull requests by @jbrains and @brainfork 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.0.0