variables.dark.less 10 KB

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