color-picker-rtl.css 3.29 KB
Newer Older
Pham Huy committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
/* rtl:ignore */
.wp-color-picker {
	width: 80px;
	direction: ltr;
}

.wp-picker-container .hidden {
	display: none;
}

/* Needs higher specificiity. */
.wp-picker-container .wp-color-result.button {
	height: 24px;
	margin: 0 0px 6px 6px;
	padding: 0 30px 0 0;
	font-size: 11px;
}

.wp-color-result-text {
	background: #f7f7f7;
	border-radius: 2px 0 0 2px;
	border-right: 1px solid #ccc;
	color: #555;
	display: block;
	line-height: 2;
	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-right: 1px solid #999;
}

.wp-picker-container {
	display: inline-block;
}

.wp-color-result:focus {
	border-color: #5b9dd9;
	box-shadow: 0 0 3px rgba(0, 115, 170, 0.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-right: 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: 1.4;
	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, 0.8);
}

.iris-picker .iris-palette:focus {
	box-shadow:
		inset 0 0 5px rgba(0, 0, 0, 0.4),
		0 0 0 1px #5b9dd9,
		0 0 2px 1px rgba(30, 140, 190, 0.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: 1.15;
	}

	.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 40px 0 0;
		font-size: 14px;
		line-height: 2.1;
	}

	.wp-customizer .wp-picker-container .wp-color-result.button {
		font-size: 13px;
		line-height: 2;
	}

	.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: 2.1;
	}

	.wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
		padding: 6px 5px;
	}
}