Make WordPress Core

Ticket #39096: 39096.4.patch

File 39096.4.patch, 1.7 KB (added by sagarprajapati, 8 years ago)
  • wp-admin/css/color-picker.css

     
    133133        box-shadow:
    134134                0 0 0 1px #5b9dd9,
    135135                0 0 2px 1px rgba(30, 140, 190, .8);
     136}
     137
     138@media screen and ( max-width: 782px ) {
     139        .wp-picker-container input[type="text"].wp-color-picker {
     140                margin-right: 6px;
     141                padding: 3px 5px;
     142        }
    136143}
     144 No newline at end of file
  • wp-includes/customize/class-wp-customize-color-control.php

     
    9292         */
    9393        public function content_template() {
    9494                ?>
    95                 <# var defaultValue = '',
     95                <# var defaultValue = '#RRGGBB', defaultValueAttr = '',
    9696                        isHueSlider = data.mode === 'hue';
    9797
    9898                if ( data.defaultValue && ! isHueSlider ) {
     
    101101                        } else {
    102102                                defaultValue = data.defaultValue;
    103103                        }
    104                         defaultValue = ' data-default-color=' + defaultValue; // Quotes added automatically.
     104                        defaultValueAttr = ' data-default-color=' + defaultValue; // Quotes added automatically.
    105105                } #>
    106106                <label>
    107107                        <# if ( data.label ) { #>
     
    114114                                <# if ( isHueSlider ) { #>
    115115                                        <input class="color-picker-hue" type="text" data-type="hue" />
    116116                                <# } else { #>
    117                                         <input class="color-picker-hex" type="text" maxlength="7" placeholder="<?php esc_attr_e( 'Hex Value' ); ?>" {{ defaultValue }} />
     117                                        <input class="color-picker-hex" type="text" maxlength="7" placeholder="{{ defaultValue }}" {{ defaultValueAttr }} />
    118118                                <# } #>
    119119                        </div>
    120120                </label>