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