variables.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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. @bluePale: #3c85a3;
  19. @blueDark: #0064cd;
  20. @green: #46a546;
  21. @red: #cf402e;
  22. @yellow: #ffc40d;
  23. @orange: #f89406;
  24. @pink: #c3325f;
  25. @purple: #7a43b6;
  26. // Scaffolding
  27. // -------------------------
  28. @bodyBackground: #FBFBFB;
  29. @textColor: @grayDark;
  30. // Links
  31. // -------------------------
  32. @linkColor: #08c;
  33. @linkColorHover: darken(@linkColor, 15%);
  34. // Typography
  35. // -------------------------
  36. @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
  37. @serifFontFamily: Georgia, "Times New Roman", Times, serif;
  38. @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
  39. @baseFontSize: 14px;
  40. @baseFontFamily: @sansFontFamily;
  41. @baseLineHeight: 20px;
  42. @altFontFamily: @serifFontFamily;
  43. @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
  44. @headingsFontWeight: bold; // instead of browser default, bold
  45. @headingsColor: inherit; // empty to use BS default, @textColor
  46. // Component sizing
  47. // -------------------------
  48. // Based on 14px font-size and 20px line-height
  49. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  50. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  51. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  52. @paddingLarge: 11px 19px; // 44px
  53. @paddingSmall: 2px 10px; // 26px
  54. @paddingMini: 0 6px; // 22px
  55. @baseBorderRadius: 3px;
  56. @borderRadiusLarge: 5px;
  57. @borderRadiusSmall: 2px;
  58. // Page header
  59. // -------------------------
  60. @pageHeaderBackground: @bodyBackground;
  61. @pageHeaderBorder: darken(@pageHeaderBackground, 8%);
  62. // State icons styles
  63. // -------------------------
  64. @itemOldColor: darken(@grayLighter, 10%);
  65. @itemNewColor: @red;
  66. @itemMovedColor: lighten(@green, 10%);
  67. @forumIconSize: 24px;
  68. @threadIconSize: 22px;
  69. // Thread flags colors
  70. // -------------------------
  71. @flagReported: @orange;
  72. @flagReviewed: @purple;
  73. @flagAnnouncement: @blue;
  74. @flagSticky: @bluePale;
  75. @flagDeleted: @grayDark;
  76. @flagClosed: @red;
  77. // Board index forums list
  78. // -------------------------
  79. @categoryBackground: lighten(@bodyBackground, 5%);
  80. @categoryBorder: darken(@bodyBackground, 15%);
  81. @categoryHeader: @bodyBackground;
  82. @categoryShadow: darken(@bodyBackground, 5%);
  83. // Posts
  84. // -------------------------
  85. @postBackground: @white;
  86. @postBorder: darken(@bodyBackground, 8%);
  87. // Tables
  88. // -------------------------
  89. @tableBackground: transparent; // overall background-color
  90. @tableBackgroundAccent: #f9f9f9; // for striping
  91. @tableBackgroundHover: #f5f5f5; // for hover
  92. @tableBorder: #ddd; // table and cell border
  93. // Buttons
  94. // -------------------------
  95. @btnBackground: @white;
  96. @btnBackgroundHighlight: darken(@white, 10%);
  97. @btnBorder: #ccc;
  98. @btnPrimaryBackground: @linkColor;
  99. @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
  100. @btnInfoBackground: #5bc0de;
  101. @btnInfoBackgroundHighlight: #2f96b4;
  102. @btnSuccessBackground: #62c462;
  103. @btnSuccessBackgroundHighlight: #51a351;
  104. @btnWarningBackground: lighten(@orange, 15%);
  105. @btnWarningBackgroundHighlight: @orange;
  106. @btnDangerBackground: #ee5f5b;
  107. @btnDangerBackgroundHighlight: #bd362f;
  108. @btnInverseBackground: #444;
  109. @btnInverseBackgroundHighlight: @grayDarker;
  110. // Forms
  111. // -------------------------
  112. @inputBackground: @white;
  113. @inputBorder: #ccc;
  114. @inputBorderRadius: @baseBorderRadius;
  115. @inputDisabledBackground: @grayLighter;
  116. @formActionsBackground: #f5f5f5;
  117. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  118. // Editor
  119. // -------------------------
  120. @editorBackground: @white;
  121. @editorPadding: @baseFontSize * 0.75;
  122. // Dropdowns
  123. // -------------------------
  124. @dropdownBackground: @white;
  125. @dropdownBorder: rgba(0,0,0,.2);
  126. @dropdownDividerTop: #e5e5e5;
  127. @dropdownDividerBottom: @white;
  128. @dropdownLinkColor: @grayDark;
  129. @dropdownLinkColorHover: @white;
  130. @dropdownLinkColorActive: @white;
  131. @dropdownLinkBackgroundActive: @linkColor;
  132. @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
  133. // Ajax Loader
  134. // -------------------------
  135. @loaderHeight: 6px;
  136. @loaderColor: @red;
  137. // COMPONENT VARIABLES
  138. // --------------------------------------------------
  139. // Z-index master list
  140. // -------------------------
  141. // Used for a bird's eye view of components dependent on the z-axis
  142. // Try to avoid customizing these :)
  143. @zindexDropdown: 1000;
  144. @zindexPopover: 1010;
  145. @zindexTooltip: 1030;
  146. @zindexFixedNavbar: 1030;
  147. @zindexZenWriting: 1035;
  148. @zindexModalBackdrop: 1040;
  149. @zindexModal: 1050;
  150. @zindexLoader: 1060;
  151. // Sprite icons path
  152. // -------------------------
  153. @iconSpritePath: "../img/glyphicons-halflings.png";
  154. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  155. // Input placeholder text color
  156. // -------------------------
  157. @placeholderText: @grayLight;
  158. // Hr border color
  159. // -------------------------
  160. @hrBorder: @grayLighter;
  161. // Horizontal forms & lists
  162. // -------------------------
  163. @horizontalComponentOffset: 180px;
  164. // Wells
  165. // -------------------------
  166. @wellBackground: #f5f5f5;
  167. // Navbar
  168. // -------------------------
  169. @navbarCollapseWidth: 979px;
  170. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  171. @navbarHeight: 50px;
  172. @navbarBackgroundHighlight: #ffffff;
  173. @navbarBackground: darken(@bodyBackground, 3%);
  174. @navbarBorder: darken(@navbarBackground, 8%);
  175. @navbarText: #777;
  176. @navbarLinkColor: #777;
  177. @navbarLinkColorHover: @textColor;
  178. @navbarLinkColorActive: @gray;
  179. @navbarLinkBackgroundHover: darken(@navbarBackground, 5%);
  180. @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
  181. @navbarLogoImage: "../img/logo.png";
  182. @navbarLogoWidth: 24px;
  183. @navbarBrandColor: desaturate(@red, 10%);
  184. @navbarMottoColor: darken(@navbarBackground, 20%);
  185. // Inverted navbar
  186. @navbarInverseBackground: #111111;
  187. @navbarInverseBackgroundHighlight: #222222;
  188. @navbarInverseBorder: #252525;
  189. @navbarInverseText: @grayLight;
  190. @navbarInverseLinkColor: @grayLight;
  191. @navbarInverseLinkColorHover: @white;
  192. @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
  193. @navbarInverseLinkBackgroundHover: transparent;
  194. @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
  195. @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
  196. @navbarInverseSearchBackgroundFocus: @white;
  197. @navbarInverseSearchBorder: @navbarInverseBackground;
  198. @navbarInverseSearchPlaceholderColor: #ccc;
  199. @navbarInverseBrandColor: @navbarInverseLinkColor;
  200. @navbarSearchWidth: 300px;
  201. @navbarSearchPadding: 8px;
  202. // Midman
  203. // -------------------------
  204. @midmanBackground: @grayDarker;
  205. // Footer
  206. // -------------------------
  207. @footerHeight: 90px;
  208. @footerBackground: darken(@bodyBackground, 5%);
  209. @footerBorder: darken(@footerBackground, 8%);
  210. // Pagination
  211. // -------------------------
  212. @paginationBackground: @white;
  213. @paginationBorder: darken(@paginationBackground, 6%);
  214. @paginationActiveBackground: @grayLight;
  215. // Hero unit
  216. // -------------------------
  217. @heroUnitBackground: @grayLighter;
  218. @heroUnitHeadingColor: inherit;
  219. @heroUnitLeadColor: inherit;
  220. // Form states and alerts
  221. // -------------------------
  222. @warningText: #FFF;
  223. @warningBackground: desaturate(@orange, 10%);
  224. @warningBorder: darken(spin(@warningBackground, -10), 3%);
  225. @errorText: @red;
  226. @errorBackground: desaturate(@red, 10%);
  227. @errorBorder: darken(@errorBackground, 10%);
  228. @successText: @green;
  229. @successBackground: desaturate(@green, 10%);
  230. @successBorder: darken(@successBackground, 10%);
  231. @infoText: @blue;
  232. @infoBackground: desaturate(@blue, 15%);
  233. @infoBorder: darken(@infoBackground, 10%);
  234. // Tooltips and popovers
  235. // -------------------------
  236. @tooltipColor: #fff;
  237. @tooltipBackground: #000;
  238. @tooltipArrowWidth: 5px;
  239. @tooltipArrowColor: @tooltipBackground;
  240. @popoverBackground: #fff;
  241. @popoverArrowWidth: 10px;
  242. @popoverArrowColor: #fff;
  243. @popoverTitleBackground: darken(@popoverBackground, 3%);
  244. // Special enhancement for popovers
  245. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  246. @popoverArrowOuterColor: rgba(0,0,0,.25);
  247. // GRID
  248. // --------------------------------------------------
  249. // Default 940px grid
  250. // -------------------------
  251. @gridColumns: 12;
  252. @gridColumnWidth: 60px;
  253. @gridGutterWidth: 20px;
  254. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  255. // 1200px min
  256. @gridColumnWidth1200: 70px;
  257. @gridGutterWidth1200: 30px;
  258. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  259. // 768px-979px
  260. @gridColumnWidth768: 42px;
  261. @gridGutterWidth768: 20px;
  262. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  263. // Fluid grid
  264. // -------------------------
  265. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  266. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  267. // 1200px min
  268. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  269. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  270. // 768px-979px
  271. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  272. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);