From 4233a600bfdd1a4603a7472dfcba9306938c9056 Mon Sep 17 00:00:00 2001 From: Tammie Lister Date: Wed, 26 Oct 2016 21:56:29 +0000 Subject: [PATCH] Twenty Seventeen: Placeholder styling These were designed but never implemented. Props melchoyce, davidakennedy Fixes #38519 Built from https://develop.svn.wordpress.org/trunk@38969 git-svn-id: http://core.svn.wordpress.org/trunk@38912 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../assets/css/colors-dark.css | 17 ++++++++++++++ wp-content/themes/twentyseventeen/style.css | 23 +++++++++++++++++++ wp-includes/version.php | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/wp-content/themes/twentyseventeen/assets/css/colors-dark.css b/wp-content/themes/twentyseventeen/assets/css/colors-dark.css index 25bd9c517b..b9db63e3dc 100644 --- a/wp-content/themes/twentyseventeen/assets/css/colors-dark.css +++ b/wp-content/themes/twentyseventeen/assets/css/colors-dark.css @@ -151,6 +151,23 @@ body.colors-dark, color: #eee; } +/* Placeholder text color -- selectors need to be separate to work. */ +.colors-dark ::-webkit-input-placeholder { + color: #ddd; +} + +.colors-dark :-moz-placeholder { + color: #ddd; +} + +.colors-dark ::-moz-placeholder { + color: #ddd; +} + +.colors-dark :-ms-input-placeholder { + color: #ddd; +} + .colors-dark input[type="text"]:focus, .colors-dark input[type="email"]:focus, .colors-dark input[type="url"]:focus, diff --git a/wp-content/themes/twentyseventeen/style.css b/wp-content/themes/twentyseventeen/style.css index 071c0be2d6..cd5ce02fe1 100644 --- a/wp-content/themes/twentyseventeen/style.css +++ b/wp-content/themes/twentyseventeen/style.css @@ -1042,6 +1042,29 @@ input[type="submit"].secondary:focus { background: #bbb; } +/* Placeholder text color -- selectors need to be separate to work. */ +::-webkit-input-placeholder { + color: #333; + font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif; +} + +:-moz-placeholder { + color: #333; + font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif; +} + +::-moz-placeholder { + color: #333; + font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif; + opacity: 1; + /* Since FF19 lowers the opacity of the placeholder by default */ +} + +:-ms-input-placeholder { + color: #333; + font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif; +} + /*-------------------------------------------------------------- # Formatting --------------------------------------------------------------*/ diff --git a/wp-includes/version.php b/wp-includes/version.php index e751511028..b2a58efc70 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38968'; +$wp_version = '4.7-alpha-38969'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.