variables.dark.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. // Global values
  2. // --------------------------------------------------
  3. // Grays
  4. // -------------------------
  5. @black: #000;
  6. @gray: #bbb;
  7. @grayDark: #262626;
  8. @grayDarker: #1f1f1f;
  9. @grayLight: #ADAFAE;
  10. @grayLighter: #BBBFC2;
  11. @white: #fff;
  12. // Accent colors
  13. // -------------------------
  14. @blue: #33B5E5;
  15. @blueDark: #005f81;
  16. @green: #669900;
  17. @red: #CC3900;
  18. @yellow: #ECBB13;
  19. @orange: #FF8800;
  20. @pink: #FF4444;
  21. @purple: #9933CC;
  22. @variable: #32D1DF;
  23. // Status colors
  24. // -------------------------
  25. @online: #10a345;
  26. @warn: #ffc03c;
  27. @critical: #ed2e18;
  28. // grafana Variables
  29. // -------------------------
  30. @grafanaPanelBackground: @grayDarker;
  31. @grafanaPanelBorder: solid 1px @grayDark;
  32. @grafanaTriggerBorder: solid 1px #555;
  33. // Graphite Target Editor
  34. @grafanaTargetBorder: @black;
  35. @grafanaTargetBackground: @grayDark;
  36. @grafanaTargetColor: #c8c8c8;
  37. @grafanaTargetColorHide: darken(#c8c8c8, 25%);
  38. @grafanaTargetSegmentBorder: #050505;
  39. @grafanaTargetFuncBackground: #333;
  40. @grafanaTargetFuncHightlight: #444;
  41. @grafanaSelectBackground: @grafanaTargetFuncBackground;
  42. @modalBackground: @black;
  43. @codeTagBackground: #444;
  44. // Scaffolding
  45. // -------------------------
  46. // @bodyBackground: rgb(20,20,20);
  47. @pageBackground: @grayDarker;
  48. @bodyBackground: @pageBackground;
  49. @textColor: @grayLighter;
  50. // Links
  51. // -------------------------
  52. @linkColor: darken(@white,11%);
  53. @linkColorDisabled: darken(@linkColor,30%);
  54. @linkColorHover: @white;
  55. // Typography
  56. // -------------------------
  57. @sansFontFamily: "PT Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  58. @serifFontFamily: Georgia, "Times New Roman", Times, serif;
  59. @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
  60. @baseFontSize: 14px;
  61. @baseFontWeight: 400;
  62. @baseFontFamily: @sansFontFamily;
  63. @baseLineHeight: 20px;
  64. @altFontFamily: @serifFontFamily;
  65. @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
  66. @headingsFontWeight: 200; // instead of browser default, bold
  67. @headingsFontStyle: italic;
  68. @headingsColor: darken(@white,11%); // empty to use BS default, @textColor
  69. @inputText: @black;
  70. // Component sizing
  71. // -------------------------
  72. // Based on 14px font-size and 20px line-height
  73. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  74. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  75. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  76. @paddingLarge: 11px 19px; // 44px
  77. @paddingSmall: 2px 10px; // 26px
  78. @paddingMini: 0px 6px; // 22px
  79. @baseBorderRadius: 3px;
  80. @borderRadiusLarge: 4px;
  81. @borderRadiusSmall: 2px;
  82. // Lists
  83. @grafanaListBackground: @grayDark;
  84. @grafanaListAccent: lighten(@grayDarker, 2%);
  85. @grafanaListBorderTop: @grayDark;
  86. @grafanaListBorderBottom: @black;
  87. @grafanaListHighlight: #333;
  88. @grafanaListMainLinkColor: @textColor;
  89. // Scrollbars
  90. @scrollbarBackground: #3a3a3a;
  91. @scrollbarBackground2: #3a3a3a;
  92. @scrollbarBorder: black;
  93. // Tables
  94. // -------------------------
  95. @tableBackground: transparent; // overall background-color
  96. @tableBackgroundAccent: rgba(100, 100, 100, 0.3); // for striping
  97. @tableBackgroundHover: @grayDark; // for hover
  98. @tableBorder: @grayDark; // table and cell border
  99. // Buttons
  100. // -------------------------
  101. @btnBackground: @grayDark;
  102. @btnBackgroundHighlight: darken(@grayLight, 15%);
  103. @btnBackgroundShadow: darken(@grayLight, 15%);
  104. @btnBorder: #bbb;
  105. @btnPrimaryBackground: @blueDark;
  106. @btnPrimaryBackgroundHighlight: lighten(@blueDark, 10%);
  107. @btnInfoBackground: lighten(@purple, 5%);
  108. @btnInfoBackgroundHighlight: darken(@purple, 5%);
  109. @btnSuccessBackground: lighten(@green, 5%);
  110. @btnSuccessBackgroundHighlight: darken(@green, 5%);
  111. @btnWarningBackground: lighten(@orange, 5%);
  112. @btnWarningBackgroundHighlight: darken(@orange, 5%);
  113. @btnDangerBackground: lighten(@red, 5%);
  114. @btnDangerBackgroundHighlight: darken(@red, 5%);
  115. @btnInverseBackground: @grayDark;
  116. @btnInverseBackgroundHighlight: lighten(@grayDark, 5%);
  117. @btnText: @gray;
  118. @iconContainerBackground: @black;
  119. @iconContainerBackgroundHighlight: lighten(@black, 5%);
  120. @iconContainerBorder: 1px solid transparent;
  121. @iconContainerShadow: 0 0 14px 2px rgba(255,255,255, 0.05);
  122. // Forms
  123. // -------------------------
  124. @inputBackground: lighten(@grayDark,5%);
  125. @inputBorder: lighten(@grayDark,5%);
  126. @inputBorderRadius: @baseBorderRadius;
  127. @inputDisabledBackground: #555;
  128. @formActionsBackground: transparent;
  129. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  130. @labelBackground: @grayDark;
  131. // Sidemenu
  132. // -------------------------
  133. @sideMenuTopShadow: @navbarDropdownShadow;
  134. @sideMenuBorder: 1px solid @bodyBackground;
  135. @sideMenuBackground: @grayDark;
  136. @sideMenuBackgroundHighlight: lighten(@grayDark, 4%);
  137. @sideMenuShadow: 0 0 35px 0 @bodyBackground;
  138. // Search
  139. @searchShadow: 0 0 35px 0 @bodyBackground;
  140. // Dropdowns
  141. // -------------------------
  142. @dropdownBackground: @heroUnitBackground;
  143. @dropdownBorder: rgba(0,0,0,.2);
  144. @dropdownDividerTop: transparent;
  145. @dropdownDividerBottom: #444;
  146. @dropdownDivider: @dropdownDividerBottom;
  147. @dropdownTitle: @linkColorDisabled;
  148. @dropdownLinkColor: @textColor;
  149. @dropdownLinkColorHover: @white;
  150. @dropdownLinkColorActive: @white;
  151. @dropdownLinkBackgroundActive: @blueDark;
  152. @dropdownLinkBackgroundHover: @blueDark;
  153. // COMPONENT VARIABLES
  154. // --------------------------------------------------
  155. // Z-index master list
  156. // -------------------------
  157. // Used for a bird's eye view of components dependent on the z-axis
  158. // Try to avoid customizing these :)
  159. @zindexDropdown: 1000;
  160. @zindexPopover: 1010;
  161. @zindexTooltip: 1020;
  162. @zindexFixedNavbar: 1030;
  163. @zindexModalBackdrop: 1040;
  164. @zindexModal: 1050;
  165. // Sprite icons path
  166. // -------------------------
  167. @iconSpritePath: "../img/glyphicons-halflings.png";
  168. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  169. // Input placeholder text color
  170. // -------------------------
  171. @placeholderText: darken(@textColor, 25%);
  172. // Hr border color
  173. // -------------------------
  174. @hrBorder: @grayDark;
  175. // Horizontal forms & lists
  176. // -------------------------
  177. @horizontalComponentOffset: 180px;
  178. // Wells
  179. // -------------------------
  180. @wellBackground: #131517;
  181. // Navbar
  182. // -------------------------
  183. @navbarCollapseWidth: 979px;
  184. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  185. @navbarHeight: 52px;
  186. @navbarBackgroundHighlight: @grayDark;
  187. @navbarBackground: @grayDark;
  188. @navbarBorder: none;
  189. @navbarText: @grayLight;
  190. @navbarLinkColor: @grayLight;
  191. @navbarLinkColorHover: @white;
  192. @navbarLinkColorActive: @navbarLinkColorHover;
  193. @navbarLinkBackgroundHover: transparent;
  194. @navbarLinkBackgroundActive: @navbarBackground;
  195. @navbarBrandColor: @linkColor;
  196. @navbarDropdownShadow: inset 0px 4px 10px -4px @bodyBackground;
  197. @navbarButtonBackground: lighten(@navbarBackground, 3%);
  198. @navbarButtonBackgroundHighlight: lighten(@navbarBackground, 5%);
  199. // Pagination
  200. // -------------------------
  201. @paginationBackground: @bodyBackground;
  202. @paginationBorder: transparent;
  203. @paginationActiveBackground: @blue;
  204. // Hero unit
  205. // -------------------------
  206. @heroUnitBackground: @grayDark;
  207. @heroUnitHeadingColor: inherit;
  208. @heroUnitLeadColor: inherit;
  209. // Form states and alerts
  210. // -------------------------
  211. @warningText: darken(#c09853, 10%);
  212. @warningBackground: @orange;
  213. @warningBorder: transparent;
  214. @errorText: #b94a48;
  215. @errorBackground: @grayLighter;
  216. @errorBorder: darken(spin(@errorBackground, -10), 3%);
  217. @successText: #468847;
  218. @successBackground: @grayLighter;
  219. @successBorder: darken(spin(@successBackground, -10), 5%);
  220. @infoText: @blueDark;
  221. @infoBackground: @grayLighter;
  222. @infoBorder: darken(spin(@infoBackground, -10), 7%);
  223. // Tooltips and popovers
  224. // -------------------------
  225. @tooltipColor: #fff;
  226. @tooltipBackground: rgb(58, 57, 57);
  227. @tooltipArrowWidth: 5px;
  228. @tooltipArrowColor: @tooltipBackground;
  229. @tooltipLinkColor: @linkColor;
  230. @popoverBackground: @heroUnitBackground;
  231. @popoverArrowWidth: 10px;
  232. @popoverArrowColor: @popoverBackground;
  233. @popoverTitleBackground: @popoverBackground;
  234. // Special enhancement for popovers
  235. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  236. @popoverArrowOuterColor: rgba(0,0,0,.25);
  237. // images
  238. @checkboxImageUrl: '../img/checkbox.png';
  239. // GRID
  240. // --------------------------------------------------
  241. // Default 940px grid
  242. // -------------------------
  243. @gridColumns: 12;
  244. @gridColumnWidth: 60px;
  245. @gridGutterWidth: 20px;
  246. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  247. // 1200px min
  248. @gridColumnWidth1200: 70px;
  249. @gridGutterWidth1200: 30px;
  250. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  251. // 768px-979px
  252. @gridColumnWidth768: 42px;
  253. @gridGutterWidth768: 20px;
  254. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  255. // Fluid grid
  256. // -------------------------
  257. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  258. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  259. // 1200px min
  260. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  261. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  262. // 768px-979px
  263. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  264. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);