Dialog.less 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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(@image-titlebar);
  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. color: @text-color;
  74. }
  75. .claro .dijitDialogCloseIcon {
  76. /* the default close icon for the dialog */
  77. background: url(@image-dialog-close);
  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(@image-dialog-close-ie6);
  86. }
  87. .claro .dijitDialogCloseIconHover {
  88. background-position:-21px;
  89. }
  90. .claro .dijitDialogCloseIconActive {
  91. background-position:-42px;
  92. }
  93. /* Tooltip and TooltipDialog */
  94. .claro .dijitTooltip,
  95. .claro .dijitTooltipDialog {
  96. /* the outermost dom node, holding the connector and container */
  97. background: transparent; /* 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:@popup-background-color;
  114. background-image:url(@image-tooltip-gradient);
  115. background-repeat:repeat-x;
  116. background-position:bottom;
  117. border:1px solid @popup-border-color;
  118. padding:6px 8px;
  119. .border-radius(4px);
  120. .box-shadow(0 1px 3px rgba(0,0,0,0.25));
  121. font-size: 1em;
  122. color: @text-color;
  123. }
  124. .dj_ie6 .claro .dijitTooltipContainer {
  125. background-image: none;
  126. }
  127. .claro .dijitTooltipConnector {
  128. /* the arrow piece */
  129. border: 0;
  130. z-index: 2;
  131. background-image:url(@image-tooltip);
  132. background-repeat:no-repeat;
  133. width:16px;
  134. height:14px;
  135. }
  136. .dj_ie6 .claro .dijitTooltipConnector {
  137. background-image:url(@image-tooltip-ie6);
  138. }
  139. .claro .dijitTooltipABRight .dijitTooltipConnector {
  140. /* above or below tooltip, but the arrow appears on the right,
  141. and the right edges of target and tooltip are aligned rather than the left */
  142. left: auto !important;
  143. right: 3px;
  144. }
  145. .claro .dijitTooltipBelow .dijitTooltipConnector {
  146. /* the arrow piece for tooltips below an element */
  147. top: 0;
  148. left: 3px;
  149. background-position:-31px 0;
  150. width:16px;
  151. height:14px;
  152. }
  153. .claro .dijitTooltipAbove .dijitTooltipConnector {
  154. /* the arrow piece for tooltips above an element */
  155. bottom: 0;
  156. left: 3px;
  157. background-position:-15px 0;
  158. width:16px;
  159. height:14px;
  160. }
  161. .dj_ie7 .claro .dijitTooltipAbove .dijitTooltipConnector,
  162. .dj_ie6 .claro .dijitTooltipAbove .dijitTooltipConnector {
  163. bottom: -1px;
  164. }
  165. .claro .dijitTooltipLeft {
  166. padding-right: 14px;
  167. }
  168. .claro .dijitTooltipLeft .dijitTooltipConnector {
  169. /* the arrow piece for tooltips to the left of an element, bottom borders aligned */
  170. right: 0;
  171. background-position:0 0;
  172. width:16px;
  173. height:14px;
  174. }
  175. .claro .dijitTooltipRight {
  176. padding-left: 14px;
  177. }
  178. .claro .dijitTooltipRight .dijitTooltipConnector {
  179. /* the arrow piece for tooltips to the right of an element, bottom borders aligned */
  180. left: 0;
  181. background-position:-48px 0;
  182. width:16px;
  183. height:14px;
  184. }
  185. .claro .dijitDialogUnderlay {
  186. background: @dialog-underlay-color;
  187. }