variables.less 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. //
  2. // Variables
  3. // --------------------------------------------------
  4. // Global values
  5. // --------------------------------------------------
  6. // Grays
  7. // -------------------------
  8. @black: #000;
  9. @grayDarker: #222;
  10. @grayDark: #333;
  11. @gray: #555;
  12. @grayLight: #999;
  13. @grayLighter: #eee;
  14. @white: #fff;
  15. // Accent colors
  16. // -------------------------
  17. @blue: #049cdb;
  18. @blueDark: #0064cd;
  19. @green: #46a546;
  20. @red: #9d261d;
  21. @yellow: #ffc40d;
  22. @orange: #f89406;
  23. @pink: #c3325f;
  24. @purple: #7a43b6;
  25. // Scaffolding
  26. // -------------------------
  27. @bodyBackground: @white;
  28. @textColor: @grayDark;
  29. // Links
  30. // -------------------------
  31. @linkColor: #08c;
  32. @linkColorHover: darken(@linkColor, 15%);
  33. // Typography
  34. // -------------------------
  35. @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
  36. @serifFontFamily: Georgia, "Times New Roman", Times, serif;
  37. @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
  38. @baseFontSize: 14px;
  39. @baseFontFamily: @sansFontFamily;
  40. @baseLineHeight: 20px;
  41. @altFontFamily: @serifFontFamily;
  42. @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
  43. @headingsFontWeight: bold; // instead of browser default, bold
  44. @headingsColor: inherit; // empty to use BS default, @textColor
  45. // Tables
  46. // -------------------------
  47. @tableBackground: transparent; // overall background-color
  48. @tableBackgroundAccent: #f9f9f9; // for striping
  49. @tableBackgroundHover: #f5f5f5; // for hover
  50. @tableBorder: #ddd; // table and cell border
  51. // Buttons
  52. // -------------------------
  53. @btnBackground: @white;
  54. @btnBackgroundHighlight: darken(@white, 10%);
  55. @btnBorder: #bbb;
  56. @btnPrimaryBackground: @linkColor;
  57. @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
  58. @btnInfoBackground: #5bc0de;
  59. @btnInfoBackgroundHighlight: #2f96b4;
  60. @btnSuccessBackground: #62c462;
  61. @btnSuccessBackgroundHighlight: #51a351;
  62. @btnWarningBackground: lighten(@orange, 15%);
  63. @btnWarningBackgroundHighlight: @orange;
  64. @btnDangerBackground: #ee5f5b;
  65. @btnDangerBackgroundHighlight: #bd362f;
  66. @btnInverseBackground: #444;
  67. @btnInverseBackgroundHighlight: @grayDarker;
  68. // Forms
  69. // -------------------------
  70. @inputBackground: @white;
  71. @inputBorder: #ccc;
  72. @inputBorderRadius: 3px;
  73. @inputDisabledBackground: @grayLighter;
  74. @formActionsBackground: #f5f5f5;
  75. // Dropdowns
  76. // -------------------------
  77. @dropdownBackground: @white;
  78. @dropdownBorder: rgba(0,0,0,.2);
  79. @dropdownDividerTop: #e5e5e5;
  80. @dropdownDividerBottom: @white;
  81. @dropdownLinkColor: @grayDark;
  82. @dropdownLinkColorHover: @white;
  83. @dropdownLinkColorActive: @dropdownLinkColor;
  84. @dropdownLinkBackgroundActive: @linkColor;
  85. @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
  86. // COMPONENT VARIABLES
  87. // --------------------------------------------------
  88. // Z-index master list
  89. // -------------------------
  90. // Used for a bird's eye view of components dependent on the z-axis
  91. // Try to avoid customizing these :)
  92. @zindexDropdown: 1000;
  93. @zindexPopover: 1010;
  94. @zindexTooltip: 1030;
  95. @zindexFixedNavbar: 1030;
  96. @zindexModalBackdrop: 1040;
  97. @zindexModal: 1050;
  98. // Sprite icons path
  99. // -------------------------
  100. @iconSpritePath: "../img/glyphicons-halflings.png";
  101. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  102. // Input placeholder text color
  103. // -------------------------
  104. @placeholderText: @grayLight;
  105. // Hr border color
  106. // -------------------------
  107. @hrBorder: @grayLighter;
  108. // Horizontal forms & lists
  109. // -------------------------
  110. @horizontalComponentOffset: 180px;
  111. // Wells
  112. // -------------------------
  113. @wellBackground: #f5f5f5;
  114. // Navbar
  115. // -------------------------
  116. @navbarCollapseWidth: 979px;
  117. @navbarHeight: 40px;
  118. @navbarBackgroundHighlight: #ffffff;
  119. @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
  120. @navbarBorder: darken(@navbarBackground, 12%);
  121. @navbarText: #777;
  122. @navbarLinkColor: #777;
  123. @navbarLinkColorHover: @grayDark;
  124. @navbarLinkColorActive: @gray;
  125. @navbarLinkBackgroundHover: transparent;
  126. @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
  127. @navbarBrandColor: @navbarLinkColor;
  128. // Inverted navbar
  129. @navbarInverseBackground: #111111;
  130. @navbarInverseBackgroundHighlight: #222222;
  131. @navbarInverseBorder: #252525;
  132. @navbarInverseText: @grayLight;
  133. @navbarInverseLinkColor: @grayLight;
  134. @navbarInverseLinkColorHover: @white;
  135. @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
  136. @navbarInverseLinkBackgroundHover: transparent;
  137. @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
  138. @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
  139. @navbarInverseSearchBackgroundFocus: @white;
  140. @navbarInverseSearchBorder: @navbarInverseBackground;
  141. @navbarInverseSearchPlaceholderColor: #ccc;
  142. @navbarInverseBrandColor: @navbarInverseLinkColor;
  143. // Pagination
  144. // -------------------------
  145. @paginationBackground: #fff;
  146. @paginationBorder: #ddd;
  147. @paginationActiveBackground: #f5f5f5;
  148. // Hero unit
  149. // -------------------------
  150. @heroUnitBackground: @grayLighter;
  151. @heroUnitHeadingColor: inherit;
  152. @heroUnitLeadColor: inherit;
  153. // Form states and alerts
  154. // -------------------------
  155. @warningText: #c09853;
  156. @warningBackground: #fcf8e3;
  157. @warningBorder: darken(spin(@warningBackground, -10), 3%);
  158. @errorText: #b94a48;
  159. @errorBackground: #f2dede;
  160. @errorBorder: darken(spin(@errorBackground, -10), 3%);
  161. @successText: #468847;
  162. @successBackground: #dff0d8;
  163. @successBorder: darken(spin(@successBackground, -10), 5%);
  164. @infoText: #3a87ad;
  165. @infoBackground: #d9edf7;
  166. @infoBorder: darken(spin(@infoBackground, -10), 7%);
  167. // Tooltips and popovers
  168. // -------------------------
  169. @tooltipColor: #fff;
  170. @tooltipBackground: #000;
  171. @tooltipArrowWidth: 5px;
  172. @tooltipArrowColor: @tooltipBackground;
  173. @popoverBackground: #fff;
  174. @popoverArrowWidth: 10px;
  175. @popoverArrowColor: #fff;
  176. @popoverTitleBackground: darken(@popoverBackground, 3%);
  177. // Special enhancement for popovers
  178. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  179. @popoverArrowOuterColor: rgba(0,0,0,.25);
  180. // GRID
  181. // --------------------------------------------------
  182. // Default 940px grid
  183. // -------------------------
  184. @gridColumns: 12;
  185. @gridColumnWidth: 60px;
  186. @gridGutterWidth: 20px;
  187. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  188. // 1200px min
  189. @gridColumnWidth1200: 70px;
  190. @gridGutterWidth1200: 30px;
  191. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  192. // 768px-979px
  193. @gridColumnWidth768: 42px;
  194. @gridGutterWidth768: 20px;
  195. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  196. // Fluid grid
  197. // -------------------------
  198. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  199. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  200. // 1200px min
  201. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  202. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  203. // 768px-979px
  204. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  205. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);