variables.dark.less 10.0 KB

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