variables.dark.less 10 KB

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