variables.light.less 11 KB

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