kollapsminoriteten/wp-admin/css/color-picker.css

178 lines
3.7 KiB
CSS
Raw Normal View History

2019-11-02 10:38:58 +01:00
/* rtl:ignore */
.wp-color-picker {
width: 80px;
direction: ltr;
}
.wp-picker-container .hidden {
display: none;
}
2025-12-12 13:15:55 +01:00
/* Needs higher specificity to override `.wp-core-ui .button`. */
2019-11-02 10:38:58 +01:00
.wp-picker-container .wp-color-result.button {
2020-01-26 12:53:20 +01:00
min-height: 30px;
2022-04-02 10:26:41 +02:00
margin: 0 6px 6px 0;
2019-11-02 10:38:58 +01:00
padding: 0 0 0 30px;
font-size: 11px;
}
.wp-color-result-text {
2021-04-27 08:32:47 +02:00
background: #f6f7f7;
2019-11-02 10:38:58 +01:00
border-radius: 0 2px 2px 0;
2021-04-27 08:32:47 +02:00
border-left: 1px solid #c3c4c7;
color: #50575e;
2019-11-02 10:38:58 +01:00
display: block;
2020-01-26 12:53:20 +01:00
line-height: 2.54545455; /* 28px */
2019-11-02 10:38:58 +01:00
padding: 0 6px;
text-align: center;
}
.wp-color-result:hover,
.wp-color-result:focus {
2021-04-27 08:32:47 +02:00
background: #f6f7f7;
border-color: #8c8f94;
color: #1d2327;
2019-11-02 10:38:58 +01:00
}
.wp-color-result:hover:after,
.wp-color-result:focus:after {
2021-04-27 08:32:47 +02:00
color: #1d2327;
border-color: #a7aaad;
border-left: 1px solid #8c8f94;
2019-11-02 10:38:58 +01:00
}
.wp-picker-container {
display: inline-block;
}
.wp-color-result:focus {
2021-04-27 08:32:47 +02:00
border-color: #4f94d4;
box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
2019-11-02 10:38:58 +01:00
}
.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;
}
2019-11-15 22:59:44 +01:00
.wp-picker-input-wrap .button.wp-picker-default,
2020-09-15 14:29:22 +02:00
.wp-picker-input-wrap .button.wp-picker-clear,
.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,
.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear {
2019-11-02 10:38:58 +01:00
margin-left: 6px;
2020-01-26 12:53:20 +01:00
padding: 0 8px;
line-height: 2.54545455; /* 28px */
min-height: 30px;
2019-11-02 10:38:58 +01:00
}
.wp-picker-container .iris-square-slider .ui-slider-handle:focus {
2021-04-27 08:32:47 +02:00
background-color: #50575e
2019-11-02 10:38:58 +01:00
}
.wp-picker-container .iris-picker {
border-radius: 0;
2021-04-27 08:32:47 +02:00
border-color: #dcdcde;
2019-11-02 10:38:58 +01:00
margin-top: 6px;
}
.wp-picker-container input[type="text"].wp-color-picker {
2020-01-26 12:53:20 +01:00
width: 4rem;
2019-11-02 10:38:58 +01:00
font-size: 12px;
font-family: monospace;
2020-01-26 12:53:20 +01:00
line-height: 2.33333333; /* 28px */
2019-11-02 10:38:58 +01:00
margin: 0;
2020-01-26 12:53:20 +01:00
padding: 0 5px;
2019-11-02 10:38:58 +01:00
vertical-align: top;
2020-01-26 12:53:20 +01:00
min-height: 30px;
2019-11-02 10:38:58 +01:00
}
.wp-color-picker::-webkit-input-placeholder {
2021-04-27 08:32:47 +02:00
color: #646970;
2019-11-02 10:38:58 +01:00
}
.wp-color-picker::-moz-placeholder {
2021-04-27 08:32:47 +02:00
color: #646970;
2019-11-02 10:38:58 +01:00
}
.wp-picker-container input[type="text"].iris-error {
2021-04-27 08:32:47 +02:00
background-color: #fcf0f1;
border-color: #d63638;
2019-11-02 10:38:58 +01:00
color: #000;
}
.iris-picker .ui-square-handle:focus,
.iris-picker .iris-strip .ui-slider-handle:focus {
2021-04-27 08:32:47 +02:00
border-color: #3582c4;
2020-05-06 17:23:38 +02:00
border-style: solid;
2021-04-27 08:32:47 +02:00
box-shadow: 0 0 0 1px #3582c4;
2020-05-06 17:23:38 +02:00
outline: 2px solid transparent;
2019-11-02 10:38:58 +01:00
}
.iris-picker .iris-palette:focus {
2021-04-27 08:32:47 +02:00
box-shadow: 0 0 0 2px #3582c4;
2019-11-02 10:38:58 +01:00
}
@media screen and (max-width: 782px) {
.wp-picker-container input[type="text"].wp-color-picker {
2020-01-26 12:53:20 +01:00
width: 5rem;
2019-11-02 10:38:58 +01:00
font-size: 16px;
2020-01-26 12:53:20 +01:00
line-height: 1.875; /* 30px */
min-height: 32px;
2019-11-02 10:38:58 +01:00
}
.wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
2020-01-26 12:53:20 +01:00
padding: 0 5px;
}
2020-09-15 14:29:22 +02:00
.wp-picker-input-wrap .button.wp-picker-default,
.wp-picker-input-wrap .button.wp-picker-clear {
2020-01-26 12:53:20 +01:00
padding: 0 8px;
line-height: 2.14285714; /* 30px */
min-height: 32px;
}
2020-09-15 14:29:22 +02:00
.wp-customizer .wp-picker-input-wrap .button.wp-picker-default,
.wp-customizer .wp-picker-input-wrap .button.wp-picker-clear {
2020-01-26 12:53:20 +01:00
padding: 0 8px;
font-size: 14px;
line-height: 2.14285714; /* 30px */
min-height: 32px;
2019-11-02 10:38:58 +01:00
}
.wp-picker-container .wp-color-result.button {
padding: 0 0 0 40px;
font-size: 14px;
2020-01-26 12:53:20 +01:00
line-height: 2.14285714; /* 30px */
2019-11-02 10:38:58 +01:00
}
.wp-customizer .wp-picker-container .wp-color-result.button {
2020-01-26 12:53:20 +01:00
font-size: 14px;
line-height: 2.14285714; /* 30px */
2019-11-02 10:38:58 +01:00
}
.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;
}
}