variables.less 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. // General
  2. @primary-color: #cfe5fa; // Base color for entire theme
  3. @secondary-color: #efefef; // Base color for bar-backgrounds
  4. @text-color: #000; // Text color for enabled widgets
  5. @disabled-color: #d3d3d3; // Base for disabled backgrounds and borders
  6. @error-color: #d46464;
  7. @container-background-color:#fff; // Backgrounds for various content areas such as TitlePane, ContentPane and Inputs (if changed, adjust selected tab to match)
  8. @minor-selected-color: spin(saturate(darken(@primary-color, 6), 19), 0); // Color for various arrows and buttons
  9. @base-border-color: spin(desaturate(darken(@primary-color, 29), 44), -1); // Augmented and used directly by variables to create border colors for various widgets
  10. @unfocused-clickable-color: spin(saturate(lighten(@primary-color, 5), 10), 0); // Background color for enabled buttons, text inputs
  11. @border-color: spin(desaturate(darken(@primary-color, 15), 67), 8); // Border color for (enabled, unhovered) TextBox, Slider, Accordion, BorderContainer, TabContainer
  12. @minor-border-color: @disabled-color; // Color of borders inside widgets: horizontal line in Calendar between weeks, around color swatches in ColorPalette, above Dialog action bar
  13. @popup-border-color: @base-border-color; // Border for Dialog, Menu, Tooltip. Must also update tooltip.png (the arrow image file) to match
  14. @disabled-border-color: @disabled-color; // Border color for disabled/readonly Button, TextBox etc. widgets
  15. @disabled-background-color: @secondary-color; // Disabled button, textbox, etc.
  16. @disabled-text-color: darken(@secondary-color, 43); // Text color for disabled/readonly widgets
  17. @unselected-background-color: @secondary-color; // Background color for unselected/unopened tab button, accordion pane, TitlePane, Menu items
  18. @unselected-text-color: darken(@secondary-color, 65); // Text color for unselected/unopened tab button, accordion pane, TitlePane, Menu items
  19. @hovered-border-color: @base-border-color; // Hover of textbox, tab label, BorderContainer splitter, Calendar, etc.
  20. @hovered-background-color: @minor-selected-color; // Background color for hover of Button, MenuBar, Accordion pane, Calendar... anything that has a (non-white) color to start with and gets darker on hover
  21. @hovered-text-color: @text-color; // Used for title of select Accordion pane, label of select tab, hovered Menu item, etc.
  22. @pressed-border-color: @base-border-color; // During click on Calendar day, Slider up/down buttons, tab button, etc.
  23. @pressed-background-color: spin(saturate(darken(@primary-color, 16), 12), 0); // Background color while clicking on Accordion/TitlePane title bar, tab button, Calendar day, Toolbar button, Tree row.
  24. @selected-border-color: @base-border-color; // Selected AccordionPane, tab of nested TabContainer (but plain TabContainer is special)
  25. @selected-background-color: @primary-color; // Selected Accordion pane, nested tab label, Tree row
  26. @selected-text-color: @text-color; // title of selected Accordion pane, label of selected tab, hovered Menu item, etc.
  27. @bar-background-color: @secondary-color; // MenuBar, Toolbar, action bar at bottom of dialog
  28. @pane-background-color: @container-background-color; // Background color of Accordion panes, Dialogs, etc.
  29. @popup-background-color: @container-background-color; // Background for Dialog. TODO: currently use for ColorPalette, maybe should change.
  30. // Buttons
  31. @button-border-color: @base-border-color; // Border for (stand-alone) buttons in normal, hovered, or active state
  32. @button-background-color: @unfocused-clickable-color; // Background color for (unhovered) buttons
  33. @button-hovered-background-color: @minor-selected-color; // Background color for hovered buttons
  34. @button-pressed-background-color: @minor-selected-color; // Background color for active buttons
  35. @button-border-radius: 4px; // Rounded corner radius for buttons (except in toolbar)
  36. // Input widgets
  37. @focused-border-color: @base-border-color; // Focused textbox, editor, select, etc.
  38. @error-border-color: @error-color; // Border for textbox in error state
  39. @error-focused-border-color: darken(@error-color, 5); // Border of textbox in error state, and focused
  40. @erroricon-background-color: @error-color; // Background color for exclamation point validation icon (for TextBox in error state)
  41. @textbox-background-color: @container-background-color; // Default background color of TextBox based widgets
  42. @textbox-hovered-background-color: @unfocused-clickable-color; // Background color when hovering a unfocused TextBox, Select, Editor, or other input widget
  43. @textbox-focused-background-color: @textbox-background-color;
  44. @textbox-error-background-color: @textbox-background-color;
  45. @textbox-disabled-background-color: @disabled-background-color;
  46. @textbox-padding: 2px; // Padding for Textbox, Textarea, etc.
  47. // CheckBox, RadioButton
  48. @focus-outline-color: darken(@secondary-color, 65); // Color for artificial focus outline around labels of checkboxes
  49. // TabContainer
  50. @nestedtab-hovered-background-color: @unfocused-clickable-color;
  51. @nestedtab-hovered-border-color: @primary-color;
  52. @nestedtab-selected-border-color: @selected-border-color;
  53. @nestedtab-selected-background-color: @minor-selected-color;
  54. @tab-disabled-background-color: @disabled-color; // For disabled tabs of a TabContainer (not officially supported)
  55. // Arrow buttons (stand alone, or inside ComboBox / ComboButton / Spinner / etc.
  56. @arrowbutton-background-color: @secondary-color;
  57. @arrowbutton-hovered-background-color: @minor-selected-color; // Color of arrow when hovering ComboBox. But hovering Spinner doesn't change arrow color (TODO)
  58. @arrowbutton-pressed-background-color: @minor-selected-color;
  59. @arrowbutton-inner-border-color: @container-background-color; // Typically the arrows have an inner white border (a.k.a. padding) and then an outer black-ish border
  60. // Slider
  61. // Note: any changes here require corresponding changes in form/images/sliderThumbs.png
  62. @slider-fullbar-background-color: @primary-color; // Background color for part of slider bar before (to the left or below) the handle
  63. @slider-remainingbar-background-color: @container-background-color; // Background color for part of slider bar after (to the right or above) the handle
  64. @slider-hovered-fullbar-background-color: @minor-selected-color; // Background color for part of bar of hovered slider before (to the left or below) the handle
  65. @slider-hovered-remainingbar-background-color: @container-background-color; // Background color for part of bar of hovered slider after (to the right or above) the handle
  66. @slider-hoveredButton-background-color: @container-background-color; // Background color of slider increment/decrement buttons when mouse is over slider but not over the buttons
  67. @slider-focused-fullbar-background-color: @minor-selected-color; // Background color for part of bar of focused slider before (to the left or below) the handle
  68. @slider-focused-remainingbar-background-color: @container-background-color; // Background color for part of bar of focused slider after (to the right or above) the handle
  69. @slider-button-hovered-background-color: @primary-color; // Background color of slider increment/decrement buttons when mouse is over the buttons
  70. @slider-button-pressed-background-color: @minor-selected-color; // Background color of slider increment/decrement buttons while button is depressed
  71. // Select, ComboBox
  72. @select-dropdownitem-background-color: @container-background-color; // Background color for items in the drop down list of a ComboBox/Select
  73. @select-dropdownitem-hovered-background-color: @pressed-background-color; // Background color for the hovered item in the drop down list of a ComboBox/Select
  74. @select-matchedtext-background-color: @minor-selected-color; // Background color of text in ComboBox drop down that matches typed in phrase
  75. // Menus
  76. @menu-background-color: @popup-background-color;
  77. // Calendar
  78. @calendar-background-color: @primary-color;
  79. @calendar-currentmonth-background-color: @container-background-color; // Background color for days of the current month
  80. @calendar-adjacentmonth-background-color: @unfocused-clickable-color; // Background color used for days from previous or next month
  81. @calendar-adjacentmonth-text-color: @base-border-color; // Text color used for days from previous or next month
  82. @calendar-date-pressed-border-color: @container-background-color; // For some reason pressing a day of the month (as opposed to hovering it) makes the border go away, is this intentional?
  83. @calendar-date-pressed-background-color: @pressed-background-color;
  84. @calendar-date-selected-border-color: @selected-border-color;
  85. @calendar-date-selected-background-color: @minor-selected-color;
  86. @calendar-button-hovered-background-color: @unfocused-clickable-color; // for hover or next/previous year, and month drop down (TODO: border and background are built in to calendarArrows.png, can't control from here)
  87. @calendar-button-hovered-border-color: @container-background-color; // for hover or next/previous year, and month drop down
  88. @calendar-button-pressed-background-color: @pressed-background-color;
  89. @calendar-button-pressed-border-color: @pressed-border-color;
  90. // ProgressBar
  91. @progressbar-border-color: @popup-border-color; // Border color of progress bar
  92. @progressbar-full-background-color:@minor-selected-color; // Background color for part of progress bar indicating amount completed
  93. @progressbar-empty-background-color: @container-background-color; // Background color for part of progress bar indicating amount remaining
  94. @progressbar-text-color: @text-color; // Color of progress bar text (ex: "35%"). Must contrast with both empty and full background colors.
  95. // TimePicker
  96. @timepicker-minorvalue-background-color: @secondary-color; // For 3:15, 3:30, 3:45 but not 3:00 or 4:00
  97. @timepicker-minorvalue-text-color: darken(@secondary-color, 43);
  98. @timepicker-majorvalue-background-color: @unfocused-clickable-color; // For 3:00, 4:00, 5:00, etc.
  99. @timepicker-value-hovered-background-color: @pressed-background-color;
  100. @timepicker-value-hovered-text-color: @hovered-text-color;
  101. @timepicker-arrow-hovered-background-color: @minor-selected-color;
  102. // ColorPalette
  103. @colorpalette-background-color: @container-background-color;
  104. @swatch-border-color: @minor-border-color;
  105. @swatch-hovered-border-color: #000;
  106. @swatch-selected-border-color: #000;
  107. // Dialog
  108. @dialog-underlay-color: @container-background-color; // the thing that grays out the screen when a dialog is shown
  109. @dialog-titlebar-border-color: @container-background-color; // Inner border around the title sectionof a Dialog, inside the main border of the Dialog and the border between title and content
  110. @dialog-titlebar-background-color: @minor-selected-color;
  111. // Tooltip
  112. @tooltip-gradient-color: fade(@primary-color,10%); // a little swath of color at the bottom of tooltips
  113. // BorderContainer
  114. @splitter-hovered-background-color: @primary-color; // Color of splitter when user hovers it, before mouse down
  115. @splitter-dragged-background-color: @minor-selected-color; // Color of splitter while it's being dragged
  116. // Toolbar
  117. @toolbar-button-checked-background-color: @container-background-color; // a toggled-on button in the toolbar
  118. @toolbar-combobutton-hovered-unhoveredsection-background-color: spin(saturate(lighten(@primary-color, 8), 19), -29); // when user hovers a ComboButton in a Toolbar, the other half of the button turns this color
  119. @toolbar-button-border-radius: 2px; // Rounded corner radius for buttons for buttons in toolbar
  120. // DnD
  121. @dnd-avatar-background-color: @container-background-color; // Background color of little Dialog-type box indicating dragged items
  122. @dnd-avatar-header-background-color: #f58383; // Title bar for dragged items
  123. @dnd-avatar-candrop-header-background-color: #97e68d;// Title bar for dragged items when they can be dropped
  124. @dnd-dropseparator-color: @base-border-color; // Color of line indicating that user is about to drop between items A & B
  125. // Document level
  126. @document-text-color: #131313; // Text color for document itself (text outside of widgets)
  127. @document-shadedsection-background-color: @bar-background-color;// background color used for <pre>, <code>, and table header rows
  128. @document-border-color: @disabled-color; // Border for <pre>, <code>, tables, etc.
  129. // Icons, arrows, etc.
  130. @image-arrow-sprite: "images/spriteArrows.png";
  131. @image-calendar-arrows: "images/calendarArrows.png";
  132. @image-calendar-arrows-ie6: "images/calendarArrows8bit.png";
  133. @image-checkmark: "images/checkmarkNoBorder.png";
  134. @image-checkmark-ie6: "images/checkmarkNoBorder.gif";
  135. @image-dialog-close: "images/dialogCloseIcon.png";
  136. @image-dialog-close-ie6: "images/dialogCloseIcon8bit.png";
  137. @image-dnd: "images/dnd.png";
  138. @image-editor-icons-enabled: "../../icons/images/editorIconsEnabled.png";
  139. @image-form-button-arrows: "form/images/buttonArrows.png";
  140. @image-form-checkbox-and-radios: "form/images/checkboxRadioButtonStates.png";
  141. @image-form-checkbox-and-radios-ie6: "form/images/checkboxAndRadioButtons_IE6.png";
  142. @image-form-common-arrows: "form/images/commonFormArrows.png";
  143. @image-form-error: "form/images/error.png";
  144. @image-form-slider-thumbs: "form/images/sliderThumbs.png";
  145. @image-layout-tab-close: "layout/images/tabClose.png"; // [x] icon to close a tab
  146. @image-loading-animation: "images/loadingAnimation.gif";
  147. @image-tooltip: "images/tooltip.png"; // arrow connectors
  148. @image-tooltip-ie6: "images/tooltip8bit.png"; // arrow connectors (8 bit)
  149. @image-tree-expand: "images/treeExpandImages.png";
  150. @image-tree-expand-ie6: "images/treeExpandImages8bit.png";
  151. @image-progressbar-anim: "images/progressBarAnim.gif";
  152. // Mixins
  153. .border-radius (@radius) {
  154. -moz-border-radius: @radius;
  155. border-radius: @radius;
  156. }
  157. .box-shadow (@value) {
  158. -webkit-box-shadow: @value;
  159. -moz-box-shadow: @value;
  160. box-shadow: @value;
  161. }
  162. .transition-property (@value) {
  163. -webkit-transition-property: @value;
  164. -moz-transition-property: @value;
  165. transition-property: @value;
  166. }
  167. .transition-property (@value1, @value2) {
  168. -webkit-transition-property: @value1, @value2;
  169. -moz-transition-property: @value1, @value2;
  170. transition-property: @value1, @value2;
  171. }
  172. .transition-duration (@value) {
  173. -webkit-transition-duration: @value;
  174. -moz-transition-duration: @value;
  175. transition-duration: @value;
  176. }
  177. .transition-duration (@value1, @value2) {
  178. -webkit-transition-duration: @value1, @value2;
  179. -moz-transition-duration: @value1, @value2;
  180. transition-duration: @value1, @value2;
  181. }
  182. .transition-timing-function (@value) {
  183. -webkit-transition-timing-function: @value;
  184. -moz-transition-timing-function: @value;
  185. transition-timing-function: @value;
  186. }
  187. .linear-gradient (@value1, @value2) {
  188. // summary:
  189. // Expands to browser specific background-image specifications for a linear-gradient (2 stops)
  190. background-image: -moz-linear-gradient(@value1, @value2); // FF3.6+
  191. background-image: -webkit-linear-gradient(@value1, @value2); // Chrome10+, Safari5.1+
  192. background-image: -o-linear-gradient(@value1, @value2); // Opera 11.10+
  193. background-image: -ms-linear-gradient(@value1, @value2); // IE10+
  194. // background-image: linear-gradient(@value1, @value2); // W3C (uncomment when standard is approved)
  195. }
  196. .linear-gradient (@value1, @value2, @value3) {
  197. background-image: -moz-linear-gradient(@value1, @value2, @value3); // FF3.6+
  198. background-image: -webkit-linear-gradient(@value1, @value2, @value3); // Chrome10+, Safari5.1+
  199. background-image: -o-linear-gradient(@value1, @value2, @value3); // Opera 11.10+
  200. background-image: -ms-linear-gradient(@value1, @value2, @value3); // IE10+
  201. // background-image: linear-gradient(@value1, @value2, @value3); // W3C (uncomment when standard is approved)
  202. }
  203. .linear-gradient (@value1, @value2, @value3, @value4) {
  204. background-image: -moz-linear-gradient(@value1, @value2, @value3, @value4); // FF3.6+
  205. background-image: -webkit-linear-gradient(@value1, @value2, @value3, @value4); // Chrome10+, Safari5.1+
  206. background-image: -o-linear-gradient(@value1, @value2, @value3, @value4); // Opera 11.10+
  207. background-image: -ms-linear-gradient(@value1, @value2, @value3, @value4); // IE10+
  208. // background-image: linear-gradient(@value1, @value2, @value3, @value4); // W3C (uncomment when standard is approved)
  209. }
  210. .linear-gradient (@value1, @value2, @value3, @value4, @value5) {
  211. background-image: -moz-linear-gradient(@value1, @value2, @value3, @value4, @value5); // FF3.6+
  212. background-image: -webkit-linear-gradient(@value1, @value2, @value3, @value4, @value5); // Chrome10+, Safari5.1+
  213. background-image: -o-linear-gradient(@value1, @value2, @value3, @value4, @value5); // Opera 11.10+
  214. background-image: -ms-linear-gradient(@value1, @value2, @value3, @value4, @value5); // IE10+
  215. // background-image: linear-gradient(@value1, @value2, @value3, @value4, @value5); // W3C (uncomment when standard is approved)
  216. }
  217. .linear-gradient (@value1, @value2, @value3, @value4, @value5, @value6) {
  218. background-image: -moz-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6); // FF3.6+
  219. background-image: -webkit-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6); // Chrome10+, Safari5.1+
  220. background-image: -o-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6); // Opera 11.10+
  221. background-image: -ms-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6); // IE10+
  222. // background-image: linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6); // W3C (uncomment when standard is approved)
  223. }
  224. .linear-gradient (@value1, @value2, @value3, @value4, @value5, @value6, @value7) {
  225. background-image: -moz-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6, @value7); // FF3.6+
  226. background-image: -webkit-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6, @value7); // Chrome10+, Safari5.1+
  227. background-image: -o-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6, @value7); // Opera 11.10+
  228. background-image: -ms-linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6, @value7); // IE10+
  229. // background-image: linear-gradient(@value1, @value2, @value3, @value4, @value5, @value6, @value7); // W3C (uncomment when standard is approved)
  230. }
  231. .alpha-white-gradient (@opacity1, @stop1, @opacity2, @stop2) {
  232. // summary:
  233. // For setting up white background-image with variable transparency.
  234. // example:
  235. // Gradient starts at top (0%) with 30% opacity, and then ends at bottom (100%) with full transparency
  236. // | .alpha-white-gradient(0.3, 0%, 0, 100%)
  237. //
  238. .linear-gradient(rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2);
  239. }
  240. .alpha-white-gradient (@start, @opacity1, @stop1, @opacity2, @stop2) {
  241. .linear-gradient(@start, rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2);
  242. }
  243. .alpha-white-gradient (@opacity1, @stop1, @opacity2, @stop2, @opacity3, @stop3) {
  244. .linear-gradient(rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2, rgba(255,255,255, @opacity3) @stop3);
  245. }
  246. .alpha-white-gradient (@start, @opacity1, @stop1, @opacity2, @stop2, @opacity3, @stop3) {
  247. .linear-gradient(@start, rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2, rgba(255,255,255, @opacity3) @stop3);
  248. }
  249. .alpha-white-gradient (@opacity1, @stop1, @opacity2, @stop2, @opacity3, @stop3, @opacity4, @stop4) {
  250. .linear-gradient(rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2, rgba(255,255,255, @opacity3) @stop3, rgba(255,255,255, @opacity4) @stop4);
  251. }
  252. .alpha-white-gradient (@start, @opacity1, @stop1, @opacity2, @stop2, @opacity3, @stop3, @opacity4, @stop4) {
  253. .linear-gradient(@start, rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2, rgba(255,255,255, @opacity3) @stop3, rgba(255,255,255, @opacity4) @stop4);
  254. }
  255. .alpha-white-gradient (@start, @opacity1, @stop1, @opacity2, @stop2, @opacity3, @stop3, @opacity4, @stop4, @opacity5, @stop5) {
  256. .linear-gradient(@start, rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2, rgba(255,255,255, @opacity3) @stop3, rgba(255,255,255, @opacity4) @stop4, rgba(255,255,255, @opacity5) @stop5);
  257. }
  258. .alpha-white-gradient (@start, @opacity1, @stop1, @opacity2, @stop2, @opacity3, @stop3, @opacity4, @stop4, @opacity5, @stop5, @opacity6, @stop6) {
  259. .linear-gradient(@start, rgba(255,255,255,@opacity1) @stop1, rgba(255,255,255,@opacity2) @stop2, rgba(255,255,255, @opacity3) @stop3, rgba(255,255,255, @opacity4) @stop4, rgba(255,255,255, @opacity5) @stop5, rgba(255,255,255, @opacity6) @stop6);
  260. }
  261. .gradient-and-filter (@color, @fade1, @fade2) {
  262. // summary:
  263. // Sets up a background color with a vertical gradient.
  264. // In order to make transitions work properly on mozilla and webkit, this is done by combining
  265. // a background-color which will be changed based on state (ex: hover) with a constant
  266. // white alpha-transparency background-image. On IE it creates a DXImageTransform filter.
  267. // @color:
  268. // The color
  269. // @fade1:
  270. // The percent to fade at the top
  271. // @fade2:
  272. // The percent to fade at the bottom
  273. background-color: @color; // the base color
  274. .linear-gradient(fadeout(#fff, 100-@fade1), fadeout(#fff, 100-@fade2));
  275. filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr="lighten(@color, @fade1)~", endColorstr="lighten(@color, @fade2)~")"; // IE
  276. }
  277. .horizontal-gradient-and-filter (@color, @fade1, @fade2) {
  278. // summary:
  279. // Sets up a background color with a horizontal gradient.
  280. // In order to make transitions work properly on mozilla and webkit, this is done by combining
  281. // a background-color which will be changed based on state (ex: hover) with a constant
  282. // white alpha-transparency background-image. On IE it creates a DXImageTransform filter.
  283. // @color:
  284. // The color
  285. // @fade1:
  286. // The percent to fade at the top
  287. // @fade2:
  288. // The percent to fade at the bottom
  289. background-color: @color; // the base color
  290. .linear-gradient(left, fadeout(#fff, 100-@fade1), fadeout(#fff, 100-@fade2));
  291. filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr="lighten(@color, @fade1)~", endColorstr="lighten(@color, @fade2)~"gradientType=1)"; // IE
  292. }
  293. // Mixins defining gradients
  294. .textbox-background-image () {
  295. // summary:
  296. // Background image used for hovered TextBoxes and similar controls.
  297. // It's just a small inset shadow below the top border (inside of the TextBox).
  298. .linear-gradient(rgba(127,127,127,0.2) 0%, rgba(127,127,127,0) 2px);
  299. }
  300. .standard-gradient (@pathToRoot: "") {
  301. // summary:
  302. // Light to dark background-image used by widgets with short height (~16px) including:
  303. // - MenuBar, and hovered MenuItem/MenuBarItem
  304. // - arrow icon wrapper for Select, ComboBox, Spinner
  305. // - Toolbar and hovered Toolbar buttons
  306. // - TitlePane title bar, AccordionContainer title bar, Dialog title bar
  307. // Fallback for IE
  308. background-image: url("@{pathToRoot}images/standardGradient.png");
  309. background-repeat: repeat-x;
  310. // CSS gradient for other browsers
  311. .alpha-white-gradient(0.7, 0%, 0, 100%);
  312. // IE6 can't handle a background-image with transparency and a background-color; the color is blocked out
  313. _background-image: none;
  314. }
  315. .active-gradient (@pathToRoot: "") {
  316. // summary:
  317. // Light to dark background-image with an inset gray shadow at the top,
  318. // used by widgets when they are active (ie: mousedown) or selected, including:
  319. // - active MenuItem/MenuBarItem
  320. // - arrow icon wrapper for Select, ComboBox, Spinner when active or drop down is open
  321. // - active Toolbar buttons
  322. // - active TitlePane title bar, AccordionContainer title bar
  323. // Fallback for IE
  324. background-image: url("@{pathToRoot}images/activeGradient.png");
  325. background-repeat: repeat-x;
  326. // CSS gradient for other browsers
  327. .linear-gradient(rgba(190,190,190,0.98) 0px, rgba(255, 255, 255, 0.65) 3px, rgba(255, 255, 255, 0) 100%);
  328. // IE6 can't handle a background-image with transparency and a background-color; the color is blocked out
  329. _background-image: none;
  330. }