_waves.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. // Style input button bug.
  56. input[type="button"], input[type="reset"], input[type="submit"] {
  57. border: 0;
  58. font-style: normal;
  59. font-size: inherit;
  60. text-transform: inherit;
  61. background: none;
  62. }
  63. img {
  64. position: relative;
  65. z-index: -1;
  66. }
  67. }
  68. .waves-notransition {
  69. transition: none #{"!important"};
  70. }
  71. .waves-circle {
  72. transform: translateZ(0);
  73. -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
  74. }
  75. .waves-input-wrapper {
  76. border-radius: 0.2em;
  77. vertical-align: bottom;
  78. .waves-button-input {
  79. position: relative;
  80. top: 0;
  81. left: 0;
  82. z-index: 1;
  83. }
  84. }
  85. .waves-circle {
  86. text-align: center;
  87. width: 2.5em;
  88. height: 2.5em;
  89. line-height: 2.5em;
  90. border-radius: 50%;
  91. -webkit-mask-image: none;
  92. }
  93. .waves-block {
  94. display: block;
  95. }
  96. /* Firefox Bug: link not triggered */
  97. .waves-effect .waves-ripple {
  98. z-index: -1;
  99. }