Blame view

bower_components/Materialize/sass/components/_waves.scss 3.9 KB
74249687   Luigi Serra   Cross browser con...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
  
  /*!
   * Waves v0.6.0
   * http://fian.my.id/Waves
   *
   * Copyright 2014 Alfiana E. Sibuea and other contributors
   * Released under the MIT license
   * https://github.com/fians/Waves/blob/master/LICENSE
   */
  
  
  .waves-effect {
      position: relative;
      cursor: pointer;
      display: inline-block;
      overflow: hidden;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      // white-space: nowrap;
      // outline: 0;
  
      vertical-align: middle;
      // cursor: pointer;
      // border: none;
      // outline: none;
      // color: inherit;
      // background-color: rgba(0, 0, 0, 0);
      // font-size: 1em;
      // line-height:1em;
      // text-align: center;
      // text-decoration: none;
      z-index: 1;
      will-change: opacity, transform;
      @include transition(all .3s ease-out);
  
      .waves-ripple {
          position: absolute;
          border-radius: 50%;
          width: 20px;
          height: 20px;
          margin-top:-10px;
          margin-left:-10px;
          opacity: 0;
  
          background: rgba(0,0,0,0.2);
          // $gradient: rgba(0,0,0,0.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%;
          // background: -webkit-radial-gradient($gradient);
          // background: -o-radial-gradient($gradient);
          // background: -moz-radial-gradient($gradient);
          // background: radial-gradient($gradient);
          @include transition(all 0.7s ease-out);
          -webkit-transition-property: -webkit-transform, opacity;
          -moz-transition-property: -moz-transform, opacity;
          -o-transition-property: -o-transform, opacity;
          transition-property: transform, opacity;
          @include transform(scale(0));
          pointer-events: none;
      }
  
      // Waves Colors
      &.waves-light .waves-ripple {
        background-color: rgba(255, 255, 255, 0.45);
      }
  
      &.waves-red .waves-ripple {
        background-color: rgba(244, 67, 54, .70);
      }
      &.waves-yellow .waves-ripple {
        background-color: rgba(255, 235, 59, .70);
      }
      &.waves-orange .waves-ripple {
        background-color: rgba(255, 152, 0, .70);
      }
      &.waves-purple .waves-ripple {
        background-color: rgba(156, 39, 176, 0.70);
      }
      &.waves-green .waves-ripple {
        background-color: rgba(76, 175, 80, 0.70);
      }
      &.waves-teal .waves-ripple {
        background-color: rgba(0, 150, 136, 0.70);
      }
  
  }
  
  .waves-notransition {
      @include transition(none #{"!important"});
  }
  
  .waves-circle {
      @include transform(translateZ(0));
      -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
  }
  
  // .waves-button,
  // .waves-button:hover,
  // .waves-button:visited,
  // .waves-button-input {
  //     white-space: nowrap;
  //     vertical-align: middle;
  //     cursor: pointer;
  //     border: none;
  //     outline: none;
  //     color: inherit;
  //     background-color: rgba(0, 0, 0, 0);
  //     font-size: 1em;
  //     line-height:1em;
  //     text-align: center;
  //     text-decoration: none;
  //     z-index: 1;
  // }
  
  // .waves-button {
  //     padding: 0.85em 1.1em;
  //     border-radius: 0.2em;
  // }
  
  // .waves-button-input {
  //     margin: 0;
  //     padding: 0.85em 1.1em;
  // }
  
  .waves-input-wrapper {
      border-radius: 0.2em;
      vertical-align: bottom;
  
      // &.waves-button {
      //     padding: 0;
      // }
  
      .waves-button-input {
          position: relative;
          top: 0;
          left: 0;
          z-index: 1;
      }
  }
  
  .waves-circle {
      text-align: center;
      width: 2.5em;
      height: 2.5em;
      line-height: 2.5em;
      border-radius: 50%;
      -webkit-mask-image: none;
  }
  
  // .waves-float {
      // -webkit-mask-image: none;
      // @include box-shadow(0px 1px 1.5px 1px rgba(0, 0, 0, 0.12));
  
      // &:active {
          // @include box-shadow(0px 8px 20px 1px rgba(0, 0, 0, 0.30));
  //     }
  // }
  
  .waves-block {
      display: block;
  }
  
  /* Firefox Bug: link not triggered */
  a.waves-effect .waves-ripple {
      z-index: -1;
  }