Variables.less 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. // Variables
  2. // Syntax: <control>-(<sub control>)-<bg|border|text>-(<state>)-(<extra>);
  3. // Example: @btn-primary-bg-hover-hlight;
  4. @prefix: mce;
  5. // Default font
  6. @font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  7. @font-size: 14px;
  8. @line-height: 20px;
  9. @has-gradients: true;
  10. @has-radius: true;
  11. @has-boxshadow: true;
  12. // Text colors
  13. @text: #333;
  14. @text-inverse: white;
  15. @text-disabled: #aaa;
  16. @text-shadow: 0 1px 1px hsla(hue(@text-inverse), saturation(@text-inverse), lightness(@text-inverse), 0.75);
  17. @text-error: #aa0000;
  18. // Button
  19. @btn-text: @text;
  20. @btn-text-shadow: @text-inverse;
  21. @btn-border-top: rgba(0, 0, 0, .1);
  22. @btn-border-right: rgba(0, 0, 0, .1);
  23. @btn-border-bottom: fadein(rgba(0, 0, 0, .1), 15%);
  24. @btn-border-left: fadein(rgba(0, 0, 0, .1), 15%);
  25. @btn-split-border: #bdbdbd;
  26. @btn-caret-border: @btn-text;
  27. @btn-text-disabled: @text-disabled;
  28. @btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
  29. @btn-box-shadow-active: inset 0 2px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
  30. @btn-box-disabled-opacity: 0.4;
  31. @btn-bg: white;
  32. @btn-bg-hlight: #D9D9D9;
  33. @btn-bg-hover: darken(@btn-bg, 5%);
  34. @btn-bg-hlight-hover: darken(@btn-bg-hlight, 5%);
  35. @btn-primary-bg: #0088cc;
  36. @btn-primary-bg-hlight: #0044cc;
  37. @btn-primary-bg-hover: darken(@btn-primary-bg, 5%);
  38. @btn-primary-bg-hover-hlight: darken(@btn-primary-bg-hlight, 5%);
  39. @btn-primary-text: #fff;
  40. @btn-primary-text-shadow: #333;
  41. @btn-primary-border-top: mix(@btn-border-top, @btn-primary-bg, 50%);
  42. @btn-primary-border-right: mix(@btn-border-right, @btn-primary-bg, 50%);
  43. @btn-primary-border-bottom: mix(@btn-border-bottom, @btn-primary-bg, 50%);
  44. @btn-primary-border-left: mix(@btn-border-left, @btn-primary-bg, 50%);
  45. // Menu
  46. @menuitem-text: @text;
  47. @menu-bg: #fff;
  48. @menu-border: rgba(0, 0, 0, 0.2);
  49. @menubar-border: mix(@panel-border, @panel-bg, 60%);
  50. @menuitem-text-inverse: @text-inverse;
  51. @menubar-bg-active: darken(@btn-bg, 10%);
  52. @menuitem-bg-hover: #0081C2;
  53. @menuitem-bg-selected: #08C;
  54. @menuitem-bg-selected-hlight: #0077B3;
  55. @menuitem-bg-disabled: #CCC;
  56. @menuitem-caret: @menuitem-text;
  57. @menuitem-caret-selected: @menuitem-text-inverse;
  58. @menuitem-separator-top: #CBCBCB;
  59. @menuitem-separator-bottom: @menu-bg;
  60. @menuitem-bg-active: #C8DEF4;
  61. @menuitem-text-active: @text;
  62. @menuitem-preview-border-active: #aaa;
  63. // Panel
  64. @panel-border: #9E9E9E;
  65. @panel-bg: #FDFDFD;
  66. @panel-bg-hlight: #DDD;
  67. // Tabs
  68. @tab-border: #c5c5c5;
  69. @tab-bg: #e3e3e3;
  70. @tab-bg-hover: #FDFDFD;
  71. @tab-bg-active: #FDFDFD;
  72. // Tooltip
  73. @tooltip-bg: #000;
  74. @tooltip-text: white;
  75. @tooltip-font-size: 11px;
  76. // Window
  77. @window-border: #c5c5c5;
  78. @window-head-border: @window-border;
  79. @window-head-close: mix(@text, @window-bg, 60%);
  80. @window-head-close-hover: mix(@text, @window-bg, 40%);
  81. @window-foot-border: @window-border;
  82. @window-foot-bg: @window-bg;
  83. @window-fullscreen-bg: #FFF;
  84. @window-modalblock-bg: #000;
  85. @window-modalblock-opacity: 0.3;
  86. @window-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
  87. @window-bg: #FFF;
  88. @window-title-font-size: 20px;
  89. // Popover
  90. @popover-bg: @window-bg;
  91. @popover-arrow-width: 10px;
  92. @popover-arrow: @window-bg;
  93. @popover-arrow-outer-width: @popover-arrow-width + 1;
  94. @popover-arrow-outer: rgba(0, 0, 0, 0.25);
  95. // Floatpanel
  96. @floatpanel-box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
  97. // Checkbox
  98. @checkbox-bg: @btn-bg;
  99. @checkbox-bg-hlight: @btn-bg-hlight;
  100. @checkbox-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
  101. @checkbox-border: #c5c5c5;
  102. @checkbox-border-focus: rgba(82, 168, 236, .8);
  103. // Path
  104. @path-text: @text;
  105. @path-bg-focus: #666;
  106. @path-text-focus: #fff;
  107. // Textbox
  108. @textbox-text-placeholder: #aaa;
  109. @textbox-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  110. @textbox-bg: #fff;
  111. @textbox-border: #c5c5c5;
  112. @textbox-border-focus: rgba(82, 168, 236, .8);
  113. // Throbber
  114. @throbber-bg: #fff url('img/loader.gif') no-repeat center center;
  115. // Combobox
  116. @combobox-border: @textbox-border;
  117. // Grid
  118. @grid-bg-active: @menuitem-bg-active;
  119. @grid-border-active: #a1a1a1;
  120. @grid-border: #d6d6d6;
  121. // Misc
  122. @colorbtn-backcolor-bg: #BBB;
  123. @iframe-border: @panel-border;