variables.dark.less 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. // Slate 2.3.2
  2. // Variables
  3. // --------------------------------------------------
  4. // Global values
  5. // --------------------------------------------------
  6. // Grays
  7. // -------------------------
  8. @black: #000;
  9. @grayDarker: #272B30;
  10. @grayDark: #3A3F44;
  11. @gray: #52575C;
  12. @grayLight: #7A8288;
  13. @grayLighter: #BBBFC2;
  14. @white: #fff;
  15. // Accent colors
  16. // -------------------------
  17. @blue: #5bc0de;
  18. @blueDark: #108CBB;
  19. @green: #62c462;
  20. @red: #ee5f5b;
  21. @yellow: #F6D30D;
  22. @orange: #f89406;
  23. @pink: #c3325f;
  24. @purple: #7a43b6;
  25. // Scaffolding
  26. // -------------------------
  27. @bodyBackground: @grayDarker;
  28. @textColor: #C8C8C8;
  29. // Links
  30. // -------------------------
  31. @linkColor: @white;
  32. @linkColorHover: @white;
  33. // Typography
  34. // -------------------------
  35. @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
  36. @serifFontFamily: Georgia, "Times New Roman", Times, serif;
  37. @monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace;
  38. @baseFontSize: 14px;
  39. @baseFontFamily: @sansFontFamily;
  40. @baseLineHeight: 21px;
  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. // Component sizing
  46. // -------------------------
  47. // Based on 14px font-size and 20px line-height
  48. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  49. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  50. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  51. @paddingLarge: 11px 19px; // 44px
  52. @paddingSmall: 2px 10px; // 26px
  53. @paddingMini: 0px 6px; // 22px
  54. @baseBorderRadius: 4px;
  55. @borderRadiusLarge: 6px;
  56. @borderRadiusSmall: 3px;
  57. // Tables
  58. // -------------------------
  59. @tableBackground: transparent; // overall background-color
  60. @tableBackgroundAccent: darken(@grayDark, 5%); // for striping
  61. @tableBackgroundHover: @grayDark; // for hover
  62. @tableBorder: darken(@grayDarker, 5%); // table and cell border
  63. // Buttons
  64. // -------------------------
  65. @btnBackground: @gray;
  66. @btnBackgroundHighlight: darken(@gray, 10%);
  67. @btnBorder: darken(@gray, 20%);
  68. @btnPrimaryBackground: @grayLight;
  69. @btnPrimaryBackgroundHighlight: spin(@btnPrimaryBackground, 15%);
  70. @btnInfoBackground: @blue;
  71. @btnInfoBackgroundHighlight: #2f96b4;
  72. @btnSuccessBackground: @green;
  73. @btnSuccessBackgroundHighlight: #51a351;
  74. @btnWarningBackground: lighten(@orange, 15%);
  75. @btnWarningBackgroundHighlight: @orange;
  76. @btnDangerBackground: @red;
  77. @btnDangerBackgroundHighlight: #bd362f;
  78. @btnInverseBackground: @gray;
  79. @btnInverseBackgroundHighlight: @grayDarker;
  80. // Forms
  81. // -------------------------
  82. @inputText: @white;
  83. @inputBackground: @gray;
  84. @inputBorder: @grayLight;
  85. @inputBorderRadius: @baseBorderRadius;
  86. @inputDisabledBackground: @grayLighter;
  87. @formActionsBackground: darken(@grayDarker, 3%);
  88. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  89. // Dropdowns
  90. // -------------------------
  91. @dropdownBackground: @grayDark;
  92. @dropdownBorder: rgba(0,0,0,.2);
  93. @dropdownDividerTop: transparent;
  94. @dropdownDividerBottom: darken(@grayDarker, 5%);
  95. @dropdownLinkColor: @grayLight;
  96. @dropdownLinkColorHover: @white;
  97. @dropdownLinkColorActive: @white;
  98. @dropdownLinkBackgroundActive: @grayDarker;
  99. @dropdownLinkBackgroundHover: @grayDarker;
  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: darken(@grayDarker, 5%);
  122. // Horizontal forms & lists
  123. // -------------------------
  124. @horizontalComponentOffset: 180px;
  125. // Wells
  126. // -------------------------
  127. @wellBackground: darken(@grayDarker, 3%);
  128. // Navbar
  129. // -------------------------
  130. @navbarCollapseWidth: 979px;
  131. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  132. @navbarHeight: 40px;
  133. @navbarBackground: @grayDarker;
  134. @navbarBackgroundHighlight: @grayDark;
  135. @navbarBorder: darken(@navbarBackground, 12%);
  136. @navbarText: @textColor;
  137. @navbarLinkColor: @textColor;
  138. @navbarLinkColorHover: @white;
  139. @navbarLinkColorActive: @navbarLinkColorHover;
  140. @navbarLinkBackgroundHover: @grayDark;
  141. @navbarLinkBackgroundActive: @navbarBackground;
  142. @navbarBrandColor: @grayLighter;
  143. // Inverted navbar
  144. @navbarInverseBackground: darken(@grayDarker, 10%);
  145. @navbarInverseBackgroundHighlight: @grayDarker;
  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: darken(@grayDarker, 3%);
  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: @dropdownBackground;
  186. @tooltipArrowWidth: 5px;
  187. @tooltipArrowColor: @tooltipBackground;
  188. @popoverBackground: @dropdownBackground;
  189. @popoverArrowWidth: 10px;
  190. @popoverArrowColor: @dropdownBackground;
  191. @popoverTitleBackground: lighten(@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);