variables.less 9.3 KB

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