variables.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. // Blues
  16. // -------------------------
  17. @blueDarker: #003366;
  18. @blueDark: #005f9b; // Pantone 3015 C;
  19. @blue: #009add; // Pantone 2925 C;
  20. @blueLight: #b8dcf2;
  21. @blueLighter: #f0f9ff;
  22. // Greens
  23. // -------------------------
  24. @greenDarker: #41683b;
  25. @greenDark: #678943;
  26. @green: #95bf52;
  27. @greenLight: #ddefbd;
  28. @greenLighter: #f3f9e8;
  29. // Reds
  30. // -------------------------
  31. @redDarker: #702222;
  32. @redDark: #ba4a4a;
  33. @red: #dd7373;
  34. @redLight: #f2adb1;
  35. @redLighter: #fff0f0;
  36. // Yellows
  37. // -------------------------
  38. @yellowDarker: #5b4411;
  39. @yellowDark: #cc9600;
  40. @yellow: #f9e27d;
  41. @yellowLight: #fff5bd;
  42. @yellowLighter: #fffcee;
  43. // Oranges
  44. // -------------------------
  45. @orangeDarker: #8c3900;
  46. @orangeDark: #cc5d11;
  47. @orange: #f4914e;
  48. @orangeLight: #ffd0a6;
  49. @orangeLighter: #fff4e6;
  50. // Purples
  51. // -------------------------
  52. @purpleDarker: #4a226d;
  53. @purpleDark: #7457ad;
  54. @purple: #9780d6;
  55. @purpleLight: #c3b8f4;
  56. @purpleLighter: #fbf5ff;
  57. // Accent colors
  58. // -------------------------
  59. @red: #9d261d;
  60. @redDark: darken(@red, 10%);
  61. // Scaffolding
  62. // -------------------------
  63. @bodyBackground: @white;
  64. @textColor: @grayDark;
  65. // Links
  66. // -------------------------
  67. @linkColor: lighten(@red, 10%);
  68. @linkColorHover: @red;
  69. // Typography
  70. // -------------------------
  71. @sansFontFamily: proxima-nova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  72. @serifFontFamily: museo-slab, "Helvetica Neue", Helvetica, Arial, sans-serif;
  73. @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
  74. @baseFontSize: 14px;
  75. @baseFontFamily: @sansFontFamily;
  76. @baseLineHeight: 20px;
  77. @altFontFamily: @serifFontFamily;
  78. @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
  79. @headingsFontWeight: 500; // instead of browser default, bold
  80. @headingsColor: inherit; // empty to use BS default, @textColor
  81. // Component sizing
  82. // -------------------------
  83. // Based on 14px font-size and 20px line-height
  84. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  85. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  86. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  87. @paddingLarge: 11px 19px; // 44px
  88. @paddingSmall: 2px 10px; // 26px
  89. @paddingMini: 0 6px; // 22px
  90. @baseBorderRadius: 4px;
  91. @borderRadiusLarge: 6px;
  92. @borderRadiusSmall: 3px;
  93. // Tables
  94. // -------------------------
  95. @tableBackground: transparent; // overall background-color
  96. @tableBackgroundAccent: #f9f9f9; // for striping
  97. @tableBackgroundHover: #f5f5f5; // for hover
  98. @tableBorder: #ddd; // table and cell border
  99. // Buttons
  100. // -------------------------
  101. @btnBackground: @white;
  102. @btnBackgroundHighlight: darken(@white, 10%);
  103. @btnBorder: #bbb;
  104. @btnPrimaryBackground: #fffeb8;
  105. @btnPrimaryBackgroundHighlight: #c49c38;
  106. @btnInfoBackground: @blue;
  107. @btnInfoBackgroundHighlight: mix(@blue, @blueDark, 50%);
  108. @btnSuccessBackground: @green;
  109. @btnSuccessBackgroundHighlight: @greenDark;
  110. @btnWarningBackground: @yellow;
  111. @btnWarningBackgroundHighlight: @yellowDark;
  112. @btnDangerBackground: lighten(@red, 20%);
  113. @btnDangerBackgroundHighlight: lighten(@red, 5%);
  114. @btnInverseBackground: #444;
  115. @btnInverseBackgroundHighlight: @grayDarker;
  116. // Forms
  117. // -------------------------
  118. @inputBackground: @white;
  119. @inputBorder: #ccc;
  120. @inputBorderRadius: @baseBorderRadius;
  121. @inputDisabledBackground: @grayLighter;
  122. @formActionsBackground: #f5f5f5;
  123. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  124. // Dropdowns
  125. // -------------------------
  126. @dropdownBackground: @white;
  127. @dropdownBorder: rgba(0,0,0,.2);
  128. @dropdownDividerTop: #e5e5e5;
  129. @dropdownDividerBottom: @white;
  130. @dropdownLinkColor: @grayDark;
  131. @dropdownLinkColorHover: @white;
  132. @dropdownLinkColorActive: @white;
  133. @dropdownLinkBackgroundActive: @linkColor;
  134. @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
  135. // COMPONENT VARIABLES
  136. // --------------------------------------------------
  137. // Z-index master list
  138. // -------------------------
  139. // Used for a bird's eye view of components dependent on the z-axis
  140. // Try to avoid customizing these :)
  141. @zindexDropdown: 1000;
  142. @zindexPopover: 1010;
  143. @zindexTooltip: 1030;
  144. @zindexFixedNavbar: 1030;
  145. @zindexModalBackdrop: 1040;
  146. @zindexModal: 1050;
  147. // Sprite icons path
  148. // -------------------------
  149. @iconSpritePath: "../img/glyphicons-halflings.png";
  150. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  151. // Input placeholder text color
  152. // -------------------------
  153. @placeholderText: @grayLight;
  154. // Hr border color
  155. // -------------------------
  156. @hrBorder: @grayLighter;
  157. // Horizontal forms & lists
  158. // -------------------------
  159. @horizontalComponentOffset: 180px;
  160. // Wells
  161. // -------------------------
  162. @wellBackground: #f5f5f5;
  163. // Navbar
  164. // -------------------------
  165. @navbarCollapseWidth: 767px;
  166. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  167. @navbarHeight: 40px;
  168. @navbarBackgroundHighlight: #ffffff;
  169. @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
  170. @navbarBorder: darken(@navbarBackground, 12%);
  171. @navbarText: #777;
  172. @navbarLinkColor: #777;
  173. @navbarLinkColorHover: @grayDark;
  174. @navbarLinkColorActive: @gray;
  175. @navbarLinkBackgroundHover: transparent;
  176. @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
  177. @navbarBrandColor: @navbarLinkColor;
  178. // Inverted navbar
  179. @navbarInverseBackground: #111111;
  180. @navbarInverseBackgroundHighlight: #222222;
  181. @navbarInverseBorder: #252525;
  182. @navbarInverseText: @grayLight;
  183. @navbarInverseLinkColor: @grayLight;
  184. @navbarInverseLinkColorHover: @white;
  185. @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
  186. @navbarInverseLinkBackgroundHover: transparent;
  187. @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
  188. @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
  189. @navbarInverseSearchBackgroundFocus: @white;
  190. @navbarInverseSearchBorder: @navbarInverseBackground;
  191. @navbarInverseSearchPlaceholderColor: #ccc;
  192. @navbarInverseBrandColor: @navbarInverseLinkColor;
  193. // Pagination
  194. // -------------------------
  195. @paginationBackground: #fff;
  196. @paginationBorder: #ddd;
  197. @paginationActiveBackground: #f5f5f5;
  198. // Hero unit
  199. // -------------------------
  200. @heroUnitBackground: @grayLighter;
  201. @heroUnitHeadingColor: inherit;
  202. @heroUnitLeadColor: inherit;
  203. // Form states and alerts
  204. // -------------------------
  205. @warningText: mix(@yellowDark, @yellowDarker, 80%);
  206. @warningBackground: @yellowLighter;
  207. @warningBorder: darken(spin(@warningBackground, -10), 7%);
  208. @errorText: @red;
  209. @errorBackground: @redLighter;
  210. @errorBorder: darken(spin(@errorBackground, -10), 4%);
  211. @successText: mix(@greenDarker, @greenDark, 30%);
  212. @successBackground: @greenLighter;
  213. @successBorder: darken(spin(@successBackground, -10), 13%);
  214. @infoText: mix(@blueDark, @blue, 50%);
  215. @infoBackground: @blueLighter;
  216. @infoBorder: darken(spin(@infoBackground, -10), 7%);
  217. @inverseText: @white;
  218. @inverseBackground: @gray;
  219. @inverseBorder: darken(spin(@inverseBackground, -10), 7%);
  220. // Tooltips and popovers
  221. // -------------------------
  222. @tooltipColor: #fff;
  223. @tooltipBackground: #000;
  224. @tooltipArrowWidth: 5px;
  225. @tooltipArrowColor: @tooltipBackground;
  226. @popoverBackground: #fff;
  227. @popoverArrowWidth: 10px;
  228. @popoverArrowColor: #fff;
  229. @popoverTitleBackground: darken(@popoverBackground, 3%);
  230. // Special enhancement for popovers
  231. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  232. @popoverArrowOuterColor: rgba(0,0,0,.25);
  233. // GRID
  234. // --------------------------------------------------
  235. // Default 940px grid
  236. // -------------------------
  237. @gridColumns: 12;
  238. @gridColumnWidth: 60px;
  239. @gridGutterWidth: 20px;
  240. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  241. // 1200px min
  242. @gridColumnWidth1200: 70px;
  243. @gridGutterWidth1200: 30px;
  244. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  245. // 768px-979px
  246. @gridColumnWidth768: 42px;
  247. @gridGutterWidth768: 20px;
  248. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  249. // Fluid grid
  250. // -------------------------
  251. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  252. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  253. // 1200px min
  254. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  255. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  256. // 768px-979px
  257. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  258. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);