Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2014-10-15 19:21:19 +02:00
|
|
|
* Twenty Fifteen Customizer.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Twenty_Fifteen
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2014-10-15 19:21:19 +02:00
|
|
|
* Add postMessage support for site title and description for the Customizer.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*
|
2014-10-15 19:21:19 +02:00
|
|
|
* @param WP_Customize_Manager $wp_customize Customizer object.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
*/
|
|
|
|
function twentyfifteen_customize_register( $wp_customize ) {
|
|
|
|
$color_scheme = twentyfifteen_get_color_scheme();
|
|
|
|
|
|
|
|
$wp_customize->get_setting( 'blogname' )->transport = 'postMessage';
|
|
|
|
$wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage';
|
|
|
|
$wp_customize->get_setting( 'background_color' )->transport = 'refresh';
|
|
|
|
|
|
|
|
// Add color scheme setting and control.
|
|
|
|
$wp_customize->add_setting( 'color_scheme', array(
|
|
|
|
'default' => 'default',
|
|
|
|
'sanitize_callback' => 'twentyfifteen_sanitize_color_scheme',
|
|
|
|
) );
|
|
|
|
|
2014-10-17 22:52:19 +02:00
|
|
|
$wp_customize->add_control( 'color_scheme', array(
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
'label' => esc_html__( 'Color Scheme', 'twentyfifteen' ),
|
|
|
|
'section' => 'colors',
|
2014-10-17 22:52:19 +02:00
|
|
|
'type' => 'select',
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
'choices' => twentyfifteen_get_color_scheme_choices(),
|
|
|
|
'priority' => 1,
|
2014-10-17 22:52:19 +02:00
|
|
|
) );
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
|
2014-11-04 19:42:22 +01:00
|
|
|
// Add custom header and sidebar text color setting and control.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
$wp_customize->add_setting( 'sidebar_textcolor', array(
|
|
|
|
'default' => $color_scheme[4],
|
|
|
|
'sanitize_callback' => 'sanitize_hex_color',
|
|
|
|
) );
|
|
|
|
|
|
|
|
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'sidebar_textcolor', array(
|
2014-11-04 19:42:22 +01:00
|
|
|
'label' => esc_html__( 'Header & Sidebar Text Color', 'twentyfifteen' ),
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
'section' => 'colors',
|
|
|
|
) ) );
|
|
|
|
|
2014-11-04 19:42:22 +01:00
|
|
|
// Remove the core header textcolor control, as it shares the sidebar text color.
|
|
|
|
$wp_customize->remove_control( 'header_textcolor' );
|
|
|
|
|
|
|
|
// Add custom header and sidebar background color setting and control.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
$wp_customize->add_setting( 'header_background_color', array(
|
|
|
|
'default' => $color_scheme[1],
|
|
|
|
'sanitize_callback' => 'sanitize_hex_color',
|
|
|
|
) );
|
|
|
|
|
|
|
|
$wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'header_background_color', array(
|
2014-11-04 19:42:22 +01:00
|
|
|
'label' => esc_html__( 'Header & Sidebar Background Color', 'twentyfifteen' ),
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
'section' => 'colors',
|
|
|
|
) ) );
|
|
|
|
}
|
|
|
|
add_action( 'customize_register', 'twentyfifteen_customize_register', 11 );
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register color schemes for Twenty Fifteen.
|
|
|
|
* Can be filtered with twentyfifteen_color_schemes.
|
|
|
|
*
|
|
|
|
* The order of colors in a colors array:
|
|
|
|
* 1. Main Background Color.
|
|
|
|
* 2. Sidebar Background Color.
|
|
|
|
* 3. Box Background Bolor.
|
|
|
|
* 4. Main Text and Link Color.
|
|
|
|
* 5. Sidebar Text and Link Color.
|
|
|
|
* 6. Meta Box Background Color.
|
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*
|
|
|
|
* @return array An associative array of color scheme options.
|
|
|
|
*/
|
|
|
|
function twentyfifteen_get_color_schemes() {
|
|
|
|
return apply_filters( 'twentyfifteen_color_schemes', array(
|
|
|
|
'default' => array(
|
|
|
|
'label' => esc_html__( 'Default', 'twentyfifteen' ),
|
|
|
|
'colors' => array(
|
|
|
|
'#f1f1f1',
|
|
|
|
'#ffffff',
|
|
|
|
'#ffffff',
|
|
|
|
'#333333',
|
|
|
|
'#333333',
|
|
|
|
'#f7f7f7',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'dark' => array(
|
|
|
|
'label' => esc_html__( 'Dark', 'twentyfifteen' ),
|
|
|
|
'colors' => array(
|
|
|
|
'#111111',
|
|
|
|
'#202020',
|
|
|
|
'#202020',
|
|
|
|
'#bebebe',
|
|
|
|
'#bebebe',
|
|
|
|
'#1b1b1b',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'yellow' => array(
|
|
|
|
'label' => esc_html__( 'Yellow', 'twentyfifteen' ),
|
|
|
|
'colors' => array(
|
|
|
|
'#f4ca16',
|
|
|
|
'#ffdf00',
|
|
|
|
'#ffffff',
|
|
|
|
'#111111',
|
|
|
|
'#111111',
|
|
|
|
'#f1f1f1',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'pink' => array(
|
|
|
|
'label' => esc_html__( 'Pink', 'twentyfifteen' ),
|
|
|
|
'colors' => array(
|
|
|
|
'#ffe5d1',
|
|
|
|
'#e53b51',
|
|
|
|
'#ffffff',
|
|
|
|
'#352712',
|
|
|
|
'#ffffff',
|
|
|
|
'#f1f1f1',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'purple' => array(
|
|
|
|
'label' => esc_html__( 'Purple', 'twentyfifteen' ),
|
|
|
|
'colors' => array(
|
|
|
|
'#674970',
|
|
|
|
'#2e2256',
|
|
|
|
'#ffffff',
|
|
|
|
'#2e2256',
|
|
|
|
'#ffffff',
|
|
|
|
'#f1f1f1',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'blue' => array(
|
|
|
|
'label' => esc_html__( 'Blue', 'twentyfifteen' ),
|
|
|
|
'colors' => array(
|
|
|
|
'#e9f2f9',
|
|
|
|
'#55c3dc',
|
|
|
|
'#ffffff',
|
|
|
|
'#22313f',
|
|
|
|
'#ffffff',
|
|
|
|
'#f1f1f1',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) );
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) :
|
|
|
|
/**
|
2014-11-04 21:26:23 +01:00
|
|
|
* Returns an array of either the current or default color scheme hex values.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
function twentyfifteen_get_color_scheme() {
|
|
|
|
$color_scheme_option = get_theme_mod( 'color_scheme', 'default' );
|
|
|
|
$color_schemes = twentyfifteen_get_color_schemes();
|
|
|
|
|
|
|
|
if ( array_key_exists( $color_scheme_option, $color_schemes ) ) {
|
2014-10-28 17:40:19 +01:00
|
|
|
return $color_schemes[ $color_scheme_option ]['colors'];
|
2014-10-28 17:27:19 +01:00
|
|
|
}
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
|
2014-10-28 17:27:19 +01:00
|
|
|
return $color_schemes['default']['colors'];
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
}
|
|
|
|
endif; // twentyfifteen_get_color_scheme
|
|
|
|
|
|
|
|
if ( ! function_exists( 'twentyfifteen_get_color_scheme_control_options' ) ) :
|
|
|
|
/**
|
|
|
|
* Returns an array of color scheme choices registered for Twenty Fifteen.
|
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
function twentyfifteen_get_color_scheme_choices() {
|
|
|
|
$color_schemes = twentyfifteen_get_color_schemes();
|
|
|
|
$color_scheme_control_options = array();
|
|
|
|
|
|
|
|
foreach ( $color_schemes as $color_scheme => $value ) {
|
|
|
|
$color_scheme_control_options[ $color_scheme ] = $value['label'];
|
|
|
|
}
|
|
|
|
|
|
|
|
return $color_scheme_control_options;
|
|
|
|
}
|
|
|
|
endif; // twentyfifteen_get_color_scheme_control_options
|
|
|
|
|
|
|
|
if ( ! function_exists( 'twentyfifteen_sanitize_color_scheme' ) ) :
|
|
|
|
/**
|
|
|
|
* Sanitization callback for color schemes.
|
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*
|
|
|
|
* @param string $value Color scheme name value.
|
|
|
|
*
|
|
|
|
* @return string Color scheme name.
|
|
|
|
*/
|
|
|
|
function twentyfifteen_sanitize_color_scheme( $value ) {
|
|
|
|
$color_schemes = twentyfifteen_get_color_scheme_choices();
|
|
|
|
|
|
|
|
if ( ! array_key_exists( $value, $color_schemes ) ) {
|
|
|
|
$value = 'default';
|
|
|
|
}
|
|
|
|
|
|
|
|
return $value;
|
|
|
|
}
|
|
|
|
endif; // twentyfifteen_sanitize_color_scheme
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Enqueues front-end CSS for color scheme.
|
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*/
|
|
|
|
function twentyfifteen_color_scheme_css() {
|
|
|
|
$color_scheme_option = get_theme_mod( 'color_scheme', 'default' );
|
|
|
|
|
|
|
|
// Don't do anything if the default color scheme is selected.
|
|
|
|
if ( 'default' === $color_scheme_option ) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If we get this far, we have custom styles. Let's do this.
|
|
|
|
$color_scheme = twentyfifteen_get_color_scheme();
|
|
|
|
|
|
|
|
// Convert main and sidebar text hex color to rgba.
|
|
|
|
$color_main_text_rgb = twentyfifteen_hex2rgb( $color_scheme[3] );
|
|
|
|
$color_sidebar_link_rgb = twentyfifteen_hex2rgb( $color_scheme[4] );
|
|
|
|
|
|
|
|
$color_background = $color_scheme[0];
|
|
|
|
$color_sidebar_background = $color_scheme[1];
|
|
|
|
$color_box_background = $color_scheme[2];
|
|
|
|
$color_main_text = $color_scheme[3];
|
|
|
|
$color_secondary_text = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.7)', $color_main_text_rgb );
|
|
|
|
$color_border = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.1)', $color_main_text_rgb );
|
|
|
|
$color_border_focus = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.3)', $color_main_text_rgb );
|
|
|
|
$color_sidebar_link = $color_scheme[4];
|
|
|
|
$color_sidebar_text = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.7)', $color_sidebar_link_rgb );
|
|
|
|
$color_sidebar_border = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.1)', $color_sidebar_link_rgb );
|
|
|
|
$color_sidebar_border_focus = vsprintf( 'rgba( %1$s, %2$s, %3$s, 0.3)', $color_sidebar_link_rgb );
|
|
|
|
$color_meta_box = $color_scheme[5];
|
|
|
|
|
|
|
|
$css = '
|
|
|
|
/* Color Scheme */
|
|
|
|
|
|
|
|
/* Background Color */
|
|
|
|
body {
|
|
|
|
background-color: %1$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Background Color */
|
|
|
|
body:before,
|
|
|
|
.site-header {
|
|
|
|
background-color: %2$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Box Background Color */
|
|
|
|
.post-navigation,
|
|
|
|
.pagination,
|
|
|
|
.secondary,
|
|
|
|
.site-footer,
|
|
|
|
.hentry,
|
|
|
|
.page-header,
|
|
|
|
.page-content,
|
|
|
|
.comments-area {
|
|
|
|
background-color: %3$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Box Background Color */
|
|
|
|
button,
|
|
|
|
input[type="button"],
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"],
|
|
|
|
.pagination .prev,
|
|
|
|
.pagination .next,
|
|
|
|
.pagination .prev:before,
|
|
|
|
.pagination .next:before,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget_calendar tbody a,
|
|
|
|
.widget_calendar tbody a:hover,
|
|
|
|
.widget_calendar tbody a:focus,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.entry-content .page-links a,
|
|
|
|
.entry-content .page-links a:hover,
|
|
|
|
.entry-content .page-links a:focus,
|
|
|
|
.sticky-post {
|
|
|
|
color: %3$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main Text Color */
|
|
|
|
button,
|
|
|
|
input[type="button"],
|
|
|
|
input[type="reset"],
|
|
|
|
input[type="submit"],
|
|
|
|
.pagination .prev,
|
|
|
|
.pagination .next,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget_calendar tbody a,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.page-links a,
|
|
|
|
.sticky-post {
|
|
|
|
background-color: %4$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main Text Color */
|
|
|
|
body,
|
|
|
|
blockquote cite,
|
|
|
|
blockquote small,
|
|
|
|
a,
|
2014-10-20 20:57:26 +02:00
|
|
|
.dropdown-toggle:after,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.image-navigation a:hover,
|
|
|
|
.image-navigation a:focus,
|
|
|
|
.comment-navigation a:hover,
|
|
|
|
.comment-navigation a:focus,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget-title,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.entry-footer a:hover,
|
|
|
|
.entry-footer a:focus,
|
|
|
|
.comment-metadata a:hover,
|
|
|
|
.comment-metadata a:focus,
|
|
|
|
.pingback .edit-link a:hover,
|
|
|
|
.pingback .edit-link a:focus,
|
|
|
|
.comment-list .reply a:hover,
|
|
|
|
.comment-list .reply a:focus,
|
|
|
|
.site-info a:hover,
|
|
|
|
.site-info a:focus {
|
|
|
|
color: %4$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Main Text Color */
|
|
|
|
.entry-content a,
|
|
|
|
.entry-summary a,
|
|
|
|
.page-content a,
|
|
|
|
.comment-content a,
|
2014-11-03 18:01:23 +01:00
|
|
|
.pingback .comment-body > a,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.author-description a,
|
2014-11-03 18:01:23 +01:00
|
|
|
.taxonomy-description a,
|
|
|
|
.textwidget a,
|
|
|
|
.entry-footer a:hover,
|
|
|
|
.comment-metadata a:hover,
|
|
|
|
.pingback .edit-link a:hover,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.comment-list .reply a:hover,
|
2014-11-03 18:01:23 +01:00
|
|
|
.site-info a:hover {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
border-color: %4$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Secondary Text Color */
|
|
|
|
button:hover,
|
|
|
|
button:focus,
|
|
|
|
input[type="button"]:hover,
|
|
|
|
input[type="button"]:focus,
|
|
|
|
input[type="reset"]:hover,
|
|
|
|
input[type="reset"]:focus,
|
|
|
|
input[type="submit"]:hover,
|
|
|
|
input[type="submit"]:focus,
|
|
|
|
.pagination .prev:hover,
|
|
|
|
.pagination .prev:focus,
|
|
|
|
.pagination .next:hover,
|
|
|
|
.pagination .next:focus,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget_calendar tbody a:hover,
|
|
|
|
.widget_calendar tbody a:focus,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.page-links a:hover,
|
|
|
|
.page-links a:focus {
|
|
|
|
background-color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
background-color: %5$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Secondary Text Color */
|
|
|
|
blockquote,
|
|
|
|
a:hover,
|
|
|
|
a:focus,
|
2014-10-20 20:57:26 +02:00
|
|
|
.main-navigation .menu-item-description,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.post-navigation .meta-nav,
|
|
|
|
.post-navigation a:hover .post-title,
|
|
|
|
.post-navigation a:focus .post-title,
|
|
|
|
.image-navigation,
|
|
|
|
.image-navigation a,
|
|
|
|
.comment-navigation,
|
|
|
|
.comment-navigation a,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.author-heading,
|
|
|
|
.entry-footer,
|
|
|
|
.entry-footer a,
|
|
|
|
.taxonomy-description,
|
|
|
|
.page-links > .page-links-title,
|
|
|
|
.entry-caption,
|
|
|
|
.comment-author,
|
|
|
|
.comment-metadata,
|
|
|
|
.comment-metadata a,
|
2014-11-03 18:01:23 +01:00
|
|
|
.pingback .edit-link,
|
|
|
|
.pingback .edit-link a,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.post-password-form label,
|
|
|
|
.comment-form label,
|
|
|
|
.comment-notes,
|
|
|
|
.comment-awaiting-moderation,
|
|
|
|
.logged-in-as,
|
|
|
|
.form-allowed-tags,
|
|
|
|
.no-comments,
|
|
|
|
.site-info,
|
|
|
|
.site-info a,
|
|
|
|
.wp-caption-text,
|
2014-10-17 00:01:18 +02:00
|
|
|
.gallery-caption,
|
|
|
|
.comment-list .reply a {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
color: %5$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Secondary Text Color */
|
|
|
|
blockquote,
|
2014-11-03 18:01:23 +01:00
|
|
|
.logged-in-as a:hover,
|
|
|
|
.comment-author a:hover {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
border-color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
border-color: %5$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Border Color */
|
2014-10-20 20:57:26 +02:00
|
|
|
hr,
|
|
|
|
.dropdown-toggle:hover,
|
|
|
|
.dropdown-toggle:focus {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
background-color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
background-color: %6$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Border Color */
|
|
|
|
pre,
|
|
|
|
abbr[title],
|
|
|
|
table,
|
|
|
|
th,
|
|
|
|
td,
|
|
|
|
input,
|
|
|
|
textarea,
|
2014-10-20 20:57:26 +02:00
|
|
|
.main-navigation ul,
|
|
|
|
.main-navigation li,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.post-navigation,
|
|
|
|
.pagination,
|
|
|
|
.comment-navigation,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget li,
|
|
|
|
.widget_categories .children,
|
|
|
|
.widget_nav_menu .sub-menu,
|
|
|
|
.widget_pages .children,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.site-header,
|
|
|
|
.site-footer,
|
|
|
|
.hentry + .hentry,
|
|
|
|
.author-info,
|
|
|
|
.entry-content .page-links a,
|
|
|
|
.page-links > span,
|
|
|
|
.page-header,
|
|
|
|
.comments-area,
|
|
|
|
.comment-list + .comment-respond,
|
|
|
|
.comment-list article,
|
|
|
|
.comment-list .pingback,
|
|
|
|
.comment-list .trackback,
|
|
|
|
.comment-list .reply a,
|
|
|
|
.no-comments {
|
|
|
|
border-color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
border-color: %6$s;
|
|
|
|
}
|
|
|
|
|
2014-10-23 13:44:19 +02:00
|
|
|
.post-navigation .nav-previous:not(.has-post-thumbnail) + .nav-next:not(.has-post-thumbnail) {
|
|
|
|
border-color: %6$s;
|
|
|
|
}
|
|
|
|
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
/* Border Focus Color */
|
2014-11-03 18:01:23 +01:00
|
|
|
a:focus,
|
|
|
|
button:focus,
|
|
|
|
input:focus {
|
|
|
|
outline-color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
outline-color: %7$s;
|
|
|
|
}
|
|
|
|
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
input:focus,
|
|
|
|
textarea:focus {
|
|
|
|
border-color: %4$s; /* Fallback for IE7 and IE8 */
|
|
|
|
border-color: %7$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Link Color */
|
|
|
|
.secondary-toggle:before {
|
|
|
|
color: %8$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-title a,
|
|
|
|
.site-description {
|
|
|
|
color: %8$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Text Color */
|
|
|
|
.site-title a:hover,
|
|
|
|
.site-title a:focus {
|
|
|
|
color: %9$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Border Color */
|
|
|
|
.secondary-toggle {
|
|
|
|
border-color: %8$s; /* Fallback for IE7 and IE8 */
|
|
|
|
border-color: %10$s;
|
|
|
|
}
|
|
|
|
|
2014-11-03 18:01:23 +01:00
|
|
|
/* Sidebar Border Focus Color */
|
|
|
|
.secondary-toggle:hover,
|
|
|
|
.secondary-toggle:focus {
|
|
|
|
border-color: %8$s; /* Fallback for IE7 and IE8 */
|
|
|
|
border-color: %11$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.site-title a {
|
|
|
|
outline-color: %8$s; /* Fallback for IE7 and IE8 */
|
|
|
|
outline-color: %11$s;
|
|
|
|
}
|
|
|
|
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
/* Meta Background Color */
|
|
|
|
.entry-footer {
|
|
|
|
background-color: %12$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 38.75em) {
|
|
|
|
/* Main Text Color */
|
|
|
|
.page-header {
|
|
|
|
border-color: %4$s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media screen and (min-width: 59.6875em) {
|
|
|
|
/* Make sure its transparent on desktop */
|
|
|
|
.site-header,
|
|
|
|
.secondary {
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Background Color */
|
|
|
|
.widget button,
|
|
|
|
.widget input[type="button"],
|
|
|
|
.widget input[type="reset"],
|
|
|
|
.widget input[type="submit"],
|
|
|
|
.widget_calendar tbody a,
|
|
|
|
.widget_calendar tbody a:hover,
|
2014-11-03 18:01:23 +01:00
|
|
|
.widget_calendar tbody a:focus {
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
color: %2$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Link Color */
|
|
|
|
.secondary a,
|
|
|
|
.dropdown-toggle:after,
|
|
|
|
.widget-title,
|
|
|
|
.widget blockquote cite,
|
|
|
|
.widget blockquote small {
|
|
|
|
color: %8$s;
|
|
|
|
}
|
|
|
|
|
2014-11-03 18:01:23 +01:00
|
|
|
.widget button,
|
|
|
|
.widget input[type="button"],
|
|
|
|
.widget input[type="reset"],
|
|
|
|
.widget input[type="submit"],
|
|
|
|
.widget_calendar tbody a {
|
|
|
|
background-color: %8$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textwidget a {
|
|
|
|
border-color: %8$s;
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Text Color */
|
|
|
|
.secondary a:hover,
|
|
|
|
.secondary a:focus,
|
|
|
|
.main-navigation .menu-item-description,
|
2014-10-20 20:57:26 +02:00
|
|
|
.widget,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.widget blockquote,
|
|
|
|
.widget .wp-caption-text,
|
|
|
|
.widget .gallery-caption {
|
|
|
|
color: %9$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.widget button:hover,
|
|
|
|
.widget button:focus,
|
|
|
|
.widget input[type="button"]:hover,
|
|
|
|
.widget input[type="button"]:focus,
|
|
|
|
.widget input[type="reset"]:hover,
|
|
|
|
.widget input[type="reset"]:focus,
|
|
|
|
.widget input[type="submit"]:hover,
|
|
|
|
.widget input[type="submit"]:focus,
|
|
|
|
.widget_calendar tbody a:hover,
|
|
|
|
.widget_calendar tbody a:focus {
|
|
|
|
background-color: %9$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.widget blockquote {
|
|
|
|
border-color: %9$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Sidebar Border Color */
|
|
|
|
.main-navigation ul,
|
|
|
|
.main-navigation li,
|
|
|
|
.widget input,
|
|
|
|
.widget textarea,
|
|
|
|
.widget table,
|
|
|
|
.widget th,
|
|
|
|
.widget td,
|
|
|
|
.widget pre,
|
|
|
|
.widget li,
|
|
|
|
.widget_categories .children,
|
|
|
|
.widget_nav_menu .sub-menu,
|
|
|
|
.widget_pages .children,
|
|
|
|
.widget abbr[title] {
|
|
|
|
border-color: %10$s;
|
|
|
|
}
|
|
|
|
|
2014-11-03 18:01:23 +01:00
|
|
|
.dropdown-toggle:hover,
|
|
|
|
.dropdown-toggle:focus,
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
.widget hr {
|
|
|
|
background-color: %10$s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.widget input:focus,
|
|
|
|
.widget textarea:focus {
|
|
|
|
border-color: %11$s;
|
|
|
|
}
|
2014-11-03 18:01:23 +01:00
|
|
|
|
|
|
|
.sidebar a:focus,
|
|
|
|
.dropdown-toggle:focus {
|
|
|
|
outline-color: %11$s;
|
|
|
|
}
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
}
|
|
|
|
';
|
|
|
|
|
|
|
|
wp_add_inline_style( 'twentyfifteen-style', sprintf( $css,
|
|
|
|
$color_background,
|
|
|
|
$color_sidebar_background,
|
|
|
|
$color_box_background,
|
|
|
|
$color_main_text,
|
|
|
|
$color_secondary_text,
|
|
|
|
$color_border,
|
|
|
|
$color_border_focus,
|
|
|
|
$color_sidebar_link,
|
|
|
|
$color_sidebar_text,
|
|
|
|
$color_sidebar_border,
|
|
|
|
$color_sidebar_border_focus,
|
|
|
|
$color_meta_box
|
|
|
|
) );
|
|
|
|
}
|
|
|
|
add_action( 'wp_enqueue_scripts', 'twentyfifteen_color_scheme_css' );
|
|
|
|
|
2014-10-17 22:52:19 +02:00
|
|
|
/**
|
|
|
|
* Binds JS listener to make Customizer color_scheme control.
|
2014-11-04 21:26:23 +01:00
|
|
|
* Passes color scheme data as colorScheme global.
|
2014-10-17 22:52:19 +02:00
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*/
|
|
|
|
function twentyfifteen_customize_control_js() {
|
|
|
|
wp_enqueue_script( 'color-scheme-control', get_template_directory_uri() . '/js/color-scheme-control.js', array( 'customize-controls' ), '', true );
|
|
|
|
wp_localize_script( 'color-scheme-control', 'colorScheme', twentyfifteen_get_color_schemes() );
|
|
|
|
}
|
|
|
|
add_action( 'customize_controls_enqueue_scripts', 'twentyfifteen_customize_control_js' );
|
|
|
|
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
/**
|
2014-10-15 19:21:19 +02:00
|
|
|
* Binds JS handlers to make Customizer preview reload changes asynchronously.
|
Importing Twenty Fifteen, first pass at our new default theme for 2015, set for 4.1.
It's good for posts, it's good for pages, it might be good for you. Development will occur in trunk. Have at it.
Props matt, iandstewart, iamtakashi, obenland, cainm, kristastevens, karmatosed, chellycat, lancewillett, kwight, davidakennedy. See #29799
Built from https://develop.svn.wordpress.org/trunk@29892
git-svn-id: http://core.svn.wordpress.org/trunk@29648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-14 21:28:18 +02:00
|
|
|
*
|
|
|
|
* @since Twenty Fifteen 1.0
|
|
|
|
*/
|
|
|
|
function twentyfifteen_customize_preview_js() {
|
|
|
|
wp_enqueue_script( 'twentyfifteen-customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), '20141005', true );
|
|
|
|
}
|
|
|
|
add_action( 'customize_preview_init', 'twentyfifteen_customize_preview_js' );
|