Dialog.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /* Dialog
  2. *
  3. * Styling Dialog includes two sections: Dialog and Tooltip & TooltipDialog
  4. *
  5. * Dialog:
  6. * 1. Dialog (default styling):
  7. * .dijitDialog - styles for dialog's bounding box
  8. *
  9. * 2. Dialog title
  10. * .dijitDialogTitleBar - styles for the title container at the top of dialog
  11. * .dijitDialogTitle - the text container in dialog title
  12. *
  13. * 3. Dialog content
  14. * .dijitDialogPaneContent - main container for content area and action bar
  15. * .dijitDialogPaneContentArea - styles for content container
  16. *
  17. * 4. Dialog action bar
  18. * .dijitDialogPaneActionBar - styles for action buttons lie at the bottom of dialog pane content
  19. *
  20. * 5. Dialog underlay
  21. * .dijitDialogUnderlay - div under the dialog which used for separate dialog and page content
  22. *
  23. *
  24. * Tooltip & TooltipDialog:
  25. * 1. tooltip content container:
  26. * .dijitTooltipContainer - tooltip content container
  27. *
  28. * 2. tooltip connector:
  29. * .dijitTooltipConnector - tooltip anchor includes 4 direction(up, down, left, right)
  30. */
  31. .claro .dijitDialog {
  32. border: 1px solid #769dc0;
  33. -webkit-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  34. -moz-box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  35. box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
  36. }
  37. .claro .dijitDialogPaneContent {
  38. background: #ffffff repeat-x top left;
  39. border-top: 1px solid #769dc0;
  40. padding: 10px 8px;
  41. position: relative;
  42. }
  43. .claro .dijitDialogPaneContentArea {
  44. /* trick to get action bar (gray bar at bottom with OK/cancel buttons) to span from
  45. * left to right but still indent dialog content
  46. */
  47. margin: -10px -8px;
  48. padding: 10px 8px;
  49. }
  50. .claro .dijitDialogPaneActionBar {
  51. /* gray bar at bottom of dialog with OK/Cancel buttons */
  52. background-color: #efefef;
  53. padding: 3px 5px 2px 7px;
  54. text-align: right;
  55. border-top: 1px solid #d3d3d3;
  56. margin: 10px -8px -10px;
  57. }
  58. .claro .dijitDialogPaneActionBar .dijitButton {
  59. float: none;
  60. }
  61. .claro .dijitDialogTitleBar {
  62. /* outer container for the titlebar of the dialog */
  63. border: 1px solid #ffffff;
  64. border-top: none;
  65. background-color: #abd6ff;
  66. background-image: url("images/titlebar.png");
  67. background-repeat: repeat-x;
  68. padding: 5px 7px 4px 7px;
  69. }
  70. .claro .dijitDialogTitle {
  71. /* typography and styling of the dialog title */
  72. padding: 0 1px;
  73. font-size: 1.091em;
  74. }
  75. .claro .dijitDialogCloseIcon {
  76. /* the default close icon for the dialog */
  77. background: url("images/dialogCloseIcon.png");
  78. background-repeat: no-repeat;
  79. position: absolute;
  80. right: 5px;
  81. height: 15px;
  82. width: 21px;
  83. }
  84. .dj_ie6 .claro .dijitDialogCloseIcon {
  85. background-image: url("images/dialogCloseIcon8bit.png");
  86. }
  87. .claro .dijitDialogCloseIconHover {
  88. background-position: -21px;
  89. }
  90. .claro .dijitDialogCloseIconActive {
  91. background-position: -42px;
  92. }
  93. /* Tooltip and TooltipDialog */
  94. .claro .dijitTooltip, .claro .dijitTooltipDialog {
  95. /* the outermost dom node, holding the connector and container */
  96. background: transparent;
  97. /* make the area on the sides of the arrow transparent */
  98. }
  99. .dijitTooltipBelow {
  100. /* leave room for arrow above content */
  101. padding-top: 13px;
  102. padding-left: 3px;
  103. padding-right: 3px;
  104. }
  105. .dijitTooltipAbove {
  106. /* leave room for arrow below content */
  107. padding-bottom: 13px;
  108. padding-left: 3px;
  109. padding-right: 3px;
  110. }
  111. .claro .dijitTooltipContainer {
  112. /* the part with the text */
  113. background-color: #ffffff;
  114. background-image: url("images/tooltipGradient.png");
  115. background-repeat: repeat-x;
  116. background-position: bottom;
  117. border: 1px solid #769dc0;
  118. padding: 6px 8px;
  119. -moz-border-radius: 4px;
  120. border-radius: 4px;
  121. -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  122. -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  123. box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  124. font-size: 1em;
  125. }
  126. .dj_ie6 .claro .dijitTooltipContainer {
  127. background-image: none;
  128. }
  129. .claro .dijitTooltipConnector {
  130. /* the arrow piece */
  131. border: 0;
  132. z-index: 2;
  133. background-image: url("images/tooltip.png");
  134. background-repeat: no-repeat;
  135. width: 16px;
  136. height: 14px;
  137. }
  138. .dj_ie6 .claro .dijitTooltipConnector {
  139. background-image: url("images/tooltip8bit.png");
  140. }
  141. .claro .dijitTooltipABRight .dijitTooltipConnector {
  142. /* above or below tooltip, but the arrow appears on the right,
  143. and the right edges of target and tooltip are aligned rather than the left */
  144. left: auto !important;
  145. right: 3px;
  146. }
  147. .claro .dijitTooltipBelow .dijitTooltipConnector {
  148. /* the arrow piece for tooltips below an element */
  149. top: 0;
  150. left: 3px;
  151. background-position: -31px 0;
  152. width: 16px;
  153. height: 14px;
  154. }
  155. .claro .dijitTooltipAbove .dijitTooltipConnector {
  156. /* the arrow piece for tooltips above an element */
  157. bottom: 0;
  158. left: 3px;
  159. background-position: -15px 0;
  160. width: 16px;
  161. height: 14px;
  162. }
  163. .dj_ie7 .claro .dijitTooltipAbove .dijitTooltipConnector, .dj_ie6 .claro .dijitTooltipAbove .dijitTooltipConnector {
  164. bottom: -1px;
  165. }
  166. .claro .dijitTooltipLeft {
  167. padding-right: 14px;
  168. }
  169. .claro .dijitTooltipLeft .dijitTooltipConnector {
  170. /* the arrow piece for tooltips to the left of an element, bottom borders aligned */
  171. right: 0;
  172. background-position: 0 0;
  173. width: 16px;
  174. height: 14px;
  175. }
  176. .claro .dijitTooltipRight {
  177. padding-left: 14px;
  178. }
  179. .claro .dijitTooltipRight .dijitTooltipConnector {
  180. /* the arrow piece for tooltips to the right of an element, bottom borders aligned */
  181. left: 0;
  182. background-position: -48px 0;
  183. width: 16px;
  184. height: 14px;
  185. }
  186. .claro .dijitDialogUnderlay {
  187. background: #ffffff;
  188. }