color-picker.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /* rtl:ignore */
  2. .wp-color-picker {
  3. width: 80px;
  4. direction: ltr;
  5. }
  6. .wp-picker-container .hidden {
  7. display: none;
  8. }
  9. /* Needs higher specificiity. */
  10. .wp-picker-container .wp-color-result.button {
  11. min-height: 30px;
  12. margin: 0 6px 6px 0;
  13. padding: 0 0 0 30px;
  14. font-size: 11px;
  15. }
  16. .wp-color-result-text {
  17. background: #f6f7f7;
  18. border-radius: 0 2px 2px 0;
  19. border-left: 1px solid #c3c4c7;
  20. color: #50575e;
  21. display: block;
  22. line-height: 2.54545455; /* 28px */
  23. padding: 0 6px;
  24. text-align: center;
  25. }
  26. .wp-color-result:hover,
  27. .wp-color-result:focus {
  28. background: #f6f7f7;
  29. border-color: #8c8f94;
  30. color: #1d2327;
  31. }
  32. .wp-color-result:hover:after,
  33. .wp-color-result:focus:after {
  34. color: #1d2327;
  35. border-color: #a7aaad;
  36. border-left: 1px solid #8c8f94;
  37. }
  38. .wp-picker-container {
  39. display: inline-block;
  40. }
  41. .wp-color-result:focus {
  42. border-color: #4f94d4;
  43. box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
  44. }
  45. .wp-color-result:active {
  46. /* See Trac ticket #39662 */
  47. transform: none !important;
  48. }
  49. .wp-picker-open + .wp-picker-input-wrap {
  50. display: inline-block;
  51. vertical-align: top;
  52. }
  53. .wp-picker-input-wrap label {
  54. display: inline-block;
  55. vertical-align: top;
  56. }
  57. /* For the old `custom-background` page, to override the inline-block and margins from `.form-table td fieldset label`. */
  58. .form-table .wp-picker-input-wrap label {
  59. margin: 0 !important;
  60. }
  61. .wp-picker-input-wrap .button.wp-picker-default,
  62. .wp-picker-input-wrap .button.wp-picker-clear,
  63. .wp-customizer .wp-picker-input-wrap .button.wp-picker-default,
  64. .wp-customizer .wp-picker-input-wrap .button.wp-picker-clear {
  65. margin-left: 6px;
  66. padding: 0 8px;
  67. line-height: 2.54545455; /* 28px */
  68. min-height: 30px;
  69. }
  70. .wp-picker-container .iris-square-slider .ui-slider-handle:focus {
  71. background-color: #50575e
  72. }
  73. .wp-picker-container .iris-picker {
  74. border-radius: 0;
  75. border-color: #dcdcde;
  76. margin-top: 6px;
  77. }
  78. .wp-picker-container input[type="text"].wp-color-picker {
  79. width: 4rem;
  80. font-size: 12px;
  81. font-family: monospace;
  82. line-height: 2.33333333; /* 28px */
  83. margin: 0;
  84. padding: 0 5px;
  85. vertical-align: top;
  86. min-height: 30px;
  87. }
  88. .wp-color-picker::-webkit-input-placeholder {
  89. color: #646970;
  90. }
  91. .wp-color-picker::-moz-placeholder {
  92. color: #646970;
  93. opacity: 1;
  94. }
  95. .wp-color-picker:-ms-input-placeholder {
  96. color: #646970;
  97. }
  98. .wp-picker-container input[type="text"].iris-error {
  99. background-color: #fcf0f1;
  100. border-color: #d63638;
  101. color: #000;
  102. }
  103. .iris-picker .ui-square-handle:focus,
  104. .iris-picker .iris-strip .ui-slider-handle:focus {
  105. border-color: #3582c4;
  106. border-style: solid;
  107. box-shadow: 0 0 0 1px #3582c4;
  108. outline: 2px solid transparent;
  109. }
  110. .iris-picker .iris-palette:focus {
  111. box-shadow: 0 0 0 2px #3582c4;
  112. }
  113. @media screen and (max-width: 782px) {
  114. .wp-picker-container input[type="text"].wp-color-picker {
  115. width: 5rem;
  116. font-size: 16px;
  117. line-height: 1.875; /* 30px */
  118. min-height: 32px;
  119. }
  120. .wp-customizer .wp-picker-container input[type="text"].wp-color-picker {
  121. padding: 0 5px;
  122. }
  123. .wp-picker-input-wrap .button.wp-picker-default,
  124. .wp-picker-input-wrap .button.wp-picker-clear {
  125. padding: 0 8px;
  126. line-height: 2.14285714; /* 30px */
  127. min-height: 32px;
  128. }
  129. .wp-customizer .wp-picker-input-wrap .button.wp-picker-default,
  130. .wp-customizer .wp-picker-input-wrap .button.wp-picker-clear {
  131. padding: 0 8px;
  132. font-size: 14px;
  133. line-height: 2.14285714; /* 30px */
  134. min-height: 32px;
  135. }
  136. .wp-picker-container .wp-color-result.button {
  137. padding: 0 0 0 40px;
  138. font-size: 14px;
  139. line-height: 2.14285714; /* 30px */
  140. }
  141. .wp-customizer .wp-picker-container .wp-color-result.button {
  142. font-size: 14px;
  143. line-height: 2.14285714; /* 30px */
  144. }
  145. .wp-picker-container .wp-color-result-text {
  146. padding: 0 14px;
  147. font-size: inherit;
  148. line-height: inherit;
  149. }
  150. .wp-customizer .wp-picker-container .wp-color-result-text {
  151. padding: 0 10px;
  152. }
  153. }