diff --git a/wp-admin/css/color-picker.css b/wp-admin/css/color-picker.css new file mode 100644 index 0000000000..f2655302fc --- /dev/null +++ b/wp-admin/css/color-picker.css @@ -0,0 +1,105 @@ +.wp-color-picker { + width: 80px; +} +.wp-picker-container .hidden { + display: none; +} +.wp-color-result { + background-color: #f9f9f9; + border: 1px solid #c4c4c4; + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + box-shadow: inset 1px 1px 0 rgba(0,0,0,.05); + -moz-box-shadow: inset 1px 1px 0 rgba(0,0,0,.05); + -ms-box-shadow: inset 1px 1px 0 rgba(0,0,0,.05); + -o-box-shadow: inset 1px 1px 0 rgba(0,0,0,.05); + -webkit-box-shadow: inset 1px 1px 0 rgba(0,0,0,.05); + cursor: pointer; + display: inline-block; + height: 21px; + margin: 0 6px 1px 0px; + position: relative; + top: 1px; + user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + vertical-align: bottom; + display: inline-block; + padding-left: 30px; +} +.wp-color-result::after { + background-color: #f9f9f9; + background-image: -moz-linear-gradient(top, #fff 0%, #eee 100%); + background-image: -webkit-linear-gradient(top, #fff 0%, #eee 100%); + background-image: -ms-linear-gradient(top, #fff 0%, #eee 100%); + background-image: -o-linear-gradient(top, #fff 0%, #eee 100%); + background-image: linear-gradient(top, #fff 0%, #eee 100%); + -moz-border-radius-bottomright: 3px; + -moz-border-radius-topright: 3px; + -webkit-border-radius: 0 3px 3px 0; + border-radius: 0 3px 3px 0; + border-bottom-right-radius: 3px; + border-left: 1px solid #c4c4c4; + content: attr( title ); + color: #555; + display: block; + font-size: 11px; + line-height: 21px; + padding: 0 6px; + position: relative; + right: 0px; + text-align: center; + top: 0px; +} +.wp-color-result:hover { + border-color: #aaa; + box-shadow: 0 1px 1px rgba(0,0,0,0.1); + -moz-box-shadow: 0 1px 1px rgba(0,0,0,0.1); + -ms-box-shadow: 0 1px 1px rgba(0,0,0,0.1); + -o-box-shadow: 0 1px 1px rgba(0,0,0,0.1); + -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1); +} +.wp-color-result:hover:after { + color: #222; + border-color: #aaa; + border-left: 1px solid #999; +} +.wp-color-result.wp-picker-open { + top: 0; + /*width: 5px;*/ +} +.wp-color-result.wp-picker-open:after { + content: attr( data-current ); +} +.wp-picker-container, .wp-picker-container:active { + display: inline-block; + outline: 0; +} +.wp-color-result:focus { + border-color: #888; + -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2); + -ms-box-shadow: 0 1px 2px rgba(0,0,0,0.2); + -o-box-shadow: 0 1px 2px rgba(0,0,0,0.2); + -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2); + box-shadow: 0 1px 2px rgba(0,0,0,0.2); +} +.wp-color-result:focus:after { + border-color: #888; +} +.wp-picker-container .button { + margin-left: 6px; +} +.wp-picker-container .iris-square-slider .ui-slider-handle:focus { + background-color: #555 +} +.wp-picker-container .iris-picker { + border-color: #dfdfdf; + margin-top: 6px; +} +input[type="text"].iris-error { + background-color: #ffebe8; + border-color: #c00; + color: #000; +} \ No newline at end of file diff --git a/wp-admin/css/color-picker.min.css b/wp-admin/css/color-picker.min.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index 05d3006a2a..18dd786c70 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -108,7 +108,7 @@ class Custom_Background { add_thickbox(); wp_enqueue_script('media-upload'); wp_enqueue_script('custom-background'); - wp_enqueue_style('farbtastic'); + wp_enqueue_style('wp-color-picker'); } /** @@ -327,11 +327,12 @@ if ( get_background_image() ) {