color.admin.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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/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/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/lock.png) no-repeat 50% 0;
  71. cursor: pointer;
  72. position: relative;
  73. top: -1.7em;
  74. left: -10px;
  75. direction: ltr;
  76. text-indent: -9999px;
  77. border: 0;
  78. outline: 0;
  79. }
  80. [dir="rtl"] button.color-palette__lock,
  81. [dir="rtl"] .color-palette__lock {
  82. float: right;
  83. }
  84. /* Same as above .color-palette__lock rule. */
  85. button.is-unlocked,
  86. .is-unlocked {
  87. background-position: 50% -22px;
  88. }
  89. /* wide viewport. */
  90. @media screen and (min-width: 37.5625em) { /* 601px */
  91. .color-placeholder {
  92. float: right; /* LTR */
  93. }
  94. [dir="rtl"] .color-placeholder {
  95. float: left;
  96. }
  97. .color-form .form-item {
  98. margin: 0.5em 195px 0.5em 0; /* LTR */
  99. }
  100. [dir="rtl"] .color-form .form-item {
  101. margin: 0.5em 0 0.5em 195px;
  102. }
  103. .color-form label {
  104. float: left; /* LTR */
  105. clear: left; /* LTR */
  106. width: 15em;
  107. }
  108. [dir="rtl"] .color-form label {
  109. float: right;
  110. clear: right;
  111. }
  112. .color-form .form-text,
  113. .color-form .form-select {
  114. float: left; /* LTR */
  115. width: auto;
  116. }
  117. [dir="rtl"] .color-form .form-text,
  118. [dir="rtl"] .color-form .form-select {
  119. float: right;
  120. }
  121. .color-palette__hook {
  122. float: left; /* LTR */
  123. margin-top: 3px;
  124. }
  125. [dir="rtl"] .color-palette__hook {
  126. float: right;
  127. }
  128. }
  129. .item-selected {
  130. background: #eee;
  131. }
  132. /* Preview */
  133. .color-preview {
  134. display: none;
  135. }
  136. .js .color-preview {
  137. display: block;
  138. position: relative;
  139. float: left; /* LTR */
  140. }
  141. .js[dir="rtl"] .color-preview {
  142. float: right;
  143. }
  144. @media screen and (max-width: 30em) { /* 480px */
  145. .color-form .color-preview-sidebar,
  146. .color-form .color-preview-content {
  147. width: auto;
  148. margin: 0;
  149. }
  150. }