variables.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. // General
  2. @text-color: #000000; // Text color for enabled widgets
  3. @border-color: #b5bcc7; // Border color for (enabled, unhovered) TextBox, Slider, Accordion, BorderContainer, TabContainer
  4. @popup-border-color: #769dc0; // Border for Dialog, Menu, Tooltip. Must also update tooltip.png (the arrow image file) to match
  5. @minor-border-color: #d3d3d3; // Color of borders inside widgets: horizontal line in Calendar between weeks, around color swatches in ColorPalette, above Dialog action bar
  6. @disabled-border-color: #d3d3d3; // Border color for disabled/readonly Button, TextBox etc. widgets
  7. @disabled-background-color: #efefef;// Disabled button, textbox, etc.
  8. @disabled-text-color: #818181; // Text color for disabled/readonly widgets
  9. @unselected-background-color: #efefef;// Background color for unselected/unopened tab button, accordion pane, TitlePane, Menu items
  10. @unselected-text-color: #4a4a4a; // Text color for unselected/unopened tab button, accordion pane, TitlePane, Menu items
  11. @hovered-border-color: #769dc0; // Hover of textbox, tab label, BorderContainer splitter, Calendar, etc.
  12. @hovered-background-color: #abd6ff; // 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
  13. @hovered-text-color: @text-color; // Used for title of select Accordion pane, label of select tab, hovered Menu item, etc.
  14. @pressed-border-color: #769dc0; // During click on Calendar day, Slider up/down buttons, tab button, etc.
  15. @pressed-background-color: #7dbefa; // Background color while clicking on Accordion/TitlePane title bar, tab button, Calendar day, Toolbar button, Tree row.
  16. @selected-border-color: #769dc0; // Selected AccordionPane, tab of nested TabContainer (but plain TabContainer is special)
  17. @selected-background-color: #cfe5fa;// Selected Accordion pane, nested tab label, Tree row
  18. @selected-text-color: @text-color; // title of selected Accordion pane, label of selected tab, hovered Menu item, etc.
  19. @bar-background-color: #efefef; // MenuBar, Toolbar, action bar at bottom of dialog
  20. @pane-background-color: #fff; // Background color of Accordion panes, Dialogs, etc.
  21. @popup-background-color: #fff; // Background for Dialog. TODO: currently use for ColorPalette, maybe should change.
  22. // Buttons
  23. @button-border-color: #769dc0; // Border for (stand-alone) buttons in normal, hovered, or active state
  24. @button-background-color: #e9f4fe; // Background color for (unhovered) buttons
  25. @button-hovered-background-color: #abd6ff; // Background color for hovered buttons
  26. @button-pressed-background-color: #abd6ff; // Background color for active buttons
  27. @button-border-radius: 4px; // Rounded corner radius for buttons (except in toolbar)
  28. // Input widgets
  29. @focused-border-color: #769dc0; // Focused textbox, editor, select, etc.
  30. @error-border-color: #d46464; // Border for textbox in error state
  31. @error-focused-border-color: #ce4f4f; // Border of textbox in error state, and focused
  32. @erroricon-background-color: #d46464; // Background color for exclamation point validation icon (for TextBox in error state)
  33. @textbox-background-color: #fff; // Default background color of TextBox based widgets
  34. @textbox-hovered-background-color: #e9f4fe; // Background color when hovering a unfocused TextBox, Select, Editor, or other input widget
  35. @textbox-focused-background-color: @textbox-background-color;
  36. @textbox-error-background-color: @textbox-background-color;
  37. @textbox-disabled-background-color: @disabled-background-color;
  38. @textbox-padding: 2px; // Padding for Textbox, Textarea, etc.
  39. // CheckBox, RadioButton
  40. @focus-outline-color: #4a4a4a; // Color for artificial focus outline around labels of checkboxes
  41. // TabContainer
  42. @nestedtab-hovered-background-color: @textbox-hovered-background-color;
  43. @nestedtab-hovered-border-color: #cfe5fa;
  44. @nestedtab-selected-border-color: @selected-border-color;
  45. @nestedtab-selected-background-color: #abd6ff;
  46. @tab-disabled-background-color: #d3d3d3; // For disabled tabs of a TabContainer (not officially supported)
  47. // Arrow buttons (stand alone, or inside ComboBox / ComboButton / Spinner / etc.
  48. @arrowbutton-background-color: #efefef;
  49. @arrowbutton-hovered-background-color: #abd6ff; // Color of arrow when hovering ComboBox. But hovering Spinner doesn't change arrow color (TODO)
  50. @arrowbutton-pressed-background-color: #abd6ff;
  51. @arrowbutton-inner-border-color: #fff; // Typically the arrows have an inner white border (a.k.a. padding) and then an outer black-ish border
  52. // Slider
  53. // Note: any changes here require corresponding changes in form/images/sliderThumbs.png
  54. @slider-fullbar-background-color: #cfe5fa; // Background color for part of slider bar before (to the left or below) the handle
  55. @slider-remainingbar-background-color: #fff; // Background color for part of slider bar after (to the right or above) the handle
  56. @slider-hovered-fullbar-background-color: #abd6ff; // Background color for part of bar of hovered slider before (to the left or below) the handle
  57. @slider-hovered-remainingbar-background-color: #fff;// Background color for part of bar of hovered slider after (to the right or above) the handle
  58. @slider-hoveredButton-background-color: #fff; // Background color of slider increment/decrement buttons when mouse is over slider but not over the buttons
  59. @slider-focused-fullbar-background-color: #abd6ff; // Background color for part of bar of focused slider before (to the left or below) the handle
  60. @slider-focused-remainingbar-background-color: #fff;// Background color for part of bar of focused slider after (to the right or above) the handle
  61. @slider-button-hovered-background-color: #cfe5fa; // Background color of slider increment/decrement buttons when mouse is over the buttons
  62. @slider-button-pressed-background-color: #abd6ff; // Background color of slider increment/decrement buttons while button is depressed
  63. // Select, ComboBox
  64. @select-dropdownitem-background-color: #fff; // Background color for items in the drop down list of a ComboBox/Select
  65. @select-dropdownitem-hovered-background-color: #7dbefa; // Background color for the hovered item in the drop down list of a ComboBox/Select
  66. @select-matchedtext-background-color: #abd6ff; // Background color of text in ComboBox drop down that matches typed in phrase
  67. // Menus
  68. @menu-background-color: @popup-background-color;
  69. // Calendar
  70. @calendar-background-color: #cfe5fa;
  71. @calendar-currentmonth-background-color: #fff; // Background color for days of the current month
  72. @calendar-adjacentmonth-background-color: #e9f4fe; // Background color used for days from previous or next month
  73. @calendar-adjacentmonth-text-color: #769dc0; // Text color used for days from previous or next month
  74. @calendar-date-pressed-border-color: #fff; // For some reason pressing a day of the month (as opposed to hovering it) makes the border go away, is this intentional?
  75. @calendar-date-pressed-background-color: @pressed-background-color;
  76. @calendar-date-selected-border-color: @selected-border-color;
  77. @calendar-date-selected-background-color: #abd6ff;
  78. @calendar-button-hovered-background-color: #e9f4fe; // 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)
  79. @calendar-button-hovered-border-color: #fff; // for hover or next/previous year, and month drop down
  80. @calendar-button-pressed-background-color: #cfe5fa;
  81. @calendar-button-pressed-border-color: @pressed-border-color;
  82. // ProgressBar
  83. @progressbar-border-color: @popup-border-color; // Border color of progress bar
  84. @progressbar-full-background-color:#abd6ff; // Background color for part of progress bar indicating amount completed
  85. @progressbar-empty-background-color: #fff; // Background color for part of progress bar indicating amount remaining
  86. @progressbar-text-color: @text-color; // Color of progress bar text (ex: "35%"). Must contrast with both empty and full background colors.
  87. // TimePicker
  88. @timepicker-minorvalue-background-color: #efefef; // For 3:15, 3:30, 3:45 but not 3:00 or 4:00
  89. @timepicker-minorvalue-text-color: #818181;
  90. @timepicker-majorvalue-background-color: #e9f4fe; // For 3:00, 4:00, 5:00, etc.
  91. @timepicker-value-hovered-background-color: #7dbefa;
  92. @timepicker-value-hovered-text-color: @hovered-text-color;
  93. @timepicker-arrow-hovered-background-color: #abd6ff;
  94. // ColorPalette
  95. @colorpalette-background-color: #fff;
  96. @swatch-border-color: @minor-border-color;
  97. @swatch-hovered-border-color: #000;
  98. @swatch-selected-border-color: #000;
  99. // Dialog
  100. @dialog-underlay-color: #fff; // the thing that grays out the screen when a dialog is shown
  101. @dialog-titlebar-border-color: #fff; // Inner border around the title sectionof a Dialog, inside the main border of the Dialog and the border between title and content
  102. @dialog-titlebar-background-color: #abd6ff;
  103. // BorderContainer
  104. @splitter-hovered-background-color: #cfe5fa; // Color of splitter when user hovers it, before mouse down
  105. @splitter-dragged-background-color: #abd6ff; // Color of splitter while it's being dragged
  106. // Toolbar
  107. @toolbar-button-checked-background-color: #fff; // a toggled-on button in the toolbar
  108. @toolbar-combobutton-hovered-unhoveredsection-background-color: #f4ffff; // when user hovers a ComboButton in a Toolbar, the other half of the button turns this color
  109. @toolbar-button-border-radius: 2px; // Rounded corner radius for buttons for buttons in toolbar
  110. // DnD
  111. @dnd-avatar-background-color: #fff; // Background color of little Dialog-type box indicating dragged items
  112. @dnd-avatar-header-background-color: #f58383; // Title bar for dragged items
  113. @dnd-avatar-candrop-header-background-color: #97e68d;// Title bar for dragged items when they can be dropped
  114. @dnd-dropseparator-color: #769dc0; // Color of line indicating that user is about to drop between items A & B
  115. // Document level
  116. @document-text-color: #131313; // Text color for document itself (text outside of widgets)
  117. @document-shadedsection-background-color: @bar-background-color;// background color used for <pre>, <code>, and table header rows
  118. @document-border-color: #d3d3d3; // Border for <pre>, <code>, tables, etc.
  119. // Mixins
  120. .border-radius (@radius) {
  121. -moz-border-radius: @radius;
  122. border-radius: @radius;
  123. }
  124. .box-shadow (@value) {
  125. -webkit-box-shadow: @value;
  126. -moz-box-shadow: @value;
  127. box-shadow: @value;
  128. }
  129. .transition-property (@value) {
  130. -webkit-transition-property: @value;
  131. -moz-transition-property: @value;
  132. transition-property: @value;
  133. }
  134. .transition-property (@value1, @value2) {
  135. -webkit-transition-property: @value1, @value2;
  136. -moz-transition-property: @value1, @value2;
  137. transition-property: @value1, @value2;
  138. }
  139. .transition-duration (@value) {
  140. -webkit-transition-duration: @value;
  141. -moz-transition-duration: @value;
  142. transition-duration: @value;
  143. }
  144. .transition-duration (@value1, @value2) {
  145. -webkit-transition-duration: @value1, @value2;
  146. -moz-transition-duration: @value1, @value2;
  147. transition-duration: @value1, @value2;
  148. }
  149. .transition-timing-function (@value) {
  150. -webkit-transition-timing-function: @value;
  151. -moz-transition-timing-function: @value;
  152. transition-timing-function: @value;
  153. }