variables.less.svn-base 5.8 KB

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