variables.light.less 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  1. // Cosmo 2.3.2
  2. // Variables
  3. // --------------------------------------------------
  4. // Global values
  5. // --------------------------------------------------
  6. // Grays
  7. // -------------------------
  8. @black: #000;
  9. @grayDarker: lighten(#000, 13.5%); // #222
  10. @grayDark: lighten(#000, 20%); // #333
  11. @gray: lighten(#000, 33.5%); // #555
  12. @grayLight: lighten(#000, 60%); // #999
  13. @grayLighter: lighten(#000, 93.5%); // #eee
  14. @white: #fff;
  15. // Accent colors
  16. // -------------------------
  17. @blue: #007FFF;
  18. @blueDark: #75CAEB;
  19. @green: #28B62C;
  20. @red: #FF4136;
  21. @yellow: #FF851B;
  22. @orange: #FF7518;
  23. @pink: #E671B8;
  24. @purple: #9954BB;
  25. @variable: #32D1DF;
  26. // grafana Variables
  27. // -------------------------
  28. @grafanaPanelBackground: @white;
  29. // Submenu
  30. @submenuBackground: rgb(218, 217, 217);
  31. @submenuBorder: @white;
  32. // Tabs
  33. @fullEditBorder: @grayLighter;
  34. // Graphite Target Editor
  35. @grafanaTargetBorder: @submenuBackground;
  36. @grafanaTargetBackground: @white;
  37. @grafanaTargetColor: @textColor;
  38. @grafanaTargetColorHide: lighten(@textColor, 25%);
  39. @grafanaTargetSegmentBorder: @submenuBackground;
  40. @grafanaTargetFuncBackground: darken(@grafanaTargetBackground, 5%);
  41. @grafanaTargetFuncHightlight: darken(@grafanaTargetBackground, 10%);
  42. // Scaffolding
  43. // -------------------------
  44. @bodyBackground: @grayLighter;
  45. @textColor: #666;
  46. // Links
  47. // -------------------------
  48. @linkColor: @textColor;
  49. @linkColorDisabled: lighten(@linkColor,35%);
  50. @linkColorHover: @blue;
  51. // Typography
  52. // -------------------------
  53. @sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif;
  54. @serifFontFamily: Georgia, "Times New Roman", Times, serif;
  55. @monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace;
  56. @baseFontSize: 14px;
  57. @baseFontFamily: @sansFontFamily;
  58. @baseLineHeight: 20px;
  59. @altFontFamily: @serifFontFamily;
  60. @headingsFontFamily: inherit; // empty to use BS default, @baseFontFamily
  61. @headingsFontWeight: bold; // instead of browser default, bold
  62. @headingsColor: @grayDarker; // empty to use BS default, @textColor
  63. // Component sizing
  64. // -------------------------
  65. // Based on 14px font-size and 20px line-height
  66. @fontSizeLarge: @baseFontSize * 1.25; // ~18px
  67. @fontSizeSmall: @baseFontSize * 0.85; // ~12px
  68. @fontSizeMini: @baseFontSize * 0.75; // ~11px
  69. @paddingLarge: 22px 30px; // 66px
  70. @paddingSmall: 2px 10px; // 26px
  71. @paddingMini: 2px 6px; // 24px
  72. @baseBorderRadius: 3px;
  73. @borderRadiusLarge: 4px;
  74. @borderRadiusSmall: 2px;
  75. // Lists
  76. @grafanaListBackground: transparent;
  77. @grafanaListAccent: @grayLighter;
  78. @grafanaListBorderTop: #eee;
  79. @grafanaListBorderBottom: #efefef;
  80. @grafanaListHighlight: @blue;
  81. @grafanaListHighlightContrast: #ddd;
  82. @grafanaListMainLinkColor: @textColor;
  83. // Tables
  84. // -------------------------
  85. @tableBackground: transparent; // overall background-color
  86. @tableBackgroundAccent: #f9f9f9; // for striping
  87. @tableBackgroundHover: #E8F8FD; // for hover
  88. @tableBorder: #ddd; // table and cell border
  89. // Scrollbars
  90. @scrollbarBackground: @grayLighter;
  91. @scrollbarBackground2: @grayLighter;
  92. @scrollbarBorder: @grayLight;
  93. // Buttons
  94. // -------------------------
  95. @btnBackground: @grayLighter;
  96. @btnBackgroundHighlight: darken(@grayLighter, 15%);
  97. @btnBorder: #bbb;
  98. @btnPrimaryBackground: lighten(@blue, 5%);
  99. @btnPrimaryBackgroundHighlight: darken(@blue, 5%);
  100. @btnInfoBackground: lighten(@purple, 5%);
  101. @btnInfoBackgroundHighlight: darken(@purple, 5%);
  102. @btnSuccessBackground: lighten(@green, 5%);
  103. @btnSuccessBackgroundHighlight: darken(@green, 5%);
  104. @btnWarningBackground: lighten(@orange, 5%);
  105. @btnWarningBackgroundHighlight: darken(@orange, 5%);
  106. @btnDangerBackground: lighten(@red, 5%);
  107. @btnDangerBackgroundHighlight: darken(@red, 5%);
  108. @btnInverseBackground: lighten(@black, 5%);
  109. @btnInverseBackgroundHighlight: darken(@black, 5%);
  110. // Forms
  111. // -------------------------
  112. @inputBackground: @white;
  113. @inputBorder: @grayLight;
  114. @inputBorderRadius: @baseBorderRadius;
  115. @inputDisabledBackground: @grayLighter;
  116. @formActionsBackground: #f5f5f5;
  117. @inputHeight: @baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
  118. @inputText: #020202;
  119. // Dropdowns
  120. // -------------------------
  121. @dropdownBackground: @white;
  122. @dropdownBorder: rgba(0,0,0,.2);
  123. @dropdownDividerTop: #e5e5e5;
  124. @dropdownDividerBottom: @white;
  125. @dropdownLinkColor: @grayDark;
  126. @dropdownLinkColorHover: @white;
  127. @dropdownLinkColorActive: @white;
  128. @dropdownLinkBackgroundActive: @blue;
  129. @dropdownLinkBackgroundHover: @blue;
  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: 1030;
  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: @grayLight;
  149. // Hr border color
  150. // -------------------------
  151. @hrBorder: @grayLighter;
  152. // Horizontal forms & lists
  153. // -------------------------
  154. @horizontalComponentOffset: 180px;
  155. // Wells
  156. // -------------------------
  157. @wellBackground: @grayLighter;
  158. // Navbar
  159. // -------------------------
  160. @navbarCollapseWidth: 979px;
  161. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  162. @navbarHeight: 50px;
  163. @navbarBackgroundHighlight: #f8f8f8;
  164. @navbarBackground: #f8f8f8;
  165. @navbarBorder: darken(@navbarBackground, 6.5%);
  166. @navbarText: #666;
  167. @navbarLinkColor: #666;
  168. @navbarLinkColorHover: @blue;
  169. @navbarLinkColorActive: #555;
  170. @navbarLinkBackgroundHover: transparent;
  171. @navbarLinkBackgroundActive: darken(@navbarBackground, 6.5%);
  172. @navbarBrandColor: @navbarLinkColor;
  173. // Inverted navbar
  174. @navbarInverseBackground: @blue;
  175. @navbarInverseBackgroundHighlight: @navbarInverseBackground;
  176. @navbarInverseBorder: transparent;
  177. @navbarInverseText: @white;
  178. @navbarInverseLinkColor: @white;
  179. @navbarInverseLinkColorHover: @white;
  180. @navbarInverseLinkColorActive: @navbarInverseLinkColorHover;
  181. @navbarInverseLinkBackgroundHover: rgba(0, 0, 0, 0.05);
  182. @navbarInverseLinkBackgroundActive: @navbarInverseBackground;
  183. @navbarInverseSearchBackground: lighten(@navbarInverseBackground, 25%);
  184. @navbarInverseSearchBackgroundFocus: @white;
  185. @navbarInverseSearchBorder: @navbarInverseBackground;
  186. @navbarInverseSearchPlaceholderColor: @grayDark;
  187. @navbarInverseBrandColor: @navbarInverseLinkColor;
  188. // Pagination
  189. // -------------------------
  190. @paginationBackground: @grayLight;
  191. @paginationBorder: transparent;
  192. @paginationActiveBackground: @blue;
  193. // Hero unit
  194. // -------------------------
  195. @heroUnitBackground: @grayLighter;
  196. @heroUnitHeadingColor: inherit;
  197. @heroUnitLeadColor: inherit;
  198. // Form states and alerts
  199. // -------------------------
  200. @warningText: lighten(@orange, 10%);
  201. @warningBackground: @orange;
  202. @warningBorder: transparent;
  203. @errorText: lighten(@red, 10%);
  204. @errorBackground: @red;
  205. @errorBorder: transparent;
  206. @successText: lighten(@green, 10%);
  207. @successBackground: @green;
  208. @successBorder: transparent;
  209. @infoText: lighten(@purple,10%);
  210. @infoBackground: @purple;
  211. @infoBorder: transparent;
  212. // Tooltips and popovers
  213. // -------------------------
  214. @tooltipColor: #fff;
  215. @tooltipBackground: #000;
  216. @tooltipArrowWidth: 5px;
  217. @tooltipArrowColor: @tooltipBackground;
  218. @popoverBackground: @white;
  219. @popoverArrowWidth: 15px;
  220. @popoverArrowColor: @white;
  221. @popoverTitleBackground: @white;
  222. // Special enhancement for popovers
  223. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  224. @popoverArrowOuterColor: rgba(0,0,0,.25);
  225. // GRID
  226. // --------------------------------------------------
  227. // Default 940px grid
  228. // -------------------------
  229. @gridColumns: 12;
  230. @gridColumnWidth: 60px;
  231. @gridGutterWidth: 20px;
  232. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  233. // 1200px min
  234. @gridColumnWidth1200: 70px;
  235. @gridGutterWidth1200: 30px;
  236. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  237. // 768px-979px
  238. @gridColumnWidth768: 42px;
  239. @gridGutterWidth768: 20px;
  240. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  241. // Fluid grid
  242. // -------------------------
  243. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  244. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  245. // 1200px min
  246. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  247. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  248. // 768px-979px
  249. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  250. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);