variables.light.less 11 KB

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