variables.dark.less 10 KB

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