waves.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. /* Waves v0.6.0
  2. * http://fian.my.id/Waves
  3. *
  4. * Copyright 2014 Alfiana E. Sibuea and other contributors
  5. * Released under the MIT license
  6. * https://github.com/fians/Waves/blob/master/LICENSE
  7. */
  8. .waves-effect {
  9. position: relative;
  10. cursor: pointer;
  11. display: inline-block;
  12. overflow: hidden;
  13. -webkit-user-select: none;
  14. -moz-user-select: none;
  15. -ms-user-select: none;
  16. user-select: none;
  17. -webkit-tap-highlight-color: transparent;
  18. vertical-align: middle;
  19. z-index: 1;
  20. will-change: opacity, transform;
  21. transition: all 0.3s ease-out;
  22. }
  23. .waves-effect .waves-ripple {
  24. position: absolute;
  25. border-radius: 50%;
  26. width: 20px;
  27. height: 20px;
  28. margin-top: -10px;
  29. margin-left: -10px;
  30. opacity: 0;
  31. background: rgba(0, 0, 0, 0.2);
  32. transition: all 0.7s ease-out;
  33. transition-property: opacity, -webkit-transform;
  34. transition-property: transform, opacity;
  35. transition-property: transform, opacity, -webkit-transform;
  36. -webkit-transform: scale(0);
  37. transform: scale(0);
  38. pointer-events: none;
  39. }
  40. .waves-effect.waves-light .waves-ripple {
  41. background-color: rgba(255, 255, 255, 0.45);
  42. }
  43. .waves-effect.waves-red .waves-ripple {
  44. background-color: rgba(244, 67, 54, 0.7);
  45. }
  46. .waves-effect.waves-yellow .waves-ripple {
  47. background-color: rgba(255, 235, 59, 0.7);
  48. }
  49. .waves-effect.waves-orange .waves-ripple {
  50. background-color: rgba(255, 152, 0, 0.7);
  51. }
  52. .waves-effect.waves-purple .waves-ripple {
  53. background-color: rgba(156, 39, 176, 0.7);
  54. }
  55. .waves-effect.waves-green .waves-ripple {
  56. background-color: rgba(76, 175, 80, 0.7);
  57. }
  58. .waves-effect.waves-teal .waves-ripple {
  59. background-color: rgba(0, 150, 136, 0.7);
  60. }
  61. .waves-effect input[type='button'],
  62. .waves-effect input[type='reset'],
  63. .waves-effect input[type='submit'] {
  64. border: 0;
  65. font-style: normal;
  66. font-size: inherit;
  67. text-transform: inherit;
  68. background: none;
  69. }
  70. .waves-notransition {
  71. transition: none !important;
  72. }
  73. .waves-circle {
  74. -webkit-transform: translateZ(0);
  75. transform: translateZ(0);
  76. -webkit-mask-image: -webkit-radial-gradient(circle, #fff 100%, #000 100%);
  77. }
  78. .waves-input-wrapper {
  79. border-radius: 0.2em;
  80. vertical-align: bottom;
  81. }
  82. .waves-input-wrapper .waves-button-input {
  83. position: relative;
  84. top: 0;
  85. left: 0;
  86. z-index: 1;
  87. }
  88. .waves-circle {
  89. text-align: center;
  90. width: 2.5em;
  91. height: 2.5em;
  92. line-height: 2.5em;
  93. border-radius: 50%;
  94. -webkit-mask-image: none;
  95. }
  96. .waves-block {
  97. display: block;
  98. }
  99. a.waves-effect .waves-ripple {
  100. z-index: -1;
  101. }