variables.less 9.2 KB

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