Dialog.less 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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 .dijitTooltipDialog .dijitDialogPaneActionBar {
  58. -webkit-border-bottom-right-radius: 4px;
  59. -webkit-border-bottom-left-radius: 4px;
  60. border-bottom-right-radius: 4px;
  61. border-bottom-left-radius: 4px;
  62. -moz-border-radius-bottomright: 4px;
  63. -moz-border-radius-bottomleft: 4px;
  64. margin: 10px -10px -8px;
  65. }
  66. .claro .dijitDialogPaneActionBar .dijitButton {
  67. float: none;
  68. }
  69. .claro .dijitDialogTitleBar {
  70. /* outer container for the titlebar of the dialog */
  71. border: 1px solid @dialog-titlebar-border-color;
  72. border-top:none;
  73. background-color: @dialog-titlebar-background-color;
  74. .standard-gradient;
  75. padding: 5px 7px 4px 7px;
  76. }
  77. .claro .dijitDialogTitle {
  78. /* typography and styling of the dialog title */
  79. padding: 0 1px;
  80. font-size:1.091em;
  81. color: @text-color;
  82. }
  83. .claro .dijitDialogCloseIcon {
  84. /* the default close icon for the dialog */
  85. background: url(@image-dialog-close);
  86. background-repeat:no-repeat;
  87. position: absolute;
  88. right: 5px;
  89. height: 15px;
  90. width: 21px;
  91. }
  92. .dj_ie6 .claro .dijitDialogCloseIcon {
  93. background-image: url(@image-dialog-close-ie6);
  94. }
  95. .claro .dijitDialogCloseIconHover {
  96. background-position:-21px;
  97. }
  98. .claro .dijitDialogCloseIconActive {
  99. background-position:-42px;
  100. }
  101. /* Tooltip and TooltipDialog */
  102. .claro .dijitTooltip,
  103. .claro .dijitTooltipDialog {
  104. /* the outermost dom node, holding the connector and container */
  105. background: transparent; /* make the area on the sides of the arrow transparent */
  106. }
  107. .dijitTooltipBelow {
  108. /* leave room for arrow above content */
  109. padding-top: 13px;
  110. padding-left:3px;
  111. padding-right:3px;
  112. }
  113. .dijitTooltipAbove {
  114. /* leave room for arrow below content */
  115. padding-bottom: 13px;
  116. padding-left:3px;
  117. padding-right:3px;
  118. }
  119. .claro .dijitTooltipContainer {
  120. /* the part with the text */
  121. background-color:@popup-background-color;
  122. .linear-gradient(bottom, @tooltip-gradient-color 0px, @popup-background-color 10px);
  123. background-position:bottom;
  124. border:1px solid @popup-border-color;
  125. padding:6px 8px;
  126. .border-radius(4px);
  127. .box-shadow(0 1px 3px rgba(0,0,0,0.25));
  128. font-size: 1em;
  129. color: @text-color;
  130. }
  131. .claro .dijitTooltipConnector {
  132. /* the arrow piece */
  133. border: 0;
  134. z-index: 2;
  135. background-image:url(@image-tooltip);
  136. background-repeat:no-repeat;
  137. width:16px;
  138. height:14px;
  139. }
  140. .dj_ie6 .claro .dijitTooltipConnector {
  141. background-image:url(@image-tooltip-ie6);
  142. }
  143. .claro .dijitTooltipABRight .dijitTooltipConnector {
  144. /* above or below tooltip, but the arrow appears on the right,
  145. and the right edges of target and tooltip are aligned rather than the left */
  146. left: auto !important;
  147. right: 3px;
  148. }
  149. .claro .dijitTooltipBelow .dijitTooltipConnector {
  150. /* the arrow piece for tooltips below an element */
  151. top: 0;
  152. left: 3px;
  153. background-position:-31px 0;
  154. width:16px;
  155. height:14px;
  156. }
  157. .claro .dijitTooltipAbove .dijitTooltipConnector {
  158. /* the arrow piece for tooltips above an element */
  159. bottom: 0;
  160. left: 3px;
  161. background-position:-15px 0;
  162. width:16px;
  163. height:14px;
  164. }
  165. .dj_ie7 .claro .dijitTooltipAbove .dijitTooltipConnector,
  166. .dj_ie6 .claro .dijitTooltipAbove .dijitTooltipConnector {
  167. bottom: -1px;
  168. }
  169. .claro .dijitTooltipLeft {
  170. padding-right: 14px;
  171. }
  172. .claro .dijitTooltipLeft .dijitTooltipConnector {
  173. /* the arrow piece for tooltips to the left of an element, bottom borders aligned */
  174. right: 0;
  175. background-position:0 0;
  176. width:16px;
  177. height:14px;
  178. }
  179. .claro .dijitTooltipRight {
  180. padding-left: 14px;
  181. }
  182. .claro .dijitTooltipRight .dijitTooltipConnector {
  183. /* the arrow piece for tooltips to the right of an element, bottom borders aligned */
  184. left: 0;
  185. background-position:-48px 0;
  186. width:16px;
  187. height:14px;
  188. }
  189. .claro .dijitDialogUnderlay {
  190. background: @dialog-underlay-color;
  191. }