diff --git a/css/custom-metadata-manager.css b/css/custom-metadata-manager.css index 7215e16..198559c 100644 --- a/css/custom-metadata-manager.css +++ b/css/custom-metadata-manager.css @@ -199,34 +199,41 @@ .custom-metadata-multifield-clone, .custom-metadata-multifield-delete { + color: #fff; position: absolute; display: block; top: 50%; right: 25px; - padding: 0 3px 4px; - font-size: 35px; - line-height: 20px; + padding: 5px; + font: 20px/1 dashicons; text-decoration: none; - border: 1px solid; border-radius: 50%; } +.custom-metadata-multifield-clone:hover, +.custom-metadata-multifield-delete:hover { + color: #fff; +} .custom-metadata-multifield-clone { + background-color: #5cb85c; margin-top: -17px; - color: green; - border-color: green; +} +.custom-metadata-multifield-clone:hover { + background-color: #4cae4c; +} +.custom-metadata-multifield-clone:before { + content: "\f132"; } .custom-metadata-multifield-delete ~ .custom-metadata-multifield-clone { margin-top: -35px; } .custom-metadata-multifield-delete { + background-color: #d9534f; margin-top: 17px; - padding: 1px 6px 4px; - color: red; - border-color: red; } -.custom-metadata-multifield-clone:hover, -.custom-metadata-multifield-clone:active, -.custom-metadata-multifield-delete:hover, -.custom-metadata-multifield-delete:active { - border-color: #d54e21; +.custom-metadata-multifield-delete:hover { + background-color: #d43f3a; +} + +.custom-metadata-multifield-delete:before { + content: "\f158"; } \ No newline at end of file diff --git a/custom_metadata.php b/custom_metadata.php index d37c9d3..049abb9 100644 --- a/custom_metadata.php +++ b/custom_metadata.php @@ -1121,10 +1121,10 @@ function _display_metadata_multifield( $slug, $multifield, $object_type, $object $this->_display_metadata_field( $display_field_slug, $field, $object_type, $object_id, $field_id, $value ); } echo '
'; - printf( '+', __( 'duplicate this set of fields' ) ); + printf( '', __( 'duplicate this set of fields' ) ); if ( $grouping_count > 1 ) { - printf( '-', __( 'remove this set of fields' ) ); + printf( '', __( 'remove this set of fields' ) ); } echo '';