variables.dark.less 9.6 KB

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