You are here

color.css in Drupal 5

Same filename and directory in other branches
  1. 6 modules/color/color.css
  2. 7 modules/color/color.css
/* Farbtastic placement */
.color-form {
  max-width: 50em;
  position: relative;
}
#placeholder {
  position: absolute;
  top: 0;
  right: 0;
}

/* Palette */
.color-form .form-item {
  height: 2em;
  line-height: 2em;
  padding-left: 1em;
  margin: 0.5em 0;
}
.color-form label {
  float: left;
  clear: left;
  width: 10em;
}
.color-form .form-text, .color-form .form-select {
  float: left;
}
.color-form .form-text {
  text-align: center;
  margin-right: 5px;
  cursor: pointer;
}

#palette .hook {
  float: left;
  margin-top: 3px;
  width: 16px;
  height: 16px;
}
#palette .down, #palette .up, #palette .both {
  background: url(images/hook.png) no-repeat 100% 0;
}
#palette .up {
  background-position: 100% -27px;
}
#palette .both {
  background-position: 100% -54px;
}

#palette .lock {
  float: left;
  position: relative;
  top: -1.4em;
  left: -10px;
  width: 20px;
  height: 25px;
  background: url(images/lock.png) no-repeat 50% 2px;
  cursor: pointer;
}
#palette .unlocked {
  background-position: 50% -22px;
}
#palette .form-item {
  width: 20em;
}
#palette .item-selected {
  background: #eee;
}

/* Preview */
#preview {
  display: none;
}
html.js #preview {
  display: block;
  position: relative;
  float: left;
}

File

modules/color/color.css
View source
  1. /* Farbtastic placement */
  2. .color-form {
  3. max-width: 50em;
  4. position: relative;
  5. }
  6. #placeholder {
  7. position: absolute;
  8. top: 0;
  9. right: 0;
  10. }
  11. /* Palette */
  12. .color-form .form-item {
  13. height: 2em;
  14. line-height: 2em;
  15. padding-left: 1em;
  16. margin: 0.5em 0;
  17. }
  18. .color-form label {
  19. float: left;
  20. clear: left;
  21. width: 10em;
  22. }
  23. .color-form .form-text, .color-form .form-select {
  24. float: left;
  25. }
  26. .color-form .form-text {
  27. text-align: center;
  28. margin-right: 5px;
  29. cursor: pointer;
  30. }
  31. #palette .hook {
  32. float: left;
  33. margin-top: 3px;
  34. width: 16px;
  35. height: 16px;
  36. }
  37. #palette .down, #palette .up, #palette .both {
  38. background: url(images/hook.png) no-repeat 100% 0;
  39. }
  40. #palette .up {
  41. background-position: 100% -27px;
  42. }
  43. #palette .both {
  44. background-position: 100% -54px;
  45. }
  46. #palette .lock {
  47. float: left;
  48. position: relative;
  49. top: -1.4em;
  50. left: -10px;
  51. width: 20px;
  52. height: 25px;
  53. background: url(images/lock.png) no-repeat 50% 2px;
  54. cursor: pointer;
  55. }
  56. #palette .unlocked {
  57. background-position: 50% -22px;
  58. }
  59. #palette .form-item {
  60. width: 20em;
  61. }
  62. #palette .item-selected {
  63. background: #eee;
  64. }
  65. /* Preview */
  66. #preview {
  67. display: none;
  68. }
  69. html.js #preview {
  70. display: block;
  71. position: relative;
  72. float: left;
  73. }