_waves.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*!
  2. * Waves v0.6.0
  3. * http://fian.my.id/Waves
  4. *
  5. * Copyright 2014 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. user-select: none;
  15. -webkit-tap-highlight-color: transparent;
  16. vertical-align: middle;
  17. z-index: 1;
  18. transition: .3s ease-out;
  19. .waves-ripple {
  20. position: absolute;
  21. border-radius: 50%;
  22. width: 20px;
  23. height: 20px;
  24. margin-top:-10px;
  25. margin-left:-10px;
  26. opacity: 0;
  27. background: rgba(0,0,0,0.2);
  28. transition: all 0.7s ease-out;
  29. transition-property: transform, opacity;
  30. transform: scale(0);
  31. pointer-events: none;
  32. }
  33. // Waves Colors
  34. &.waves-light .waves-ripple {
  35. background-color: rgba(255, 255, 255, 0.45);
  36. }
  37. &.waves-red .waves-ripple {
  38. background-color: rgba(244, 67, 54, .70);
  39. }
  40. &.waves-yellow .waves-ripple {
  41. background-color: rgba(255, 235, 59, .70);
  42. }
  43. &.waves-orange .waves-ripple {
  44. background-color: rgba(255, 152, 0, .70);
  45. }
  46. &.waves-purple .waves-ripple {
  47. background-color: rgba(156, 39, 176, 0.70);
  48. }
  49. &.waves-green .waves-ripple {
  50. background-color: rgba(76, 175, 80, 0.70);
  51. }
  52. &.waves-teal .waves-ripple {
  53. background-color: rgba(0, 150, 136, 0.70);
  54. }
  55. &.waves-blue .waves-ripple {
  56. background-color: rgba(0, 153, 255, 0.7);
  57. }
  58. // Style input button bug.
  59. input[type="button"], input[type="reset"], input[type="submit"] {
  60. border: 0;
  61. font-style: normal;
  62. font-size: inherit;
  63. text-transform: inherit;
  64. background: none;
  65. }
  66. img {
  67. position: relative;
  68. z-index: -1;
  69. }
  70. }
  71. .waves-notransition {
  72. transition: none #{"!important"};
  73. }
  74. .waves-circle {
  75. transform: translateZ(0);
  76. -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
  77. }
  78. .waves-input-wrapper {
  79. border-radius: 0.2em;
  80. vertical-align: bottom;
  81. .waves-button-input {
  82. position: relative;
  83. top: 0;
  84. left: 0;
  85. z-index: 1;
  86. }
  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. /* Firefox Bug: link not triggered */
  100. .waves-effect .waves-ripple {
  101. z-index: -1;
  102. }