variables.dark.less 10 KB

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