Skip to content
Permalink
Browse files

Drop min PHP to 5.2 and rename colours file

  • Loading branch information...
danieltj27 committed Sep 17, 2018
1 parent e7c6d5c commit 7a2ed0d042bc0d40518e679c9de94c14104cf584
Showing with 41 additions and 12 deletions.
  1. +0 −5 class-dark-mode.php
  2. +1 −1 composer.json
  3. +34 −0 dark-mode-colors.scss
  4. +3 −3 dark-mode.php
  5. +1 −1 dark-mode.scss
  6. +2 −2 readme.txt
@@ -1,9 +1,4 @@
<?php
/**

This comment has been minimized.

Copy link
@GaryJones

GaryJones Sep 18, 2018

Contributor

Why has this been removed? File-level DocBlocks are still needed for files that contain a class.

screenshot 2018-09-18 10 05 31

This comment has been minimized.

Copy link
@danieltj27

danieltj27 Sep 18, 2018

Author Collaborator

Oh, I thought that as it was defined lower down above the class that it wasn't needed at the top.

I'll add this back in.

This comment has been minimized.

Copy link
@GaryJones

GaryJones Sep 19, 2018

Contributor

File-level DocBlocks, and class-level DocBlocks serve two different purposes (contexts).

* The core Dark Mode class.
*
* @package danieltj27/Dark-Mode
*/
/**
* The core Dark Mode class.
@@ -16,7 +16,7 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.2",
"composer/installers": "^1"
},
"require-dev": {
@@ -0,0 +1,34 @@
/**
* Dark Mode Colours
*
* The colours below are loosely based on the WordPress branding colours.
* https://make.wordpress.org/design/handbook/design-guide/foundations/colors/
*/
$white: #ffffff;
$black: #000000;
$blue: #0073aa;
$medium-blue: #00a0d2;
$clear: transparent;

$accent-red: #dc3232;
$accent-orange: #f56e28;
$accent-yellow: #ffb900;
$accent-green: #46b450;
$accent-blue: $blue;
$accent-purple: #826eb4;

$base-grey: #23282d;
$light-grey: #bbc8d4;
$heavy-grey: #37444c;
$dark-grey: #32373c;
$ultra-grey: #191f25;
$dark-silver: #50626f;
$base-blue: #2e74aa;
$light-blue: #4092d2;
$dark-blue: #2c5f88;
$ultra-blue: #1f3f58;
$bright-blue: #30ceff;

$editor-lavender: #c678dd;
$editor-sunglo: #e06c75;
$editor-olivine: #98c379;
@@ -1,6 +1,6 @@
<?php
/**
* Dark Mode main plugin file
* Dark Mode main plugin file.
*
* @package danieltj27/Dark-Mode
* @author Daniel James
@@ -14,13 +14,13 @@
* Author: Daniel James
* Author URI: https://www.danieltj.co.uk/
* Text Domain: dark-mode
* Version: 3.1
* Version: 3.2
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
require __DIR__ . '/class-dark-mode.php';
require dirname( __FILE__ ) . '/class-dark-mode.php';
$dark_mode = new Dark_Mode();
@@ -2,7 +2,7 @@
* Dark Mode CSS
*/

@import "colors";
@import 'dark-mode-colors';

body:not(.gutenberg-editor-page) {

@@ -3,8 +3,8 @@ Contributors: danieltj, munyagu, travel_girl, melchoyce, afercia, hedgefield, me
Tags: dark, style, admin, dashboard, profile
Requires at least: 4.0
Tested up to: 4.9
Stable tag: 3.1
Requires PHP: 5.4
Stable tag: 3.2
Requires PHP: 5.2
License: GNU GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

0 comments on commit 7a2ed0d

Please sign in to comment.
You can’t perform that action at this time.