variables.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  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. // Text Colors
  26. // -------------------------
  27. @text-primary: #428bca;
  28. @text-success: #3c763d;
  29. @text-info: #31708f;
  30. @text-warning: #8a6d3b;
  31. @text-danger: #a94442;
  32. @text-dimmed: #666666;
  33. @text-muted: #999999;
  34. // Scaffolding
  35. // -------------------------
  36. @bodyBackground: @white;
  37. @textColor: @grayDark;
  38. @text-color: @textColor;
  39. // Links
  40. // -------------------------
  41. @linkColor: #08c;
  42. @linkColorHover: darken(@linkColor, 15%);
  43. // Typography
  44. // -------------------------
  45. @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
  46. @serifFontFamily: Georgia, "Times New Roman", Times, serif;
  47. @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
  48. @baseFontSize: 14px;
  49. @baseFontFamily: @sansFontFamily;
  50. @baseLineHeight: 20px;
  51. @altFontFamily: @serifFontFamily;
  52. @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
  53. @headingsFontWeight: bold; // instead of browser default, bold
  54. @headingsColor: inherit; // empty to use BS default, @textColor
  55. // Component sizing
  56. // -------------------------
  57. // Based on 14px font-size and 20px line-height
  58. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  59. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  60. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  61. @font-size-h1: floor((@baseFontSize * 2.6)); // ~36px
  62. @font-size-h2: floor((@baseFontSize * 2.15)); // ~30px
  63. @font-size-h3: ceil((@baseFontSize * 1.7)); // ~24px
  64. @font-size-h4: ceil((@baseFontSize * 1.25)); // ~18px
  65. @font-size-h5: @baseFontSize;
  66. @font-size-h6: ceil((@baseFontSize * 0.85)); // ~12pxgr
  67. @paddingLarge: 11px 19px; // 44px
  68. @paddingSmall: 2px 10px; // 26px
  69. @paddingMini: 0 6px; // 22px
  70. @baseBorderRadius: 4px;
  71. @borderRadiusLarge: 6px;
  72. @borderRadiusSmall: 3px;
  73. // Tables
  74. // -------------------------
  75. @tableBackground: transparent; // overall background-color
  76. @tableBackgroundAccent: #f9f9f9; // for striping
  77. @tableBackgroundHover: #f5f5f5; // for hover
  78. @tableBorder: #ddd; // table and cell border
  79. // Buttons
  80. // -------------------------
  81. @btnBackground: @white;
  82. @btnBackgroundHighlight: darken(@white, 10%);
  83. @btnBorder: #ccc;
  84. @btnPrimaryBackground: @linkColor;
  85. @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 20%);
  86. @btnInfoBackground: #5bc0de;
  87. @btnInfoBackgroundHighlight: #2f96b4;
  88. @btnSuccessBackground: #62c462;
  89. @btnSuccessBackgroundHighlight: #51a351;
  90. @btnWarningBackground: lighten(@orange, 15%);
  91. @btnWarningBackgroundHighlight: @orange;
  92. @btnDangerBackground: #ee5f5b;
  93. @btnDangerBackgroundHighlight: #bd362f;
  94. @btnInverseBackground: #444;
  95. @btnInverseBackgroundHighlight: @grayDarker;
  96. @btnPaddingVertical: 6px;
  97. @btnPaddingHorizontal: 12px;
  98. // Forms
  99. // -------------------------
  100. @inputBackground: @white;
  101. @inputBorder: #ccc;
  102. @inputBorderRadius: @baseBorderRadius;
  103. @inputDisabledBackground: @grayLighter;
  104. @formActionsBackground: #f5f5f5;
  105. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  106. // Dropdowns
  107. // -------------------------
  108. @dropdownBackground: @white;
  109. @dropdownBorder: rgba(0,0,0,.2);
  110. @dropdownDividerTop: #e5e5e5;
  111. @dropdownDividerBottom: @white;
  112. @dropdownLinkColor: @grayDark;
  113. @dropdownLinkColorHover: @white;
  114. @dropdownLinkColorActive: @white;
  115. @dropdownLinkBackgroundActive: @linkColor;
  116. @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
  117. // COMPONENT VARIABLES
  118. // --------------------------------------------------
  119. // Z-index master list
  120. // -------------------------
  121. // Used for a bird's eye view of components dependent on the z-axis
  122. // Try to avoid customizing these :)
  123. @zindexDropdown: 1000;
  124. @zindexPopover: 1010;
  125. @zindexTooltip: 1030;
  126. @zindexFixedNavbar: 1030;
  127. @zindexModalBackdrop: 1040;
  128. @zindexModal: 1050;
  129. //Selectable Hover, Selected, Selected Hover
  130. // -------------------------
  131. @selectableHover: #f1f1f1;
  132. @selected: #efefef;
  133. @selectedHover: #d7d7d7;
  134. // Sprite icons path
  135. // -------------------------
  136. @iconSpritePath: "../img/glyphicons-halflings.png";
  137. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  138. // Input placeholder text color
  139. // -------------------------
  140. @placeholderText: @grayLight;
  141. // Hr border color
  142. // -------------------------
  143. @hrBorder: @grayLighter;
  144. // Horizontal forms & lists
  145. // -------------------------
  146. @horizontalComponentOffset: 180px;
  147. // Wells
  148. // -------------------------
  149. @wellBackground: #f5f5f5;
  150. // Navbar
  151. // -------------------------
  152. @navbarCollapseWidth: 979px;
  153. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  154. @navbarHeight: 40px;
  155. @navbarBackgroundHighlight: #ffffff;
  156. @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
  157. @navbarBorder: darken(@navbarBackground, 12%);
  158. @navbarText: #777;
  159. @navbarLinkColor: #777;
  160. @navbarLinkColorHover: @grayDark;
  161. @navbarLinkColorActive: @gray;
  162. @navbarLinkBackgroundHover: transparent;
  163. @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
  164. @navbarBrandColor: @navbarLinkColor;
  165. // Inverted navbar
  166. @navbarInverseBackground: #111111;
  167. @navbarInverseBackgroundHighlight: #222222;
  168. @navbarInverseBorder: #252525;
  169. @navbarInverseText: @grayLight;
  170. @navbarInverseLinkColor: @grayLight;
  171. @navbarInverseLinkColorHover: @white;
  172. @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
  173. @navbarInverseLinkBackgroundHover: transparent;
  174. @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
  175. @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
  176. @navbarInverseSearchBackgroundFocus: @white;
  177. @navbarInverseSearchBorder: @navbarInverseBackground;
  178. @navbarInverseSearchPlaceholderColor: #ccc;
  179. @navbarInverseBrandColor: @navbarInverseLinkColor;
  180. // Pagination
  181. // -------------------------
  182. @paginationBackground: #fff;
  183. @paginationBorder: #ddd;
  184. @paginationActiveBackground: #f5f5f5;
  185. // Hero unit
  186. // -------------------------
  187. @heroUnitBackground: @grayLighter;
  188. @heroUnitHeadingColor: inherit;
  189. @heroUnitLeadColor: inherit;
  190. // Form states and alerts
  191. // -------------------------
  192. @warningText: #c09853;
  193. @warningBackground: #fcf8e3;
  194. @warningBorder: darken(spin(@warningBackground, -10), 3%);
  195. @errorText: #b94a48;
  196. @errorBackground: #f2dede;
  197. @errorBorder: darken(spin(@errorBackground, -10), 3%);
  198. @successText: #468847;
  199. @successBackground: #dff0d8;
  200. @successBorder: darken(spin(@successBackground, -10), 5%);
  201. @infoText: #3a87ad;
  202. @infoBackground: #d9edf7;
  203. @infoBorder: darken(spin(@infoBackground, -10), 7%);
  204. // Tooltips and popovers
  205. // -------------------------
  206. @tooltipColor: #fff;
  207. @tooltipBackground: #000;
  208. @tooltipArrowWidth: 5px;
  209. @tooltipArrowColor: @tooltipBackground;
  210. @popoverBackground: #fff;
  211. @popoverArrowWidth: 10px;
  212. @popoverArrowColor: #fff;
  213. @popoverTitleBackground: darken(@popoverBackground, 3%);
  214. // Special enhancement for popovers
  215. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  216. @popoverArrowOuterColor: rgba(0,0,0,.25);
  217. // GRID
  218. // --------------------------------------------------
  219. // Default 940px grid
  220. // -------------------------
  221. @gridColumns: 12;
  222. @gridColumnWidth: 60px;
  223. @gridGutterWidth: 20px;
  224. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  225. // 1200px min
  226. @gridColumnWidth1200: 70px;
  227. @gridGutterWidth1200: 30px;
  228. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  229. // 768px-979px
  230. @gridColumnWidth768: 42px;
  231. @gridGutterWidth768: 20px;
  232. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  233. // Fluid grid
  234. // -------------------------
  235. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  236. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  237. // 1200px min
  238. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  239. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  240. // 768px-979px
  241. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  242. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);
  243. // Tree
  244. // --------------------------------------------------
  245. @treeHoverText: @grayLight;
  246. @treeSelectBackground: @selected;
  247. // Icons
  248. // --------------------------------------------------
  249. @fueluxFontPath: "../fonts/";
  250. // Padding / Margin
  251. // --------------------------------------------------
  252. @padding-xs: 5px;
  253. @padding-sm: 10px;
  254. @padding-md: 15px;
  255. @padding-lg: 20px;
  256. @margin-xs: 5px;
  257. @margin-sm: 10px;
  258. @margin-md: 15px;
  259. @margin-lg: 20px;