material 0.9.27 → 0.9.28
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.
- package/package.json +1 -1
- package/src/skin/material/_variables.scss +30 -0
- package/src/skin/material/button/action.scss +12 -24
- package/src/skin/material/button/button.scss +35 -45
- package/src/skin/material/button/floating.scss +32 -26
- package/src/skin/material/button/raised.scss +32 -26
- package/src/skin/material/button/stroked.scss +20 -18
- package/src/skin/material/component/component.scss +1 -0
- package/src/skin/material/component/progress.scss +16 -11
- package/src/skin/material/component/text.scss +1 -1
- package/src/skin/material/container/appbar.scss +13 -11
- package/src/skin/material/container/dialog.scss +21 -50
- package/src/skin/material/container/tabs.scss +4 -3
- package/src/skin/material/container/toolbar.scss +9 -22
- package/src/skin/material/control/button.scss +29 -25
- package/src/skin/material/control/checkbox.scss +5 -8
- package/src/skin/material/control/progress.scss +16 -11
- package/src/skin/material/control/search.scss +11 -9
- package/src/skin/material/control/slider.scss +16 -32
- package/src/skin/material/control/switch.scss +25 -52
- package/src/skin/material/control/textfield.scss +16 -29
package/package.json
CHANGED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Material Design color variables with defaults
|
|
2
|
+
// These can be overridden by consumers using @use "variables" with (...)
|
|
3
|
+
|
|
4
|
+
// Background colors
|
|
5
|
+
$background-color: #ffffff !default;
|
|
6
|
+
$background-color-dark: #202124 !default;
|
|
7
|
+
|
|
8
|
+
// Surface colors
|
|
9
|
+
$surface-color: #ffffff !default;
|
|
10
|
+
$surface-color-dark: #333333 !default;
|
|
11
|
+
|
|
12
|
+
// Default colors
|
|
13
|
+
$default-color: rgba(0, 0, 0, 1) !default;
|
|
14
|
+
$default-color-dark: rgba(255, 255, 255, 1) !default;
|
|
15
|
+
$default-color-text: rgba(0, 0, 0, 0.87) !default;
|
|
16
|
+
$default-color-text-dark: rgba(255, 255, 255, 0.87) !default;
|
|
17
|
+
$default-color-button: rgba(0, 0, 0, 0.47) !default;
|
|
18
|
+
$default-color-icon: rgba(0, 0, 0, 0.67) !default;
|
|
19
|
+
|
|
20
|
+
// Primary colors
|
|
21
|
+
$primary-color: #6200ee !default;
|
|
22
|
+
$primary-color-dark: #bb86fc !default;
|
|
23
|
+
$primary-color-text: rgba(255, 255, 255, 0.87) !default;
|
|
24
|
+
$primary-color-text-dark: rgba(255, 255, 255, 0.87) !default;
|
|
25
|
+
|
|
26
|
+
// Secondary colors
|
|
27
|
+
$secondary-color: #03dac6 !default;
|
|
28
|
+
$secondary-color-dark: #03dac6 !default;
|
|
29
|
+
$secondary-color-text: rgba(0, 0, 0, 0.87) !default;
|
|
30
|
+
$secondary-color-text-dark: rgba(0, 0, 0, 0.87) !default;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
|
|
2
3
|
// type action
|
|
3
4
|
.button.type-action {
|
|
4
5
|
min-width: 36px;
|
|
5
|
-
transition: box-shadow .2s;
|
|
6
|
+
transition: box-shadow 0.2s;
|
|
6
7
|
box-shadow: none;
|
|
7
8
|
border-radius: 50%;
|
|
8
9
|
padding: 6px;
|
|
@@ -13,11 +14,11 @@
|
|
|
13
14
|
margin-left: 0;
|
|
14
15
|
svg {
|
|
15
16
|
fill: $default-color-text;
|
|
16
|
-
|
|
17
|
-
// styles
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
20
|
+
|
|
21
|
+
// styles
|
|
21
22
|
.button.type-action {
|
|
22
23
|
&.style-dense,
|
|
23
24
|
&.style-compact {
|
|
@@ -32,28 +33,18 @@
|
|
|
32
33
|
width: 20px;
|
|
33
34
|
height: 20px;
|
|
34
35
|
viewbox: 0 0 20 20;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
// states
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
|
-
.button.type-action {
|
|
43
|
-
&:hover {
|
|
44
|
-
//background-color: #E0E0E0;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&:focus {
|
|
48
|
-
//background-color: darken(rgba(255, 255, 255, 0.95), 5%)
|
|
49
|
-
}
|
|
50
40
|
|
|
41
|
+
// states
|
|
42
|
+
.button.type-action {
|
|
51
43
|
.material-ripple {
|
|
52
|
-
//background-color: rgba(255, 255, 255, 1)
|
|
53
|
-
|
|
54
|
-
// color
|
|
55
44
|
}
|
|
56
45
|
}
|
|
46
|
+
|
|
47
|
+
// color
|
|
57
48
|
.button.type-action {
|
|
58
49
|
&.primary-color {
|
|
59
50
|
background-color: $primary-color;
|
|
@@ -64,7 +55,7 @@
|
|
|
64
55
|
}
|
|
65
56
|
}
|
|
66
57
|
&:focus {
|
|
67
|
-
background-color:
|
|
58
|
+
background-color: color.adjust($primary-color, $lightness: 10%);
|
|
68
59
|
color: $primary-color-text;
|
|
69
60
|
}
|
|
70
61
|
}
|
|
@@ -77,18 +68,15 @@
|
|
|
77
68
|
}
|
|
78
69
|
}
|
|
79
70
|
&:focus {
|
|
80
|
-
background-color:
|
|
71
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
81
72
|
color: $secondary-color-text;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// theme
|
|
85
73
|
}
|
|
86
74
|
}
|
|
87
75
|
}
|
|
76
|
+
|
|
77
|
+
// theme
|
|
88
78
|
.dark-mode .button.type-action,
|
|
89
79
|
.button.type-action.dark-mode {
|
|
90
|
-
|
|
91
|
-
//background-color: rgba(255, 255, 255, 0.95)
|
|
92
80
|
color: $primary-color-text-dark;
|
|
93
81
|
|
|
94
82
|
&.primary-color {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
.button {
|
|
2
3
|
display: flex;
|
|
3
4
|
-webkit-font-smoothing: antialiased;
|
|
@@ -64,20 +65,19 @@
|
|
|
64
65
|
}
|
|
65
66
|
.button-label {
|
|
66
67
|
order: 1;
|
|
67
|
-
|
|
68
|
-
// states
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
}
|
|
71
|
+
|
|
72
|
+
// states
|
|
72
73
|
.button {
|
|
73
74
|
&.is-disabled {
|
|
74
75
|
pointer-events: none;
|
|
75
|
-
opacity: .3;
|
|
76
|
+
opacity: 0.3;
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
&:focus {
|
|
79
|
-
|
|
80
|
-
transition-duration: .3s;
|
|
80
|
+
transition-duration: 0.3s;
|
|
81
81
|
background-color: rgba($default-color-text, 0.05);
|
|
82
82
|
&:hover {
|
|
83
83
|
background-color: rgba($default-color-text, 0.05);
|
|
@@ -85,24 +85,21 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&:active {
|
|
88
|
-
transition-duration: .2s;
|
|
89
|
-
&:focus {
|
|
90
|
-
//transition-delay: .2s
|
|
91
|
-
}
|
|
88
|
+
transition-duration: 0.2s;
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
&:hover {
|
|
95
|
-
transition-duration: .2s;
|
|
92
|
+
transition-duration: 0.2s;
|
|
96
93
|
background-color: rgba($default-color-text, 0.03);
|
|
97
94
|
}
|
|
98
95
|
|
|
99
96
|
&:disabled {
|
|
100
97
|
pointer-events: none;
|
|
101
|
-
opacity: .3;
|
|
102
|
-
|
|
103
|
-
// styles
|
|
98
|
+
opacity: 0.3;
|
|
104
99
|
}
|
|
105
100
|
}
|
|
101
|
+
|
|
102
|
+
// styles
|
|
106
103
|
.button {
|
|
107
104
|
&.style-compact {
|
|
108
105
|
> .button-label {
|
|
@@ -117,22 +114,22 @@
|
|
|
117
114
|
font-size: 0.8125rem;
|
|
118
115
|
padding-top: 2px;
|
|
119
116
|
padding-bottom: 2px;
|
|
120
|
-
|
|
121
|
-
// color
|
|
122
117
|
}
|
|
123
118
|
}
|
|
124
119
|
}
|
|
120
|
+
|
|
121
|
+
// color
|
|
125
122
|
.button {
|
|
126
123
|
&.primary-color {
|
|
127
124
|
color: $primary-color;
|
|
128
125
|
&:focus {
|
|
129
|
-
background-color: rgba($primary-color, .1);
|
|
126
|
+
background-color: rgba($primary-color, 0.1);
|
|
130
127
|
&:hover {
|
|
131
|
-
background-color: rgba($primary-color, .1);
|
|
128
|
+
background-color: rgba($primary-color, 0.1);
|
|
132
129
|
}
|
|
133
130
|
}
|
|
134
131
|
&:hover {
|
|
135
|
-
background-color: rgba($primary-color, .05);
|
|
132
|
+
background-color: rgba($primary-color, 0.05);
|
|
136
133
|
}
|
|
137
134
|
|
|
138
135
|
.button-icon {
|
|
@@ -142,7 +139,7 @@
|
|
|
142
139
|
}
|
|
143
140
|
|
|
144
141
|
.material-ripple {
|
|
145
|
-
background-color: rgba($primary-color, .1);
|
|
142
|
+
background-color: rgba($primary-color, 0.1);
|
|
146
143
|
}
|
|
147
144
|
}
|
|
148
145
|
|
|
@@ -154,21 +151,21 @@
|
|
|
154
151
|
}
|
|
155
152
|
}
|
|
156
153
|
.material-ripple {
|
|
157
|
-
background-color: rgba($secondary-color, .1);
|
|
154
|
+
background-color: rgba($secondary-color, 0.1);
|
|
158
155
|
}
|
|
159
156
|
&:focus {
|
|
160
|
-
background-color: rgba($secondary-color, .
|
|
157
|
+
background-color: rgba($secondary-color, 0.1);
|
|
161
158
|
&:hover {
|
|
162
|
-
background-color: rgba($secondary-color, .
|
|
159
|
+
background-color: rgba($secondary-color, 0.1);
|
|
163
160
|
}
|
|
164
161
|
}
|
|
165
162
|
&:hover {
|
|
166
|
-
background-color: rgba($secondary-color, .05);
|
|
167
|
-
|
|
168
|
-
// theme
|
|
163
|
+
background-color: rgba($secondary-color, 0.05);
|
|
169
164
|
}
|
|
170
165
|
}
|
|
171
166
|
}
|
|
167
|
+
|
|
168
|
+
// theme
|
|
172
169
|
.dark-mode .button,
|
|
173
170
|
.button.dark-mode {
|
|
174
171
|
color: $default-color-text-dark;
|
|
@@ -178,21 +175,14 @@
|
|
|
178
175
|
}
|
|
179
176
|
}
|
|
180
177
|
.material-ripple {
|
|
181
|
-
background-color: rgba($default-color-text-dark, .1);
|
|
182
|
-
}
|
|
183
|
-
&:focus {
|
|
184
|
-
//background-color: rgba($default-color-text-dark, .1)
|
|
185
|
-
&:hover {
|
|
186
|
-
//background-color: rgba($default-color-text-dark, .1)
|
|
187
|
-
}
|
|
178
|
+
background-color: rgba($default-color-text-dark, 0.1);
|
|
188
179
|
}
|
|
189
180
|
&:hover {
|
|
190
|
-
background-color: rgba($default-color-text-dark, .05);
|
|
181
|
+
background-color: rgba($default-color-text-dark, 0.05);
|
|
182
|
+
}
|
|
191
183
|
|
|
192
184
|
// primary color
|
|
193
|
-
}
|
|
194
185
|
&.primary-color {
|
|
195
|
-
//background-color: $primary-color;
|
|
196
186
|
color: $primary-color-dark;
|
|
197
187
|
.button-icon {
|
|
198
188
|
svg {
|
|
@@ -200,20 +190,20 @@
|
|
|
200
190
|
}
|
|
201
191
|
}
|
|
202
192
|
.material-ripple {
|
|
203
|
-
background-color: rgba($primary-color-dark, .3);
|
|
193
|
+
background-color: rgba($primary-color-dark, 0.3);
|
|
204
194
|
}
|
|
205
195
|
&:focus {
|
|
206
|
-
background-color: rgba($primary-color-dark, .2);
|
|
196
|
+
background-color: rgba($primary-color-dark, 0.2);
|
|
207
197
|
&:hover {
|
|
208
|
-
background-color: rgba($primary-color-dark, .2);
|
|
198
|
+
background-color: rgba($primary-color-dark, 0.2);
|
|
209
199
|
}
|
|
210
200
|
}
|
|
211
201
|
&:hover {
|
|
212
|
-
background-color: rgba($primary-color-dark, .1);
|
|
213
|
-
|
|
214
|
-
// secondary color
|
|
202
|
+
background-color: rgba($primary-color-dark, 0.1);
|
|
215
203
|
}
|
|
216
204
|
}
|
|
205
|
+
|
|
206
|
+
// secondary color
|
|
217
207
|
&.secondary-color {
|
|
218
208
|
color: $secondary-color-dark;
|
|
219
209
|
.button-icon {
|
|
@@ -222,18 +212,18 @@
|
|
|
222
212
|
}
|
|
223
213
|
}
|
|
224
214
|
.material-ripple {
|
|
225
|
-
background-color: rgba($secondary-color-dark, .3);
|
|
215
|
+
background-color: rgba($secondary-color-dark, 0.3);
|
|
226
216
|
}
|
|
227
217
|
|
|
228
218
|
&:focus {
|
|
229
|
-
background-color: rgba($secondary-color-dark, .2);
|
|
219
|
+
background-color: rgba($secondary-color-dark, 0.2);
|
|
230
220
|
&:hover {
|
|
231
|
-
background-color: rgba($secondary-color-dark, .2);
|
|
221
|
+
background-color: rgba($secondary-color-dark, 0.2);
|
|
232
222
|
}
|
|
233
223
|
}
|
|
234
224
|
|
|
235
225
|
&:hover {
|
|
236
|
-
background-color: rgba($secondary-color-dark, .1);
|
|
226
|
+
background-color: rgba($secondary-color-dark, 0.1);
|
|
237
227
|
}
|
|
238
228
|
}
|
|
239
229
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
|
|
2
3
|
// type floating
|
|
3
4
|
.button.type-floating {
|
|
4
5
|
min-width: 56px;
|
|
5
6
|
min-height: 56px;
|
|
6
|
-
transition: box-shadow .2s;
|
|
7
|
+
transition: box-shadow 0.2s;
|
|
7
8
|
border-radius: 28px;
|
|
8
9
|
padding: 6px;
|
|
9
|
-
box-shadow:
|
|
10
|
+
box-shadow:
|
|
11
|
+
0px 3px 5px -1px rgba(0, 0, 0, 0.2),
|
|
12
|
+
0px 6px 10px 0px rgba(0, 0, 0, 0.14),
|
|
13
|
+
0px 1px 18px 0px rgba(0, 0, 0, 0.12);
|
|
10
14
|
.button-label {
|
|
11
15
|
display: none;
|
|
12
16
|
}
|
|
@@ -20,12 +24,12 @@
|
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
.material-ripple {
|
|
23
|
-
opacity: .1;
|
|
27
|
+
opacity: 0.1;
|
|
24
28
|
background-color: rgba(0, 0, 0, 1);
|
|
25
|
-
|
|
26
|
-
// states
|
|
27
29
|
}
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
// states
|
|
29
33
|
.button.type-floating {
|
|
30
34
|
background-color: rgba(0, 0, 0, 0.05);
|
|
31
35
|
&:focus {
|
|
@@ -38,11 +42,14 @@
|
|
|
38
42
|
background-color: rgba(0, 0, 0, 0.1);
|
|
39
43
|
}
|
|
40
44
|
&:active {
|
|
41
|
-
box-shadow:
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
box-shadow:
|
|
46
|
+
0px 7px 8px -4px rgba(0, 0, 0, 0.2),
|
|
47
|
+
0px 12px 17px 2px rgba(0, 0, 0, 0.14),
|
|
48
|
+
0px 5px 22px 4px rgba(0, 0, 0, 0.12);
|
|
44
49
|
}
|
|
45
50
|
}
|
|
51
|
+
|
|
52
|
+
// color
|
|
46
53
|
.button.type-floating {
|
|
47
54
|
&.primary-color {
|
|
48
55
|
background-color: $primary-color;
|
|
@@ -53,18 +60,18 @@
|
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
.material-ripple {
|
|
56
|
-
opacity: .3;
|
|
63
|
+
opacity: 0.3;
|
|
57
64
|
background-color: $default-color-dark;
|
|
58
65
|
}
|
|
59
66
|
|
|
60
67
|
&:focus {
|
|
61
|
-
background-color:
|
|
68
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
62
69
|
&:hover {
|
|
63
|
-
background-color:
|
|
70
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
64
71
|
}
|
|
65
72
|
}
|
|
66
73
|
&:hover {
|
|
67
|
-
background-color:
|
|
74
|
+
background-color: color.adjust($primary-color, $lightness: 7%);
|
|
68
75
|
}
|
|
69
76
|
}
|
|
70
77
|
|
|
@@ -77,26 +84,26 @@
|
|
|
77
84
|
}
|
|
78
85
|
}
|
|
79
86
|
.material-ripple {
|
|
80
|
-
opacity: .3;
|
|
87
|
+
opacity: 0.3;
|
|
81
88
|
background-color: $default-color-dark;
|
|
82
89
|
}
|
|
83
90
|
&:focus {
|
|
84
|
-
background-color:
|
|
91
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
85
92
|
&:hover {
|
|
86
|
-
background-color:
|
|
93
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
87
94
|
}
|
|
88
95
|
}
|
|
89
96
|
&:hover {
|
|
90
|
-
background-color:
|
|
91
|
-
|
|
92
|
-
// theme
|
|
97
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
93
98
|
}
|
|
94
99
|
}
|
|
95
100
|
}
|
|
101
|
+
|
|
102
|
+
// theme
|
|
96
103
|
.dark-mode .button.type-floating,
|
|
97
104
|
.button.type-floating.dark-mode {
|
|
98
105
|
.material-ripple {
|
|
99
|
-
opacity: .1;
|
|
106
|
+
opacity: 0.1;
|
|
100
107
|
background-color: rgba(255, 255, 255, 1);
|
|
101
108
|
}
|
|
102
109
|
background-color: rgba(255, 255, 255, 0.1);
|
|
@@ -108,7 +115,6 @@
|
|
|
108
115
|
}
|
|
109
116
|
&:hover {
|
|
110
117
|
background-color: rgba(255, 255, 255, 0.15);
|
|
111
|
-
//background-color: rgba(255, 255, 255, 0.95)
|
|
112
118
|
}
|
|
113
119
|
color: $primary-color-text-dark;
|
|
114
120
|
.button-icon {
|
|
@@ -125,13 +131,13 @@
|
|
|
125
131
|
}
|
|
126
132
|
}
|
|
127
133
|
&:focus {
|
|
128
|
-
background-color:
|
|
134
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
129
135
|
&:hover {
|
|
130
|
-
background-color:
|
|
136
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
131
137
|
}
|
|
132
138
|
}
|
|
133
139
|
&:hover {
|
|
134
|
-
background-color:
|
|
140
|
+
background-color: color.adjust($primary-color, $lightness: 7%);
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
|
|
@@ -144,13 +150,13 @@
|
|
|
144
150
|
}
|
|
145
151
|
}
|
|
146
152
|
&:focus {
|
|
147
|
-
background-color:
|
|
153
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
148
154
|
&:hover {
|
|
149
|
-
background-color:
|
|
155
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
158
|
&:hover {
|
|
153
|
-
background-color:
|
|
159
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
154
160
|
}
|
|
155
161
|
}
|
|
156
162
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
|
|
2
3
|
// type raised
|
|
3
4
|
.button.type-raised {
|
|
4
5
|
min-width: 36px;
|
|
5
|
-
transition: box-shadow .2s;
|
|
6
|
-
box-shadow:
|
|
6
|
+
transition: box-shadow 0.2s;
|
|
7
|
+
box-shadow:
|
|
8
|
+
0 2px 2px 0 rgba(0, 0, 0, 0.14),
|
|
9
|
+
0 3px 1px -2px rgba(0, 0, 0, 0.2),
|
|
10
|
+
0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
|
7
11
|
.material-ripple {
|
|
8
|
-
opacity: .1;
|
|
12
|
+
opacity: 0.1;
|
|
9
13
|
background-color: rgba(0, 0, 0, 1);
|
|
10
|
-
|
|
11
|
-
// states
|
|
12
14
|
}
|
|
13
15
|
}
|
|
16
|
+
|
|
17
|
+
// states
|
|
14
18
|
.button.type-raised {
|
|
15
19
|
background-color: rgba(0, 0, 0, 0.05);
|
|
16
20
|
&:focus {
|
|
@@ -23,11 +27,14 @@
|
|
|
23
27
|
background-color: rgba(0, 0, 0, 0.1);
|
|
24
28
|
}
|
|
25
29
|
&:active {
|
|
26
|
-
box-shadow:
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
box-shadow:
|
|
31
|
+
0px 4px 4px -3px rgba(0, 0, 0, 0.2),
|
|
32
|
+
0px 6px 8px 1px rgba(0, 0, 0, 0.14),
|
|
33
|
+
0px 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
29
34
|
}
|
|
30
35
|
}
|
|
36
|
+
|
|
37
|
+
// color
|
|
31
38
|
.button.type-raised {
|
|
32
39
|
&.primary-color {
|
|
33
40
|
background-color: $primary-color;
|
|
@@ -38,18 +45,18 @@
|
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
.material-ripple {
|
|
41
|
-
opacity: .3;
|
|
48
|
+
opacity: 0.3;
|
|
42
49
|
background-color: $default-color-dark;
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
&:focus {
|
|
46
|
-
background-color:
|
|
53
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
47
54
|
&:hover {
|
|
48
|
-
background-color:
|
|
55
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
49
56
|
}
|
|
50
57
|
}
|
|
51
58
|
&:hover {
|
|
52
|
-
background-color:
|
|
59
|
+
background-color: color.adjust($primary-color, $lightness: 7%);
|
|
53
60
|
}
|
|
54
61
|
}
|
|
55
62
|
|
|
@@ -62,26 +69,26 @@
|
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
.material-ripple {
|
|
65
|
-
opacity: .3;
|
|
72
|
+
opacity: 0.3;
|
|
66
73
|
background-color: $default-color-dark;
|
|
67
74
|
}
|
|
68
75
|
&:focus {
|
|
69
|
-
background-color:
|
|
76
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
70
77
|
&:hover {
|
|
71
|
-
background-color:
|
|
78
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
&:hover {
|
|
75
|
-
background-color:
|
|
76
|
-
|
|
77
|
-
// theme
|
|
82
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
85
|
}
|
|
86
|
+
|
|
87
|
+
// theme
|
|
81
88
|
.dark-mode .button.type-raised,
|
|
82
89
|
.button.type-raised.dark-mode {
|
|
83
90
|
.material-ripple {
|
|
84
|
-
opacity: .1;
|
|
91
|
+
opacity: 0.1;
|
|
85
92
|
background-color: rgba(255, 255, 255, 1);
|
|
86
93
|
}
|
|
87
94
|
background-color: rgba(255, 255, 255, 0.1);
|
|
@@ -93,7 +100,6 @@
|
|
|
93
100
|
}
|
|
94
101
|
&:hover {
|
|
95
102
|
background-color: rgba(255, 255, 255, 0.15);
|
|
96
|
-
//background-color: rgba(255, 255, 255, 0.95)
|
|
97
103
|
}
|
|
98
104
|
color: $primary-color-text-dark;
|
|
99
105
|
.button-icon {
|
|
@@ -110,13 +116,13 @@
|
|
|
110
116
|
}
|
|
111
117
|
}
|
|
112
118
|
&:focus {
|
|
113
|
-
background-color:
|
|
119
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
114
120
|
&:hover {
|
|
115
|
-
background-color:
|
|
121
|
+
background-color: color.adjust($primary-color, $lightness: 15%);
|
|
116
122
|
}
|
|
117
123
|
}
|
|
118
124
|
&:hover {
|
|
119
|
-
background-color:
|
|
125
|
+
background-color: color.adjust($primary-color, $lightness: 7%);
|
|
120
126
|
}
|
|
121
127
|
}
|
|
122
128
|
|
|
@@ -129,13 +135,13 @@
|
|
|
129
135
|
}
|
|
130
136
|
}
|
|
131
137
|
&:focus {
|
|
132
|
-
background-color:
|
|
138
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
133
139
|
&:hover {
|
|
134
|
-
background-color:
|
|
140
|
+
background-color: color.adjust($secondary-color, $lightness: 10%);
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
&:hover {
|
|
138
|
-
background-color:
|
|
144
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
139
145
|
}
|
|
140
146
|
}
|
|
141
147
|
}
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
+
@use "sass:color";
|
|
1
2
|
|
|
2
3
|
// type stroked
|
|
3
4
|
.button.type-stroked {
|
|
4
5
|
min-width: 36px;
|
|
5
|
-
transition: box-shadow .2s;
|
|
6
|
-
box-shadow:
|
|
6
|
+
transition: box-shadow 0.2s;
|
|
7
|
+
box-shadow:
|
|
8
|
+
0 2px 2px 0 rgba(0, 0, 0, 0.14),
|
|
9
|
+
0 3px 1px -2px rgba(0, 0, 0, 0.2),
|
|
10
|
+
0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
|
7
11
|
.material-ripple {
|
|
8
|
-
background-color: rgba(255, 255, 255, .3);
|
|
9
|
-
|
|
10
|
-
// states
|
|
12
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
11
13
|
}
|
|
12
14
|
}
|
|
15
|
+
|
|
16
|
+
// states
|
|
13
17
|
.button.type-stroked {
|
|
14
|
-
&:hover {
|
|
15
|
-
//background-color: #E0E0E0;
|
|
16
|
-
}
|
|
17
18
|
&:focus {
|
|
18
|
-
background-color:
|
|
19
|
+
background-color: color.adjust(rgba(255, 255, 255, 0.95), $lightness: -5%);
|
|
19
20
|
&:active {
|
|
20
21
|
background-color: transparent;
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
&:active {
|
|
24
|
-
box-shadow:
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
box-shadow:
|
|
26
|
+
0px 4px 4px -3px rgba(0, 0, 0, 0.2),
|
|
27
|
+
0px 6px 8px 1px rgba(0, 0, 0, 0.14),
|
|
28
|
+
0px 3px 14px 2px rgba(0, 0, 0, 0.12);
|
|
27
29
|
}
|
|
28
30
|
}
|
|
31
|
+
|
|
32
|
+
// color
|
|
29
33
|
.button.type-stroked {
|
|
30
34
|
&.primary-color {
|
|
31
35
|
background-color: $primary-color;
|
|
@@ -36,7 +40,7 @@
|
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
&:focus {
|
|
39
|
-
background-color:
|
|
43
|
+
background-color: color.adjust($primary-color, $lightness: 10%);
|
|
40
44
|
color: $primary-color-text;
|
|
41
45
|
&:active {
|
|
42
46
|
background-color: $primary-color;
|
|
@@ -54,20 +58,18 @@
|
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
&:focus {
|
|
57
|
-
background-color:
|
|
61
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
58
62
|
color: $secondary-color-text;
|
|
59
63
|
&:active {
|
|
60
64
|
background-color: $secondary-color;
|
|
61
|
-
|
|
62
|
-
// theme
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
}
|
|
69
|
+
|
|
70
|
+
// theme
|
|
67
71
|
.dark-mode .button.type-stroked,
|
|
68
72
|
.button.type-stroked.dark-mode {
|
|
69
|
-
|
|
70
|
-
//background-color: rgba(255, 255, 255, 0.95)
|
|
71
73
|
color: $primary-color-text-dark;
|
|
72
74
|
.button-icon {
|
|
73
75
|
svg {
|