[wordpress插件] Dark Mode for WordPressWordPress的暗模式

wordpress 插件 文章 2020-04-12 05:50 638 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

Adds a “dark mode” button to your theme, using mix-blend-mode to darken your styles.

使用 mix-blend-mode 来加深您的样式,为您的主题添加“暗模式”按钮。

Useful for many websites and many eyeballs.

对于许多网站和眼球有用。

This plugin is developed using DarkMode.js by DarkMode.js 开发的。

www.sandoche.com" rel="nofollow">Sandoche Adittane.

www.sandoche.com“ rel =” nofollow“>桑多切·阿迪达妮(adodane)。

If you like the plugin, be sure to donate him

如果您喜欢该插件,请确保捐赠给他

!

(PS: We’re not affiliated with Sandoche in any way.)

(PS:我们完全不隶属于Sandoche。)

How to Use

使用方法

Activating the plugin will activate the button.

激活插件将激活按钮。

If you want to exclude some buttons or your logo or stuff like that, you can use the following CSS code (add it into your Customizer’s Add CSS section):

如果您要排除某些按钮或徽标或类似的东西,可以使用以下CSS代码(将其添加到“定制工具”的“添加CSS”部分):

.button {  

  .button {  

isolation: isolate;

隔离

}

}

With the CSS code avove, the button class is ignored by the dark mode.

随着CSS代码的出现,暗模式将忽略 button 类。

Also, you can add the darkmode-ignore class to anything in order to achieve the same thing, but using custom CSS is more managable.

另外,您可以将 darkmode-ignore 类添加到任何对象中,以实现相同的目的,但是使用自定义CSS更加易于管理。

Todo List

Todo列表

    • Add a settings page for some cool settings
    • 为一些很酷的设置添加设置页面

安装步骤

    1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件夹上传到 / wp-content / plugins / 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress.
    4. 通过WordPress中的“插件”屏幕激活插件。

    5. There are no settings page (for now).

    6. 没有设置页面(目前)。

      Enjoy!

    7. 享受吧!

下载地址
https://downloads.wordpress.org/plugin/darkmode.1.0.0.zip
-EOF-

AI助手支持GPT4.0