mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 14:45:45 +01:00
922f83a69f
In many a strange and curious file of forgotten lore— While I pondered, blaming Nacin, my notifications suddenly awakened, As of someone quietly DMing;—DMing me, I can’t ignore. “’Tis some contributor,” I muttered, “DMing me an idea or four— Only this and nothing more.” Ah, distinctly I remember, at WordCamp US, last December; A mad proposal nearly laid me—down out cold—upon the floor. Curious, I listened closely;—to a plan I agreed with, mostly— A way to make our JavaScript—JavaScript which was a chore— Maintainable, extendable, for the future, is what I saw. Guten-ready for evermore. Open here I switch to Slack, when, with many a patch and hack, In there stepped Omar, a JavaScript developer hardcore; Pronouncing all the changes fit; ready now to be commit; “There’s nothing else for us to do,” DMing me, “It’s done!” he swore— “No longer random guessing at which file need next be explored— Let’s move on, we’re all aboard.” Moved all together, grouped and managed, in folders all is packaged, The code had all been cleaned and tidied, important parts moved to the fore, “Though this change be useful here,” I said, “it is too large, I fear, We couldn’t manage such a patch, we’ve done nothing like this before— Tell me where doth go this change, change to make our codebase soar!” Quoth Omar, “In WordPress Core.” Props omarreis for shepherding this significant change. Props adamsilverstein, aduth, atimmer, dingo_bastard, frank-klein, gziolo, herregroen, jaswrks, jeremyfelt, jipmoors, jorbin, netweb, ocean90, pento, tjnowell, and youknowriad for testing, feedback, discussion, encouragement, commiserations, etc. I make no apologies for this commit message. Fixes #43055. Built from https://develop.svn.wordpress.org/trunk@43309 git-svn-id: http://core.svn.wordpress.org/trunk@43138 1a063a9b-81f0-0310-95a4-ce76da25c4cd
173 lines
3.3 KiB
CSS
173 lines
3.3 KiB
CSS
.wp-color-picker {
|
|
width: 80px;
|
|
}
|
|
|
|
.wp-picker-container .hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Needs higher specificiity. */
|
|
.wp-picker-container .wp-color-result.button {
|
|
height: 24px;
|
|
margin: 0 6px 6px 0px;
|
|
padding: 0 0 0 30px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.wp-color-result-text {
|
|
background: #f7f7f7;
|
|
border-radius: 0 2px 2px 0;
|
|
border-left: 1px solid #ccc;
|
|
color: #555;
|
|
display: block;
|
|
line-height: 22px;
|
|
padding: 0 6px;
|
|
text-align: center;
|
|
}
|
|
|
|
.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-left: 1px solid #999;
|
|
}
|
|
|
|
.wp-picker-containers {
|
|
display: inline-block;
|
|
}
|
|
|
|
.wp-color-result:focus {
|
|
border-color: #5b9dd9;
|
|
box-shadow: 0 0 3px rgba( 0, 115, 170, .8 );
|
|
}
|
|
|
|
.wp-color-result:active {
|
|
/* See Trac ticket #39662 */
|
|
transform: none !important;
|
|
}
|
|
|
|
.wp-picker-open + .wp-picker-input-wrap {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.wp-picker-input-wrap label {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
}
|
|
|
|
/* For the old `custom-background` page, to override the inline-block and margins from `.form-table td fieldset label`. */
|
|
.form-table .wp-picker-input-wrap label {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
.wp-picker-input-wrap .button,
|
|
.wp-customizer .wp-picker-input-wrap .button {
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.wp-picker-container .iris-square-slider .ui-slider-handle:focus {
|
|
background-color: #555
|
|
}
|
|
|
|
.wp-picker-container .iris-picker {
|
|
border-radius: 0;
|
|
border-color: #ddd;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.wp-picker-container input[type="text"].wp-color-picker {
|
|
width: 65px;
|
|
font-size: 12px;
|
|
font-family: monospace;
|
|
line-height: 16px;
|
|
margin: 0;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.wp-color-picker::-webkit-input-placeholder {
|
|
color: #72777c;
|
|
}
|
|
|
|
.wp-color-picker::-moz-placeholder {
|
|
color: #72777c;
|
|
opacity: 1;
|
|
}
|
|
|
|
.wp-color-picker:-ms-input-placeholder {
|
|
color: #72777c;
|
|
}
|
|
|
|
.wp-picker-container input[type="text"].iris-error {
|
|
background-color: #ffebe8;
|
|
border-color: #c00;
|
|
color: #000;
|
|
}
|
|
|
|
.iris-picker .ui-square-handle:focus,
|
|
.iris-picker .iris-strip .ui-slider-handle:focus {
|
|
box-shadow:
|
|
0 0 0 1px #5b9dd9,
|
|
0 0 2px 1px rgba(30, 140, 190, .8);
|
|
}
|
|
|
|
.iris-picker .iris-palette:focus {
|
|
box-shadow:
|
|
inset 0 0 5px rgba(0,0,0,.4),
|
|
0 0 0 1px #5b9dd9,
|
|
0 0 2px 1px rgba(30, 140, 190, .8);
|
|
}
|
|
|
|
@media screen and ( max-width: 782px ) {
|
|
.wp-picker-container input[type="text"].wp-color-picker {
|
|
width: 80px;
|
|
padding: 6px 5px 5px;
|
|
font-size: 16px;
|
|
line-height: 18px;
|
|
}
|
|
|
|
.wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
|
|
padding: 5px 5px 4px;
|
|
}
|
|
|
|
.wp-picker-container .wp-color-result.button {
|
|
height: auto;
|
|
padding: 0 0 0 40px;
|
|
font-size: 14px;
|
|
line-height: 29px;
|
|
}
|
|
|
|
.wp-customizer .wp-picker-container .wp-color-result.button {
|
|
font-size: 13px;
|
|
line-height: 26px;
|
|
}
|
|
|
|
.wp-picker-container .wp-color-result-text {
|
|
padding: 0 14px;
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
}
|
|
|
|
.wp-customizer .wp-picker-container .wp-color-result-text {
|
|
padding: 0 10px;
|
|
}
|
|
}
|
|
|
|
@media screen and ( max-width: 640px ) {
|
|
.wp-customizer .wp-picker-container .wp-color-result.button {
|
|
font-size: 14px;
|
|
line-height: 29px;
|
|
}
|
|
|
|
.wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
|
|
padding: 6px 5px;
|
|
}
|
|
}
|