Common.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. /* claro/form/Common.css */
  2. /*========================= common css =========================*/
  3. /* 'dijitTextBox' refers to 'dijit(TextBox|DateTextBox|CurrencyTextBox|...)' */
  4. .claro .dijitTextBoxError .dijitValidationContainer {
  5. background-color: #d46464;
  6. background-image: url('images/error.png');
  7. background-position: top center;
  8. border: solid #d46464 0;
  9. border-left-width: 1px;
  10. width: 9px;
  11. }
  12. .claro .dijitTextBoxError .dijitValidationIcon {
  13. width: 0;
  14. background-color: transparent !important;
  15. /* so the INPUT doesn't obscure the border in rtl+a11y */
  16. }
  17. /* Padding for the input area of TextBox based widgets, and corresponding padding for the
  18. * down arrow button and the placeholder. placeholder is explicitly listed because
  19. * dijitPlaceHolder is absolutely positioned, so padding set on dijitInputField
  20. * won't affect it
  21. */
  22. .claro .dijitTextArea, .claro .dijitInputField .dijitPlaceHolder {
  23. padding: 2px;
  24. }
  25. .claro .dijitTextBox .dijitInputField {
  26. padding: 1px 2px;
  27. }
  28. .dj_gecko .claro .dijitTextBox .dijitInputInner, .dj_webkit .claro .dijitTextBox .dijitInputInner {
  29. padding: 1px;
  30. }
  31. .claro .dijitTextBox, .claro .dijitTextBox .dijitButtonNode {
  32. /* color for (outer) border on *TextBox widgets, and border between input and buttons on ComboBox and Spinner */
  33. border-color: #b5bcc7;
  34. -webkit-transition-property: background-color, border;
  35. -moz-transition-property: background-color, border;
  36. transition-property: background-color, border;
  37. -webkit-transition-duration: 0.35s;
  38. -moz-transition-duration: 0.35s;
  39. transition-duration: 0.35s;
  40. }
  41. .claro .dijitTextBox {
  42. background-color: #ffffff;
  43. }
  44. /* hover */
  45. .claro .dijitTextBoxHover, .claro .dijitTextBoxHover .dijitButtonNode {
  46. border-color: #769dc0;
  47. -webkit-transition-duration: 0.25s;
  48. -moz-transition-duration: 0.25s;
  49. transition-duration: 0.25s;
  50. }
  51. .claro .dijitTextBoxHover {
  52. background-color: #e9f4fe;
  53. background-image: url('images/textBox_back.png');
  54. background-repeat: repeat-x;
  55. }
  56. /* error state */
  57. .claro .dijitTextBoxError, .claro .dijitTextBoxError .dijitButtonNode {
  58. border-color: #d46464;
  59. }
  60. .claro .dijitTextBoxError, .claro .dijitTextBoxError .dijitInputContainer {
  61. background-color: #ffffff;
  62. }
  63. /* focused state */
  64. .claro .dijitTextBoxFocused, .claro .dijitTextBoxFocused .dijitButtonNode {
  65. border-color: #769dc0;
  66. -webkit-transition-duration: 0.1s;
  67. -moz-transition-duration: 0.1s;
  68. transition-duration: 0.1s;
  69. }
  70. .claro .dijitTextBoxFocused {
  71. background-color: #ffffff;
  72. background-image: url('images/textBox_back.png');
  73. background-repeat: repeat-x;
  74. }
  75. .claro .dijitTextBoxFocused .dijitInputContainer {
  76. background: #ffffff;
  77. }
  78. .claro .dijitTextBoxErrorFocused, .claro .dijitTextBoxErrorFocused .dijitButtonNode {
  79. border-color: #ce4f4f;
  80. }
  81. /* disabled state */
  82. .claro .dijitTextBoxDisabled, .claro .dijitTextBoxDisabled .dijitButtonNode {
  83. border-color: #d3d3d3;
  84. }
  85. .claro .dijitTextBoxDisabled, .claro .dijitTextBoxDisabled .dijitInputContainer {
  86. background-color: #efefef;
  87. background-image: none;
  88. color: #818181;
  89. }
  90. /*========================= for special widgets =========================*/
  91. /* Input boxes with an arrow (for a drop down) */
  92. .claro .dijitComboBox .dijitArrowButtonInner {
  93. background-image: url("images/commonFormArrows.png");
  94. background-position: -35px 53%;
  95. background-repeat: no-repeat;
  96. margin: 0;
  97. width: 16px;
  98. border: 1px solid #ffffff;
  99. }
  100. .claro .dijitToolbar .dijitComboBox .dijitArrowButtonInner {
  101. border: none;
  102. }
  103. .claro .dijitToolbar .dijitComboBox .dijitArrowButtonInner {
  104. border: none;
  105. }
  106. /* Add 1px vertical padding to the <input> where user types and the validation icon,
  107. to match the 1px border on arrow button */
  108. .claro .dijitTextBox .dijitInputInner, .claro .dijitTextBox .dijitValidationContainer {
  109. padding: 1px 0;
  110. }
  111. .claro .dijitComboBox .dijitButtonNode {
  112. background-color: #efefef;
  113. background-image: url("images/formHighlight.png");
  114. background-repeat: repeat-x;
  115. }
  116. /* Arrow "hover" effect:
  117. * The arrow button should change color whenever the mouse is in a position such that clicking it
  118. * will toggle the drop down. That's either (1) anywhere over the ComboBox or (2) over the arrow
  119. * button, depending on the openOnClick setting for the widget.
  120. */
  121. .claro .dijitComboBoxOpenOnClickHover .dijitButtonNode, .claro .dijitComboBox .dijitDownArrowButtonHover {
  122. background-color: #abd6ff;
  123. }
  124. .claro .dijitComboBoxOpenOnClickHover .dijitArrowButtonInner, .claro .dijitComboBox .dijitDownArrowButtonHover .dijitArrowButtonInner {
  125. background-position: -70px 53%;
  126. }
  127. /* Arrow Button change when drop down is open */
  128. .claro .dijitComboBox .dijitHasDropDownOpen {
  129. background-color: #7dbefa;
  130. background-position: 0 -177px;
  131. padding: 1px;
  132. }
  133. .claro .dijitComboBox .dijitHasDropDownOpen .dijitArrowButtonInner {
  134. background-position: -70px 53%;
  135. border: 0 none;
  136. }
  137. /* disabled state */
  138. .claro div.dijitComboBoxDisabled .dijitArrowButtonInner {
  139. /* specific selector set to override background-position setting from Button.js
  140. * (.claro .dijitComboBoxDisabled .dijitArrowButtonInner) */
  141. background-position: 0 50%;
  142. background-color: #efefef;
  143. }
  144. /*========================= hacks for browsers =========================*/
  145. /* it seems the input[type="hidden"] has a height (16px) too... this may cause the widget's height calculate error */
  146. .dj_ff3 .claro .dijitInputField input[type="hidden"] {
  147. display: none;
  148. height: 0;
  149. width: 0;
  150. }
  151. /* ie6 doesn't support transparent background img */
  152. .dj_ie6 .claro .dijitTextBox, .dj_ie6 .claro .dijitComboBox .dijitButtonNode {
  153. background-image: none;
  154. }
  155. .dj_borderbox .claro .dijitComboBox .dijitHasDropDownOpen .dijitArrowButtonInner {
  156. width: 18px;
  157. }
  158. .dj_borderbox .claro .dijitComboBoxFocused .dijitHasDropDownOpen .dijitArrowButtonInner {
  159. width: 16px;
  160. }