waves.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*!
  2. * Waves v0.7.5
  3. * http://fian.my.id/Waves
  4. *
  5. * Copyright 2014-2016 Alfiana E. Sibuea and other contributors
  6. * Released under the MIT license
  7. * https://github.com/fians/Waves/blob/master/LICENSE
  8. */
  9. .waves-effect {
  10. position: relative;
  11. cursor: pointer;
  12. display: inline-block;
  13. overflow: hidden;
  14. -webkit-user-select: none;
  15. -moz-user-select: none;
  16. -ms-user-select: none;
  17. user-select: none;
  18. -webkit-tap-highlight-color: transparent;
  19. }
  20. .waves-effect .waves-ripple {
  21. position: absolute;
  22. border-radius: 50%;
  23. width: 100px;
  24. height: 100px;
  25. margin-top: -50px;
  26. margin-left: -50px;
  27. opacity: 0;
  28. background: rgba(0, 0, 0, 0.2);
  29. background: -webkit-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  30. background: -o-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  31. background: -moz-radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  32. background: radial-gradient(rgba(0, 0, 0, 0.2) 0, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  33. -webkit-transition: all 0.5s ease-out;
  34. -moz-transition: all 0.5s ease-out;
  35. -o-transition: all 0.5s ease-out;
  36. transition: all 0.5s ease-out;
  37. -webkit-transition-property: -webkit-transform, opacity;
  38. -moz-transition-property: -moz-transform, opacity;
  39. -o-transition-property: -o-transform, opacity;
  40. transition-property: transform, opacity;
  41. -webkit-transform: scale(0) translate(0, 0);
  42. -moz-transform: scale(0) translate(0, 0);
  43. -ms-transform: scale(0) translate(0, 0);
  44. -o-transform: scale(0) translate(0, 0);
  45. transform: scale(0) translate(0, 0);
  46. pointer-events: none;
  47. }
  48. .waves-effect.waves-light .waves-ripple {
  49. background: rgba(255, 255, 255, 0.4);
  50. background: -webkit-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  51. background: -o-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  52. background: -moz-radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  53. background: radial-gradient(rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0.3) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  54. }
  55. .waves-effect.waves-classic .waves-ripple {
  56. background: rgba(0, 0, 0, 0.2);
  57. }
  58. .waves-effect.waves-classic.waves-light .waves-ripple {
  59. background: rgba(255, 255, 255, 0.4);
  60. }
  61. .waves-notransition {
  62. -webkit-transition: none !important;
  63. -moz-transition: none !important;
  64. -o-transition: none !important;
  65. transition: none !important;
  66. }
  67. .waves-button,
  68. .waves-circle {
  69. -webkit-transform: translateZ(0);
  70. -moz-transform: translateZ(0);
  71. -ms-transform: translateZ(0);
  72. -o-transform: translateZ(0);
  73. transform: translateZ(0);
  74. -webkit-mask-image: -webkit-radial-gradient(circle, #ffffff 100%, #000000 100%);
  75. }
  76. .waves-button,
  77. .waves-button:hover,
  78. .waves-button:visited,
  79. .waves-button-input {
  80. white-space: nowrap;
  81. vertical-align: middle;
  82. cursor: pointer;
  83. border: none;
  84. outline: none;
  85. color: inherit;
  86. background-color: rgba(0, 0, 0, 0);
  87. font-size: 1em;
  88. line-height: 1em;
  89. text-align: center;
  90. text-decoration: none;
  91. z-index: 1;
  92. }
  93. .waves-button {
  94. padding: 0.85em 1.1em;
  95. border-radius: 0.2em;
  96. }
  97. .waves-button-input {
  98. margin: 0;
  99. padding: 0.85em 1.1em;
  100. }
  101. .waves-input-wrapper {
  102. border-radius: 0.2em;
  103. vertical-align: bottom;
  104. }
  105. .waves-input-wrapper.waves-button {
  106. padding: 0;
  107. }
  108. .waves-input-wrapper .waves-button-input {
  109. position: relative;
  110. top: 0;
  111. left: 0;
  112. z-index: 1;
  113. }
  114. .waves-circle {
  115. text-align: center;
  116. width: 2.5em;
  117. height: 2.5em;
  118. line-height: 2.5em;
  119. border-radius: 50%;
  120. }
  121. .waves-float {
  122. -webkit-mask-image: none;
  123. -webkit-box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);
  124. box-shadow: 0px 1px 1.5px 1px rgba(0, 0, 0, 0.12);
  125. -webkit-transition: all 300ms;
  126. -moz-transition: all 300ms;
  127. -o-transition: all 300ms;
  128. transition: all 300ms;
  129. }
  130. .waves-float:active {
  131. -webkit-box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3);
  132. box-shadow: 0px 8px 20px 1px rgba(0, 0, 0, 0.3);
  133. }
  134. .waves-block {
  135. display: block;
  136. }