mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
bfda508c18
props hugobaeta. fixes #31234. Built from https://develop.svn.wordpress.org/trunk@32051 git-svn-id: http://core.svn.wordpress.org/trunk@32030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
128 lines
2.4 KiB
CSS
128 lines
2.4 KiB
CSS
.wp-color-picker {
|
|
width: 80px;
|
|
}
|
|
|
|
.wp-picker-container .hidden {
|
|
display: none;
|
|
}
|
|
|
|
.wp-color-result {
|
|
background-color: #f7f7f7;
|
|
border: 1px solid #ccc;
|
|
-webkit-border-radius: 3px;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
height: 22px;
|
|
margin: 0 0px 6px 6px;
|
|
position: relative;
|
|
top: 1px;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
vertical-align: bottom;
|
|
display: inline-block;
|
|
padding-right: 30px;
|
|
-webkit-box-shadow: 0 1px 0 rgba(0,0,0,.08);
|
|
box-shadow: 0 1px 0 rgba(0,0,0,.08);
|
|
}
|
|
|
|
.wp-color-result:after {
|
|
background: #f7f7f7;
|
|
-webkit-border-radius: 2px 0 0 2px;
|
|
border-radius: 2px 0 0 2px;
|
|
border-right: 1px solid #ccc;
|
|
color: #555;
|
|
content: attr( title );
|
|
display: block;
|
|
font-size: 11px;
|
|
line-height: 22px;
|
|
padding: 0 6px;
|
|
position: relative;
|
|
left: 0;
|
|
text-align: center;
|
|
top: 0;
|
|
-webkit-box-shadow: inset 0 1px 0 #fff;
|
|
box-shadow: inset 0 1px 0 #fff;
|
|
}
|
|
|
|
.wp-color-result:hover,
|
|
.wp-color-result:focus {
|
|
background: #fafafa;
|
|
border-color: #999;
|
|
color: #23282d;
|
|
}
|
|
|
|
.wp-color-result:hover:after,
|
|
.wp-color-result:focus:after {
|
|
color: #23282d;
|
|
border-color: #a0a5aa;
|
|
border-right: 1px solid #999;
|
|
}
|
|
|
|
.wp-color-result {
|
|
top: 0;
|
|
}
|
|
|
|
.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 {
|
|
-webkit-box-shadow:
|
|
0 0 0 1px #5b9dd9,
|
|
0 0 2px 1px rgba( 30, 140, 190, 0.8 );
|
|
box-shadow:
|
|
0 0 0 1px #5b9dd9,
|
|
0 0 2px 1px rgba( 30, 140, 190, 0.8 );
|
|
}
|
|
|
|
.wp-picker-open + .wp-picker-input-wrap {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.wp-picker-container .button {
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.wp-picker-container .iris-square-slider .ui-slider-handle:focus {
|
|
background-color: #555
|
|
}
|
|
|
|
.wp-picker-container .iris-picker {
|
|
-webkit-border-radius: 0;
|
|
border-radius: 0;
|
|
border-color: #dfdfdf;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.wp-picker-container input[type="text"].wp-color-picker {
|
|
width: 65px;
|
|
font-size: 12px;
|
|
font-family: monospace;
|
|
text-align: center;
|
|
line-height: 16px;
|
|
margin: 0;
|
|
}
|
|
|
|
.wp-picker-container input[type="text"].wp-color-picker:focus::-webkit-input-placeholder {
|
|
color: transparent;
|
|
}
|
|
|
|
.wp-picker-container input[type="text"].wp-color-picker:-moz-placeholder {
|
|
color: #999;
|
|
}
|
|
|
|
.wp-picker-container input[type="text"].iris-error {
|
|
background-color: #ffebe8;
|
|
border-color: #c00;
|
|
color: #000;
|
|
}
|