Quellcode durchsuchen

add missing files

Ben Dwyer vor 4 Jahren
Ursprung
Commit
ce71804b9d
3 geänderte Dateien mit 42 neuen und 0 gelöschten Zeilen
  1. 2 0
      morden/inc/wpcom-editor-colors.php
  2. 16 0
      morden/inc/wpcom.php
  3. 24 0
      morden/sass/_global-variables.scss

+ 2 - 0
morden/inc/wpcom-editor-colors.php

@@ -0,0 +1,2 @@
+<?php
+require_once get_template_directory() . '/inc/wpcom-colors-css-variables.php';

+ 16 - 0
morden/inc/wpcom.php

@@ -0,0 +1,16 @@
+<?php
+/**
+ * WordPress.com-specific functions and definitions.
+ *
+ * This file is centrally included from `wp-content/mu-plugins/wpcom-theme-compat.php`.
+ *
+ * @package Morden
+ */
+require_once get_template_directory() . '/inc/wpcom-colors-css-variables.php';
+/**
+ * Bind JS handlers to instantly live-preview changes.
+ */
+function morden_wpcom_color_annotations_preview_js() {
+	wp_enqueue_script( 'morden_wpcom_color_annotations_preview', get_template_directory_uri() . '/inc/color-annotations-preview.js', array( 'customize-preview' ), wp_get_theme()->get( 'Version' ), true );
+}
+add_action( 'customize_preview_init', 'morden_wpcom_color_annotations_preview_js' );

+ 24 - 0
morden/sass/_global-variables.scss

@@ -0,0 +1,24 @@
+@mixin global-variables() {
+
+	/* Colors */
+	--wp--preset--color--primary: #CD2220;
+	--wp--preset--color--primary-hover: #303030;
+	--wp--preset--color--secondary: #007AB7;
+	--wp--preset--color--secondary-hover: #303030;
+	--wp--preset--color--foreground: #303030;
+	--wp--preset--color--foreground-low-contrast: #757575;
+	--wp--preset--color--foreground-high-contrast: #101010;
+	--wp--preset--color--background: #ffffff;
+	--wp--preset--color--background-low-contrast: #E1DFDF;
+	--wp--preset--color--background-high-contrast: #F8F8F8;
+	--wp--preset--color--border: #C5C5C5;
+	--wp--preset--color--border-low-contrast: #A5A5A5;
+	--wp--preset--color--border-high-contrast: #020202;
+	--wp--preset--color--text-selection: #FDE2D4;
+	--wp--preset--color--alert-success: #4caf50;
+	--wp--preset--color--alert-info: #2196f3;
+	--wp--preset--color--alert-warning: #ffc107;
+	--wp--preset--color--alert-error: #CD2220;
+	--wp--preset--color--black: black;
+	--wp--preset--color--white: white;
+}