variables.light.less 10 KB

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