variables.dark.less 10 KB

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