variables.light.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  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. @sideMenuTopShadow: @navbarDropdownShadow;
  143. @sideMenuBorder: 1px solid @grafanaTargetBorder;
  144. @sideMenuBackground: @grafanaPanelBackground;
  145. @sideMenuBackgroundHighlight: darken(@sideMenuBackground, 4%);
  146. @sideMenuShadow: 0 5px 30px 0 lighten(@grayLight, 30%);
  147. // search
  148. @searchShadow: 0 5px 30px 0 lighten(@grayLight, 30%);
  149. // Dropdowns
  150. // -------------------------
  151. @dropdownBackground: @white;
  152. @dropdownBorder: rgba(0,0,0,.2);
  153. @dropdownDividerTop: #e5e5e5;
  154. @dropdownDividerBottom: @white;
  155. @dropdownDivider: @dropdownDividerTop;
  156. @dropdownTitle: #333;
  157. @dropdownLinkColor: @grayDark;
  158. @dropdownLinkColorHover: @white;
  159. @dropdownLinkColorActive: @white;
  160. @dropdownLinkBackgroundActive: @blue;
  161. @dropdownLinkBackgroundHover: @blue;
  162. // COMPONENT VARIABLES
  163. // --------------------------------------------------
  164. // Z-index master list
  165. // -------------------------
  166. // Used for a bird's eye view of components dependent on the z-axis
  167. // Try to avoid customizing these :)
  168. @zindexDropdown: 1000;
  169. @zindexPopover: 1010;
  170. @zindexTooltip: 1030;
  171. @zindexFixedNavbar: 1030;
  172. @zindexModalBackdrop: 1040;
  173. @zindexModal: 1050;
  174. // Sprite icons path
  175. // -------------------------
  176. @iconSpritePath: "../img/glyphicons-halflings.png";
  177. @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
  178. // Input placeholder text color
  179. // -------------------------
  180. @placeholderText: @grayLight;
  181. // Hr border color
  182. // -------------------------
  183. @hrBorder: @grayLighter;
  184. // Horizontal forms & lists
  185. // -------------------------
  186. @horizontalComponentOffset: 180px;
  187. // Wells
  188. // -------------------------
  189. @wellBackground: @grayLighter;
  190. // Navbar
  191. // -------------------------
  192. @navbarCollapseWidth: 979px;
  193. @navbarCollapseDesktopWidth: @navbarCollapseWidth + 1;
  194. @navbarHeight: 52px;
  195. @navbarBackgroundHighlight: #f8f8f8;
  196. @navbarBackground: #f8f8f8;
  197. @navbarBorder: none;
  198. @navbarText: #666;
  199. @navbarLinkColor: #666;
  200. @navbarLinkColorHover: #333;
  201. @navbarLinkColorActive: #555;
  202. @navbarLinkBackgroundHover: transparent;
  203. @navbarLinkBackgroundActive: darken(@navbarBackground, 6.5%);
  204. @navbarDropdownShadow: inset 0px 4px 7px -4px darken(@bodyBackground, 20%);
  205. @navbarBrandColor: @navbarLinkColor;
  206. @navbarButtonBackground: lighten(@navbarBackground, 3%);
  207. @navbarButtonBackgroundHighlight: lighten(@navbarBackground, 5%);
  208. // Pagination
  209. // -------------------------
  210. @paginationBackground: @grayLight;
  211. @paginationBorder: transparent;
  212. @paginationActiveBackground: @blue;
  213. // Hero unit
  214. // -------------------------
  215. @heroUnitBackground: @grayLighter;
  216. @heroUnitHeadingColor: inherit;
  217. @heroUnitLeadColor: inherit;
  218. // Form states and alerts
  219. // -------------------------
  220. @warningText: lighten(@orange, 10%);
  221. @warningBackground: @orange;
  222. @warningBorder: transparent;
  223. @errorText: lighten(@red, 10%);
  224. @errorBackground: @red;
  225. @errorBorder: transparent;
  226. @successText: lighten(@green, 10%);
  227. @successBackground: @green;
  228. @successBorder: transparent;
  229. @infoText: lighten(@purple,10%);
  230. @infoBackground: @purple;
  231. @infoBorder: transparent;
  232. // Tooltips and popovers
  233. // -------------------------
  234. @tooltipColor: @white;
  235. @tooltipBackground: @grayDark;
  236. @tooltipArrowWidth: 5px;
  237. @tooltipArrowColor: @tooltipBackground;
  238. @tooltipLinkColor: darken(@white,11%);
  239. @popoverBackground: @white;
  240. @popoverArrowWidth: 15px;
  241. @popoverArrowColor: @white;
  242. @popoverTitleBackground: @white;
  243. // Special enhancement for popovers
  244. @popoverArrowOuterWidth: @popoverArrowWidth + 1;
  245. @popoverArrowOuterColor: rgba(0,0,0,.25);
  246. // images
  247. @checkboxImageUrl: '../img/checkbox_white.png';
  248. // GRID
  249. // --------------------------------------------------
  250. // Default 940px grid
  251. // -------------------------
  252. @gridColumns: 12;
  253. @gridColumnWidth: 60px;
  254. @gridGutterWidth: 20px;
  255. @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));
  256. // 1200px min
  257. @gridColumnWidth1200: 70px;
  258. @gridGutterWidth1200: 30px;
  259. @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));
  260. // 768px-979px
  261. @gridColumnWidth768: 42px;
  262. @gridGutterWidth768: 20px;
  263. @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));
  264. // Fluid grid
  265. // -------------------------
  266. @fluidGridColumnWidth: percentage(@gridColumnWidth/@gridRowWidth);
  267. @fluidGridGutterWidth: percentage(@gridGutterWidth/@gridRowWidth);
  268. // 1200px min
  269. @fluidGridColumnWidth1200: percentage(@gridColumnWidth1200/@gridRowWidth1200);
  270. @fluidGridGutterWidth1200: percentage(@gridGutterWidth1200/@gridRowWidth1200);
  271. // 768px-979px
  272. @fluidGridColumnWidth768: percentage(@gridColumnWidth768/@gridRowWidth768);
  273. @fluidGridGutterWidth768: percentage(@gridGutterWidth768/@gridRowWidth768);