variables.light.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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. // Scaffolding
  38. // -------------------------
  39. $bodyBackground: #EFEFEF;
  40. $pageBackground: $white;
  41. $textColor: $gray;
  42. // Submenu
  43. $submenuBackground: rgb(218, 217, 217);
  44. $submenuBorder: $white;
  45. // Graphite Target Editor
  46. $grafanaTargetBorder: #ddd;
  47. $grafanaTargetBackground: #efefef;
  48. $grafanaTargetColor: $textColor;
  49. $grafanaTargetColorHide: lighten($textColor, 25%);
  50. $grafanaTargetSegmentBorder: #ddd;
  51. $grafanaTargetFuncBackground: darken($grafanaTargetBackground, 5%);
  52. $grafanaTargetFuncHightlight: darken($grafanaTargetBackground, 10%);
  53. $grafanaSelectBackground: $grafanaTargetFuncBackground;
  54. $modalBackground: $bodyBackground;
  55. $codeTagBackground: #ddd;
  56. // Links
  57. // -------------------------
  58. $linkColor: $gray;
  59. $linkColorDisabled: lighten($linkColor,30%);
  60. $linkColorHover: darken($linkColor, 20%);
  61. // Typography
  62. // -------------------------
  63. $sansFontFamily: "Open Sans", "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. $fontWeightSemi: 600;
  69. $baseFontFamily: $sansFontFamily;
  70. $baseLineHeight: 20px;
  71. $altFontFamily: $serifFontFamily;
  72. $headingsFontFamily: inherit; // inherit. empty to use BS default, $baseFontFamily
  73. $headingsFontWeight: normal; // instead of browser default, bold
  74. $headingsFontStyle: normal;
  75. $headingsColor: $textColor; // empty to use BS default, $textColor
  76. // Component sizing
  77. // -------------------------
  78. // Based on 14px font-size and 20px line-height
  79. $fontSizeLarge: $baseFontSize * 1.25; // ~18px
  80. $fontSizeSmall: $baseFontSize * 0.85; // ~12px
  81. $fontSizeMini: $baseFontSize * 0.75; // ~11px
  82. $paddingLarge: 22px 30px; // 66px
  83. $paddingSmall: 2px 10px; // 26px
  84. $paddingMini: 2px 6px; // 24px
  85. $baseBorderRadius: 3px;
  86. $borderRadiusLarge: 4px;
  87. $borderRadiusSmall: 2px;
  88. // Lists
  89. $grafanaListBackground: darken($grayLighter,5%);
  90. $grafanaListAccent: darken($grayLighter,8%);
  91. $grafanaListBorderTop: #eee;
  92. $grafanaListBorderBottom: #eee;
  93. $grafanaListHighlight: darken($grayLighter,10%);
  94. $grafanaListHighlightContrast: #ddd;
  95. $grafanaListMainLinkColor: $textColor;
  96. // Tables
  97. // -------------------------
  98. $tableBackground: transparent; // overall background-color
  99. $tableBackgroundAccent: #f9f9f9; // for striping
  100. $tableBackgroundHover: #E8F8FD; // for hover
  101. $tableBorder: #ddd; // table and cell border
  102. // Scrollbars
  103. $scrollbarBackground: $grayLighter;
  104. $scrollbarBackground2: $grayLighter;
  105. $scrollbarBorder: $grayLight;
  106. // Buttons
  107. // -------------------------
  108. $btnBackground: $grayLighter;
  109. $btnBackgroundHighlight: darken($grayLighter, 15%);
  110. $btnBorder: #bbb;
  111. $btnPrimaryBackground: lighten($blue, 3%);
  112. $btnPrimaryBackgroundHighlight: darken($blue, 3%);
  113. $btnInfoBackground: lighten($purple, 3%);
  114. $btnInfoBackgroundHighlight: darken($purple, 3%);
  115. $btnSuccessBackground: lighten($green, 3%);
  116. $btnSuccessBackgroundHighlight: darken($green, 3%);
  117. $btnWarningBackground: lighten($orange, 3%);
  118. $btnWarningBackgroundHighlight: darken($orange, 3%);
  119. $btnDangerBackground: lighten($red, 3%);
  120. $btnDangerBackgroundHighlight: darken($red, 3%);
  121. $btnInverseBackground: $grayLighter;
  122. $btnInverseBackgroundHighlight: darken($grayLighter, 5%);
  123. $btnInverseText: $black;
  124. $btnInverseBorder: $grayLight;
  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: $grayLighter;
  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. $sideMenuBackground: $grafanaPanelBackground;
  143. $sideMenuBackgroundHighlight: darken($sideMenuBackground, 4%);
  144. // search
  145. $searchShadow: 0 5px 30px 0 lighten($grayLight, 30%);
  146. // Dropdowns
  147. // -------------------------
  148. $dropdownBackground: $white;
  149. $dropdownBorder: $grafanaTargetBorder;
  150. $dropdownDividerTop: #e5e5e5;
  151. $dropdownDividerBottom: $white;
  152. $dropdownDivider: $dropdownDividerTop;
  153. $dropdownTitle: #333;
  154. $dropdownLinkColor: $grayDark;
  155. $dropdownLinkColorHover: $white;
  156. $dropdownLinkColorActive: $white;
  157. $dropdownLinkBackgroundActive: $blue;
  158. $dropdownLinkBackgroundHover: $blue;
  159. // COMPONENT VARIABLES
  160. // --------------------------------------------------
  161. // Z-index master list
  162. // -------------------------
  163. // Used for a bird's eye view of components dependent on the z-axis
  164. // Try to avoid customizing these :)
  165. $zindexDropdown: 1000;
  166. $zindexPopover: 1010;
  167. $zindexTooltip: 1030;
  168. $zindexFixedNavbar: 1030;
  169. $zindexModalBackdrop: 1040;
  170. $zindexModal: 1050;
  171. // Input placeholder text color
  172. // -------------------------
  173. $placeholderText: $grayLight;
  174. // Hr border color
  175. // -------------------------
  176. $hrBorder: $grayLighter;
  177. // Horizontal forms & lists
  178. // -------------------------
  179. $horizontalComponentOffset: 180px;
  180. // Wells
  181. // -------------------------
  182. $wellBackground: $grayLighter;
  183. // Navbar
  184. // -------------------------
  185. $navbarHeight: 52px;
  186. $navbarBackgroundHighlight: #f8f8f8;
  187. $navbarBackground: #f8f8f8;
  188. $navbarBorder: 1px solid $grafanaTargetBorder;
  189. $navbarText: #666;
  190. $navbarLinkColor: #666;
  191. $navbarLinkColorHover: #333;
  192. $navbarLinkColorActive: #555;
  193. $navbarLinkBackgroundHover: transparent;
  194. $navbarLinkBackgroundActive: darken($navbarBackground, 6.5%);
  195. $navbarDropdownShadow: inset 0px 4px 7px -4px darken($bodyBackground, 20%);
  196. $navbarBrandColor: $navbarLinkColor;
  197. $navbarButtonBackground: lighten($navbarBackground, 3%);
  198. $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
  199. // Pagination
  200. // -------------------------
  201. $paginationBackground: $grayLight;
  202. $paginationBorder: transparent;
  203. $paginationActiveBackground: $blue;
  204. // Hero unit
  205. // -------------------------
  206. $heroUnitBackground: $grayLighter;
  207. $heroUnitHeadingColor: inherit;
  208. $heroUnitLeadColor: inherit;
  209. // Form states and alerts
  210. // -------------------------
  211. $warningText: lighten($orange, 10%);
  212. $warningBackground: $orange;
  213. $warningBorder: transparent;
  214. $errorText: lighten($red, 10%);
  215. $errorBackground: $red;
  216. $errorBorder: transparent;
  217. $successText: lighten($green, 10%);
  218. $successBackground: $green;
  219. $successBorder: transparent;
  220. $infoText: lighten($purple,10%);
  221. $infoBackground: $purple;
  222. $infoBorder: transparent;
  223. // Tooltips and popovers
  224. // -------------------------
  225. $tooltipColor: $white;
  226. $tooltipBackground: $grayDark;
  227. $tooltipArrowWidth: 5px;
  228. $tooltipArrowColor: $tooltipBackground;
  229. $tooltipLinkColor: darken($white,11%);
  230. $popoverBackground: $white;
  231. $popoverArrowWidth: 15px;
  232. $popoverArrowColor: $white;
  233. $popoverTitleBackground: $white;
  234. // Special enhancement for popovers
  235. $popoverArrowOuterWidth: $popoverArrowWidth + 1;
  236. $popoverArrowOuterColor: rgba(0,0,0,.25);
  237. // images
  238. $checkboxImageUrl: '../img/checkbox_white.png';
  239. // GRID
  240. // --------------------------------------------------
  241. // Default 940px grid
  242. // -------------------------
  243. $gridColumns: 12;
  244. $gridColumnWidth: 60px;
  245. $gridGutterWidth: 20px;
  246. $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
  247. // 1200px min
  248. $gridColumnWidth1200: 70px;
  249. $gridGutterWidth1200: 30px;
  250. $gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1));
  251. // 768px-979px
  252. $gridColumnWidth768: 42px;
  253. $gridGutterWidth768: 20px;
  254. $gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1));
  255. // Fluid grid
  256. // -------------------------
  257. $fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth);
  258. $fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth);
  259. // 1200px min
  260. $fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200);
  261. $fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200);
  262. // 768px-979px
  263. $fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768);
  264. $fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768);