color.admin.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /**
  2. * @file
  3. * Stylesheet for the administration pages of the Color module.
  4. */
  5. .color-form {
  6. max-width: 50em;
  7. }
  8. .farbtastic {
  9. margin: 0 auto;
  10. }
  11. .color-form .form-item {
  12. margin: 0.5em 0;
  13. height: 2em;
  14. padding: 0.5em;
  15. }
  16. .color-form label {
  17. clear: left; /* LTR */
  18. }
  19. [dir="rtl"] .color-form label {
  20. clear: right;
  21. }
  22. .color-form .form-text {
  23. float: left; /* LTR */
  24. width: 86%;
  25. text-align: center;
  26. cursor: pointer;
  27. }
  28. [dir="rtl"] .color-form .form-text {
  29. float: right;
  30. }
  31. .color-palette__hook {
  32. float: left; /* LTR */
  33. width: 16px;
  34. height: 16px;
  35. }
  36. [dir="rtl"] .color-palette__hook {
  37. float: right;
  38. }
  39. .color-palette__hook.is-down,
  40. .color-palette__hook.is-up,
  41. .color-palette__hook.is-both {
  42. background: url(../../images/color/hook.png) no-repeat 100% 0; /* LTR */
  43. }
  44. [dir="rtl"] .color-palette__hook.is-down,
  45. [dir="rtl"] .color-palette__hook.is-up,
  46. [dir="rtl"] .color-palette__hook.is-both {
  47. background: url(../../images/color/hook-rtl.png) no-repeat 0 0;
  48. }
  49. .color-palette__hook.is-up {
  50. background-position: 100% -27px; /* LTR */
  51. }
  52. [dir="rtl"] .color-palette__hook.is-up {
  53. background-position: 0 -27px;
  54. }
  55. .color-palette__hook.is-both {
  56. background-position: 100% -54px; /* LTR */
  57. }
  58. [dir="rtl"] .color-palette__hook.is-both {
  59. background-position: 0 -54px;
  60. }
  61. /**
  62. * The button also inherits from .link, which hides the background. Use a more
  63. * specific selector to overwrite.
  64. */
  65. button.color-palette__lock,
  66. .color-palette__lock {
  67. float: left; /* LTR */
  68. width: 20px;
  69. height: 19px;
  70. background: url(../../images/color/lock.png) no-repeat 50% 0;
  71. cursor: pointer;
  72. position: relative;
  73. top: -1.7em;
  74. left: -10px;
  75. direction: ltr;
  76. font-size: 0;
  77. border: 0;
  78. }
  79. button.color-palette__lock:focus,
  80. .color-palette__lock:focus {
  81. outline: transparent;
  82. }
  83. [dir="rtl"] button.color-palette__lock,
  84. [dir="rtl"] .color-palette__lock {
  85. float: right;
  86. }
  87. /* Same as above .color-palette__lock rule. */
  88. button.is-unlocked,
  89. .is-unlocked {
  90. background-position: 50% -22px;
  91. }
  92. /* wide viewport. */
  93. @media screen and (min-width: 37.5625em) { /* 601px */
  94. .color-placeholder {
  95. float: right; /* LTR */
  96. }
  97. [dir="rtl"] .color-placeholder {
  98. float: left;
  99. }
  100. .color-form .form-item {
  101. margin: 0.5em 195px 0.5em 0; /* LTR */
  102. }
  103. [dir="rtl"] .color-form .form-item {
  104. margin: 0.5em 0 0.5em 195px;
  105. }
  106. .color-form label {
  107. float: left; /* LTR */
  108. clear: left; /* LTR */
  109. width: 15em;
  110. }
  111. [dir="rtl"] .color-form label {
  112. float: right;
  113. clear: right;
  114. }
  115. .color-form .form-text,
  116. .color-form .form-select {
  117. float: left; /* LTR */
  118. width: auto;
  119. }
  120. [dir="rtl"] .color-form .form-text,
  121. [dir="rtl"] .color-form .form-select {
  122. float: right;
  123. }
  124. .color-palette__hook {
  125. float: left; /* LTR */
  126. margin-top: 3px;
  127. }
  128. [dir="rtl"] .color-palette__hook {
  129. float: right;
  130. }
  131. }
  132. .item-selected {
  133. background: #eee;
  134. }
  135. /* Preview */
  136. .color-preview {
  137. display: none;
  138. }
  139. .js .color-preview {
  140. display: block;
  141. position: relative;
  142. float: left; /* LTR */
  143. }
  144. .js[dir="rtl"] .color-preview {
  145. float: right;
  146. }
  147. @media screen and (max-width: 30em) { /* 480px */
  148. .color-form .color-preview-sidebar,
  149. .color-form .color-preview-content {
  150. width: auto;
  151. margin: 0;
  152. }
  153. }