variables.less 5.6 KB

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