variables.light.less 10 KB

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