variables.less 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. //
  2. // Variables
  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: #009add; // Kyruus Light Blue
  18. @blueDark: #005f9b; // Kyruus Blue
  19. @green: #46a546;
  20. @red: #9d261d;
  21. @yellow: #ffc40d;
  22. @orange: #f89406;
  23. @pink: #c3325f;
  24. @purple: #7a43b6;
  25. @redDark: darken(@red, 10%);
  26. // Scaffolding
  27. // -------------------------
  28. @bodyBackground: @white;
  29. @textColor: @grayDark;
  30. // Links
  31. // -------------------------
  32. @linkColor: @red;
  33. @linkColorHover: darken(@linkColor, 15%);
  34. // Typography
  35. // -------------------------
  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: 20px;
  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. // Component sizing
  47. // -------------------------
  48. // Based on 14px font-size and 20px line-height
  49. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  50. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  51. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  52. @paddingLarge: 11px 19px; // 44px
  53. @paddingSmall: 2px 10px; // 26px
  54. @paddingMini: 0 6px; // 22px
  55. @baseBorderRadius: 4px;
  56. @borderRadiusLarge: 6px;
  57. @borderRadiusSmall: 3px;
  58. // Tables
  59. // -------------------------
  60. @tableBackground: transparent; // overall background-color
  61. @tableBackgroundAccent: #f9f9f9; // for striping
  62. @tableBackgroundHover: #f5f5f5; // for hover
  63. @tableBorder: #ddd; // table and cell border
  64. // Buttons
  65. // -------------------------
  66. @btnBackground: @white;
  67. @btnBackgroundHighlight: darken(@white, 10%);
  68. @btnBorder: #bbb;
  69. @btnPrimaryBackground: #fffeb8;
  70. @btnPrimaryBackgroundHighlight: #c49c38;
  71. @btnInfoBackground: #5bc0de;
  72. @btnInfoBackgroundHighlight: #2f96b4;
  73. @btnSuccessBackground: #62c462;
  74. @btnSuccessBackgroundHighlight: #51a351;
  75. @btnWarningBackground: lighten(@orange, 15%);
  76. @btnWarningBackgroundHighlight: @orange;
  77. @btnDangerBackground: #ee5f5b;
  78. @btnDangerBackgroundHighlight: #bd362f;
  79. @btnInverseBackground: #444;
  80. @btnInverseBackgroundHighlight: @grayDarker;
  81. // Forms
  82. // -------------------------
  83. @inputBackground: @white;
  84. @inputBorder: #ccc;
  85. @inputBorderRadius: @baseBorderRadius;
  86. @inputDisabledBackground: @grayLighter;
  87. @formActionsBackground: #f5f5f5;
  88. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  89. // Dropdowns
  90. // -------------------------
  91. @dropdownBackground: @white;
  92. @dropdownBorder: rgba(0,0,0,.2);
  93. @dropdownDividerTop: #e5e5e5;
  94. @dropdownDividerBottom: @white;
  95. @dropdownLinkColor: @grayDark;
  96. @dropdownLinkColorHover: @white;
  97. @dropdownLinkColorActive: @white;
  98. @dropdownLinkBackgroundActive: @linkColor;
  99. @dropdownLinkBackgroundHover: @dropdownLinkBackgroundActive;
  100. // COMPONENT VARIABLES
  101. // --------------------------------------------------
  102. // Z-index master list
  103. // -------------------------
  104. // Used for a bird's eye view of components dependent on the z-axis
  105. // Try to avoid customizing these :)
  106. @zindexDropdown: 1000;
  107. @zindexPopover: 1010;
  108. @zindexTooltip: 1030;
  109. @zindexFixedNavbar: 1030;
  110. @zindexModalBackdrop: 1040;
  111. @zindexModal: 1050;
  112. // Sprite icons path
  113. // -------------------------
  114. @iconSpritePath: "../img/glyphicons-halflings.png";
  115. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  116. // Input placeholder text color
  117. // -------------------------
  118. @placeholderText: @grayLight;
  119. // Hr border color
  120. // -------------------------
  121. @hrBorder: @grayLighter;
  122. // Horizontal forms & lists
  123. // -------------------------
  124. @horizontalComponentOffset: 180px;
  125. // Wells
  126. // -------------------------
  127. @wellBackground: #f5f5f5;
  128. // Navbar
  129. // -------------------------
  130. @navbarCollapseWidth: 979px;
  131. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  132. @navbarHeight: 40px;
  133. @navbarBackgroundHighlight: #ffffff;
  134. @navbarBackground: darken(@navbarBackgroundHighlight, 5%);
  135. @navbarBorder: darken(@navbarBackground, 12%);
  136. @navbarText: #777;
  137. @navbarLinkColor: #777;
  138. @navbarLinkColorHover: @grayDark;
  139. @navbarLinkColorActive: @gray;
  140. @navbarLinkBackgroundHover: transparent;
  141. @navbarLinkBackgroundActive: darken(@navbarBackground, 5%);
  142. @navbarBrandColor: @navbarLinkColor;
  143. // Inverted navbar
  144. @navbarInverseBackground: #111111;
  145. @navbarInverseBackgroundHighlight: #222222;
  146. @navbarInverseBorder: #252525;
  147. @navbarInverseText: @grayLight;
  148. @navbarInverseLinkColor: @grayLight;
  149. @navbarInverseLinkColorHover: @white;
  150. @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
  151. @navbarInverseLinkBackgroundHover: transparent;
  152. @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
  153. @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
  154. @navbarInverseSearchBackgroundFocus: @white;
  155. @navbarInverseSearchBorder: @navbarInverseBackground;
  156. @navbarInverseSearchPlaceholderColor: #ccc;
  157. @navbarInverseBrandColor: @navbarInverseLinkColor;
  158. // Pagination
  159. // -------------------------
  160. @paginationBackground: #fff;
  161. @paginationBorder: #ddd;
  162. @paginationActiveBackground: #f5f5f5;
  163. // Hero unit
  164. // -------------------------
  165. @heroUnitBackground: @grayLighter;
  166. @heroUnitHeadingColor: inherit;
  167. @heroUnitLeadColor: inherit;
  168. // Form states and alerts
  169. // -------------------------
  170. @warningText: #c09853;
  171. @warningBackground: #fcf8e3;
  172. @warningBorder: darken(spin(@warningBackground, -10), 3%);
  173. @errorText: #b94a48;
  174. @errorBackground: #f2dede;
  175. @errorBorder: darken(spin(@errorBackground, -10), 3%);
  176. @successText: #468847;
  177. @successBackground: #dff0d8;
  178. @successBorder: darken(spin(@successBackground, -10), 5%);
  179. @infoText: #3a87ad;
  180. @infoBackground: #d9edf7;
  181. @infoBorder: darken(spin(@infoBackground, -10), 7%);
  182. // Tooltips and popovers
  183. // -------------------------
  184. @tooltipColor: #fff;
  185. @tooltipBackground: #000;
  186. @tooltipArrowWidth: 5px;
  187. @tooltipArrowColor: @tooltipBackground;
  188. @popoverBackground: #fff;
  189. @popoverArrowWidth: 10px;
  190. @popoverArrowColor: #fff;
  191. @popoverTitleBackground: darken(@popoverBackground, 3%);
  192. // Special enhancement for popovers
  193. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  194. @popoverArrowOuterColor: rgba(0,0,0,.25);
  195. // GRID
  196. // --------------------------------------------------
  197. // Default 940px grid
  198. // -------------------------
  199. @gridColumns: 12;
  200. @gridColumnWidth: 60px;
  201. @gridGutterWidth: 20px;
  202. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  203. // 1200px min
  204. @gridColumnWidth1200: 70px;
  205. @gridGutterWidth1200: 30px;
  206. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  207. // 768px-979px
  208. @gridColumnWidth768: 42px;
  209. @gridGutterWidth768: 20px;
  210. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  211. // Fluid grid
  212. // -------------------------
  213. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  214. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  215. // 1200px min
  216. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  217. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  218. // 768px-979px
  219. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  220. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);