matcha-theme 1.0.22 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,14 @@
5
5
  $background: map-get($theme, background);
6
6
  $foreground: map-get($theme, foreground);
7
7
 
8
+ $colorNames: red, pink, purple, deep-purple, indigo, blue, light-blue, cyan, teal, green, light-green, lime, yellow,
9
+ amber, orange, deep-orange;
10
+
8
11
  .matcha-button {
9
12
  border: 0px solid currentColor;
10
13
  transition: all 50ms linear;
14
+ overflow: hidden;
15
+ position: relative;
11
16
  &-xs {
12
17
  font-size: 14px;
13
18
  padding: $spacing-inline-s;
@@ -76,11 +81,11 @@
76
81
  }
77
82
  }
78
83
  &:hover{
79
- filter: brightness(1.1);
84
+ // filter: brightness(1.1);
80
85
  }
81
86
 
82
87
  &:active{
83
- filter: brightness(0.9);
88
+ // filter: brightness(0.9);
84
89
  }
85
90
 
86
91
  &-outline {
@@ -102,5 +107,82 @@
102
107
  text-decoration: underline;
103
108
  padding: 0;
104
109
  }
110
+ .ripple {
111
+ position: absolute;
112
+ background: rgba(0,0,0,.15);
113
+ border-radius: 999px;
114
+ transform: scale(0);
115
+ pointer-events: none;
116
+ }
117
+ .ripple.show {
118
+ animation: ripple 500ms ease-out;
119
+ }
120
+
121
+ @keyframes ripple {
122
+ 0% {
123
+ opacity: 0;
124
+ transform: scale(0);
125
+ }
126
+ 30% {
127
+ opacity: 0.15;
128
+ }
129
+ 100% {
130
+ opacity: 0;
131
+ transform: scale(2);
132
+ }
133
+ }
134
+ }
135
+
136
+ .matcha-button.matcha-button-outline{
137
+ .ripple {
138
+ opacity: 0.2;
139
+ }
140
+ }
141
+ .matcha-button.primary:not(.matcha-button-outline) {
142
+ .ripple {
143
+ background: map-color($primary, default-contrast)!important;
144
+ opacity: 0.2;
145
+ }
146
+ }
147
+ .matcha-button.accent:not(.matcha-button-outline) {
148
+ .ripple {
149
+ background: map-color($accent, default-contrast)!important;
150
+ opacity: 0.2;
151
+ }
152
+ }
153
+ .matcha-button.warn:not(.matcha-button-outline) {
154
+ .ripple {
155
+ background: map-color($warn, default-contrast)!important;
156
+ opacity: 0.2;
157
+ }
158
+ }
159
+ .matcha-button.primary.matcha-button-outline {
160
+ .ripple {
161
+ background: map-color($primary, default)!important;
162
+ opacity: 0.2;
163
+ }
164
+ }
165
+ .matcha-button.accent.matcha-button-outline {
166
+ .ripple {
167
+ background: map-color($accent, default)!important;
168
+ opacity: 0.2;
169
+ }
170
+ }
171
+ .matcha-button.warn.matcha-button-outline {
172
+ .ripple {
173
+ background: map-color($warn, default)!important;
174
+ opacity: 0.2;
175
+ }
176
+ }
177
+
178
+ @each $color in $colorNames {
179
+ .matcha-button.#{$color} {
180
+ .ripple {
181
+ background: map-color($background, $color)!important;
182
+ opacity: 0.5;
183
+ filter: brightness(0.7);
184
+ }
185
+ }
105
186
  }
187
+
106
188
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "styles for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {