variables.light.less 11 KB

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