variables.less 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // Variables.less
  2. // Variables to customize the look and feel of Bootstrap
  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. // Scaffolding
  26. // -------------------------
  27. @bodyBackground: @white;
  28. @textColor: @grayDark;
  29. // Links
  30. // -------------------------
  31. @linkColor: @red;
  32. @linkColorHover: darken(@linkColor, 15%);
  33. // Typography
  34. // -------------------------
  35. //@sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
  36. @sansFontFamily: proxima-nova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  37. @serifFontFamily: museo-slab, "Helvetica Neue", Helvetica, Arial, sans-serif;
  38. @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
  39. @baseFontSize: 14px;
  40. @baseFontFamily: @sansFontFamily;
  41. @baseLineHeight: 21px;
  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. // Tables
  47. // -------------------------
  48. @tableBackground: transparent; // overall background-color
  49. @tableBackgroundAccent: #f9f9f9; // for striping
  50. @tableBackgroundHover: #f5f5f5; // for hover
  51. @tableBorder: #ddd; // table and cell border
  52. // Buttons
  53. // -------------------------
  54. @btnBackground: @white;
  55. @btnBackgroundHighlight: darken(@white, 10%);
  56. @btnBorder: #ccc;
  57. @btnPrimaryBackground: @linkColor;
  58. @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
  59. @btnInfoBackground: #5bc0de;
  60. @btnInfoBackgroundHighlight: #2f96b4;
  61. @btnSuccessBackground: #62c462;
  62. @btnSuccessBackgroundHighlight: #51a351;
  63. @btnWarningBackground: lighten(@orange, 15%);
  64. @btnWarningBackgroundHighlight: @orange;
  65. @btnDangerBackground: #ee5f5b;
  66. @btnDangerBackgroundHighlight: #bd362f;
  67. @btnInverseBackground: @gray;
  68. @btnInverseBackgroundHighlight: @grayDarker;
  69. // Forms
  70. // -------------------------
  71. @inputBackground: @white;
  72. @inputBorder: #ccc;
  73. @inputBorderRadius: 3px;
  74. @inputDisabledBackground: @grayLighter;
  75. @formActionsBackground: #f5f5f5;
  76. // Dropdowns
  77. // -------------------------
  78. @dropdownBackground: @white;
  79. @dropdownBorder: rgba(0,0,0,.2);
  80. @dropdownLinkColor: @grayDark;
  81. @dropdownLinkColorHover: @white;
  82. @dropdownLinkBackgroundHover: @linkColor;
  83. // COMPONENT VARIABLES
  84. // --------------------------------------------------
  85. // Z-index master list
  86. // -------------------------
  87. // Used for a bird's eye view of components dependent on the z-axis
  88. // Try to avoid customizing these :)
  89. @zindexDropdown: 1000;
  90. @zindexPopover: 1010;
  91. @zindexTooltip: 1020;
  92. @zindexFixedNavbar: 1030;
  93. @zindexModalBackdrop: 1040;
  94. @zindexModal: 1050;
  95. // Sprite icons path
  96. // -------------------------
  97. @iconSpritePath: "../img/glyphicons-halflings.png";
  98. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  99. // Input placeholder text color
  100. // -------------------------
  101. @placeholderText: @grayLight;
  102. // Hr border color
  103. // -------------------------
  104. @hrBorder: @grayLighter;
  105. // Navbar
  106. // -------------------------
  107. @navbarHeight: 40px;
  108. @navbarBackground: @grayDarker;
  109. @navbarBackgroundHighlight: @grayDark;
  110. @navbarText: @grayLight;
  111. @navbarLinkColor: @grayLight;
  112. @navbarLinkColorHover: @white;
  113. @navbarLinkColorActive: @navbarLinkColorHover;
  114. @navbarLinkBackgroundHover: transparent;
  115. @navbarLinkBackgroundActive: @navbarBackground;
  116. @navbarSearchBackground: lighten(@navbarBackground, 25%);
  117. @navbarSearchBackgroundFocus: @white;
  118. @navbarSearchBorder: darken(@navbarSearchBackground, 30%);
  119. @navbarSearchPlaceholderColor: #ccc;
  120. @navbarBrandColor: @navbarLinkColor;
  121. // Hero unit
  122. // -------------------------
  123. @heroUnitBackground: @grayLighter;
  124. @heroUnitHeadingColor: inherit;
  125. @heroUnitLeadColor: inherit;
  126. // Form states and alerts
  127. // -------------------------
  128. @warningText: #c09853;
  129. @warningBackground: #fcf8e3;
  130. @warningBorder: darken(spin(@warningBackground, -10), 3%);
  131. @errorText: #b94a48;
  132. @errorBackground: #f2dede;
  133. @errorBorder: darken(spin(@errorBackground, -10), 3%);
  134. @successText: #468847;
  135. @successBackground: #dff0d8;
  136. @successBorder: darken(spin(@successBackground, -10), 5%);
  137. @infoText: #3a87ad;
  138. @infoBackground: #d9edf7;
  139. @infoBorder: darken(spin(@infoBackground, -10), 7%);
  140. // GRID
  141. // --------------------------------------------------
  142. // Default 940px grid
  143. // -------------------------
  144. @gridColumns: 12;
  145. @gridColumnWidth: 60px;
  146. @gridGutterWidth: 20px;
  147. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  148. // Fluid grid
  149. // -------------------------
  150. @fluidGridColumnWidth: 6.382978723%;
  151. @fluidGridGutterWidth: 2.127659574%;