_variables.scss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // Copyright 2016 Google Inc.
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to deal
  6. // in the Software without restriction, including without limitation the rights
  7. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  8. // copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  20. // THE SOFTWARE.
  21. //
  22. $fade-in-duration: 75ms !default;
  23. $fade-out-duration: 150ms !default;
  24. $translate-duration: 225ms !default;
  25. $states-wash-duration: 15ms !default;
  26. // Notes on states:
  27. // * focus takes precedence over hover (i.e. if an element is both focused and hovered, only focus value applies)
  28. // * press state applies to a separate pseudo-element, so it has an additive effect on top of other states
  29. // * selected/activated are applied additively to hover/focus via calculations at preprocessing time
  30. $dark-ink-opacities: (
  31. hover: .04,
  32. focus: .12,
  33. press: .12,
  34. selected: .08,
  35. activated: .12
  36. ) !default;
  37. $light-ink-opacities: (
  38. hover: .08,
  39. focus: .24,
  40. press: .24,
  41. selected: .16,
  42. activated: .24
  43. ) !default;
  44. // Legacy
  45. $pressed-dark-ink-opacity: .16 !default;
  46. $pressed-light-ink-opacity: .32 !default;