variables.light.less 9.8 KB

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