material 0.9.26 → 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/base/body.scss +14 -33
- package/src/skin/material/base/elevation.scss +0 -1
- package/src/skin/material/base/grid.scss +7 -11
- package/src/skin/material/base/typo.scss +22 -23
- package/src/skin/material/button/action.scss +13 -37
- package/src/skin/material/button/button.scss +50 -66
- package/src/skin/material/button/file.scss +1 -1
- package/src/skin/material/button/floating.scss +36 -34
- package/src/skin/material/button/raised.scss +36 -34
- package/src/skin/material/button/stroked.scss +25 -28
- package/src/skin/material/component/component.scss +3 -5
- package/src/skin/material/component/divider.scss +0 -1
- package/src/skin/material/component/image.scss +0 -1
- package/src/skin/material/component/label.scss +0 -1
- package/src/skin/material/component/progress.scss +38 -43
- package/src/skin/material/component/subheader.scss +0 -1
- package/src/skin/material/component/text.scss +14 -15
- package/src/skin/material/container/appbar.scss +24 -35
- package/src/skin/material/container/banner.scss +1 -2
- package/src/skin/material/container/card.scss +0 -1
- package/src/skin/material/container/dialog.scss +33 -66
- package/src/skin/material/container/drawer.scss +14 -23
- package/src/skin/material/container/menu.scss +5 -8
- package/src/skin/material/container/tabs.scss +6 -6
- package/src/skin/material/container/toolbar.scss +19 -46
- package/src/skin/material/control/button.scss +43 -42
- package/src/skin/material/control/checkbox.scss +17 -23
- package/src/skin/material/control/colorpicker.scss +9 -11
- package/src/skin/material/control/menu.scss +2 -6
- package/src/skin/material/control/progress.scss +38 -41
- package/src/skin/material/control/search.scss +12 -11
- package/src/skin/material/control/selecter.scss +5 -7
- package/src/skin/material/control/selector.scss +0 -2
- package/src/skin/material/control/slider.scss +33 -51
- package/src/skin/material/control/snackbar.scss +1 -4
- package/src/skin/material/control/switch.scss +44 -75
- package/src/skin/material/control/switcher.scss +0 -1
- package/src/skin/material/control/textfield.scss +33 -53
- package/src/skin/material/control/tooltip.scss +1 -3
- package/src/skin/material/layout/layout.scss +17 -21
- package/src/skin/material/layout/resizer.scss +16 -36
- package/src/skin/material/module/ripple.scss +0 -1
- package/src/skin/material/view/calendar.scss +13 -18
- package/src/skin/material/view/form.scss +1 -2
- package/src/skin/material/view/grid.scss +7 -8
- package/src/skin/material/view/list.scss +6 -8
- package/src/skin/material/view/listview.scss +10 -17
- package/src/skin/material/view/map.scss +0 -1
- package/src/skin/material/view/page.scss +0 -1
- package/src/skin/material/view/tabview-bak.scss +0 -1
- package/src/skin/material/view/tabview.scss +2 -4
- package/src/skin/material/view/tree.scss +6 -7
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;
|
|
@@ -5,13 +5,11 @@ html {
|
|
|
5
5
|
line-height: 1.15;
|
|
6
6
|
width: 100%;
|
|
7
7
|
height: 100%;
|
|
8
|
-
|
|
9
8
|
}
|
|
9
|
+
|
|
10
10
|
body {
|
|
11
11
|
color: rgba(0, 0, 0, 0.67);
|
|
12
|
-
font-family: Roboto, arial, serif
|
|
13
|
-
/* empty */
|
|
14
|
-
}
|
|
12
|
+
font-family: Roboto, arial, serif;
|
|
15
13
|
font-size: 100%;
|
|
16
14
|
// position: relative
|
|
17
15
|
// display: block
|
|
@@ -21,28 +19,18 @@ body {
|
|
|
21
19
|
margin: 0;
|
|
22
20
|
padding: 0;
|
|
23
21
|
// user-select: none
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
input, {
|
|
27
|
-
/* empty */
|
|
28
|
-
}
|
|
29
|
-
textarea, {
|
|
30
|
-
/* empty */
|
|
31
|
-
}
|
|
32
|
-
keygen, {
|
|
33
|
-
/* empty */
|
|
34
|
-
}
|
|
35
|
-
select, {
|
|
36
|
-
/* empty */
|
|
37
22
|
}
|
|
23
|
+
|
|
24
|
+
input,
|
|
25
|
+
textarea,
|
|
26
|
+
keygen,
|
|
27
|
+
select,
|
|
38
28
|
button {
|
|
39
29
|
font-size: 1em;
|
|
40
|
-
font-family: Roboto, arial, serif
|
|
41
|
-
/* empty */
|
|
42
|
-
}
|
|
30
|
+
font-family: Roboto, arial, serif;
|
|
43
31
|
color: rgb(51, 51, 51);
|
|
44
|
-
|
|
45
32
|
}
|
|
33
|
+
|
|
46
34
|
p {
|
|
47
35
|
line-height: 20px;
|
|
48
36
|
padding-top: 6px;
|
|
@@ -52,22 +40,16 @@ p {
|
|
|
52
40
|
|
|
53
41
|
// get rid of outline
|
|
54
42
|
}
|
|
55
|
-
select,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
input, {
|
|
59
|
-
/* empty */
|
|
60
|
-
}
|
|
61
|
-
textarea, {
|
|
62
|
-
/* empty */
|
|
63
|
-
}
|
|
43
|
+
select,
|
|
44
|
+
input,
|
|
45
|
+
textarea,
|
|
64
46
|
button {
|
|
65
47
|
outline: none;
|
|
66
48
|
&:hover {
|
|
67
49
|
outline: none;
|
|
68
|
-
|
|
69
50
|
}
|
|
70
51
|
}
|
|
52
|
+
|
|
71
53
|
button {
|
|
72
54
|
user-select: none;
|
|
73
55
|
|
|
@@ -75,9 +57,8 @@ button {
|
|
|
75
57
|
}
|
|
76
58
|
* {
|
|
77
59
|
box-sizing: border-box;
|
|
78
|
-
|
|
79
60
|
}
|
|
61
|
+
|
|
80
62
|
a {
|
|
81
63
|
color: rgba(0, 0, 0, 0.7);
|
|
82
|
-
|
|
83
64
|
}
|
|
@@ -24,29 +24,26 @@ $total-width: gridsystem-width($columns);
|
|
|
24
24
|
@mixin clearfix() {
|
|
25
25
|
*zoom:1;
|
|
26
26
|
|
|
27
|
-
&:before,
|
|
28
|
-
/* empty */
|
|
29
|
-
}
|
|
27
|
+
&:before,
|
|
30
28
|
&:after {
|
|
31
29
|
content:"";
|
|
32
30
|
display:table;
|
|
33
|
-
|
|
34
31
|
}
|
|
32
|
+
|
|
35
33
|
&:after {
|
|
36
34
|
clear:both;
|
|
37
35
|
|
|
38
36
|
//////////
|
|
39
37
|
// GRID //
|
|
40
38
|
//////////
|
|
41
|
-
|
|
42
39
|
}
|
|
43
40
|
}
|
|
41
|
+
|
|
44
42
|
body {
|
|
45
43
|
width: 100%;
|
|
46
44
|
@include clearfix();
|
|
47
|
-
|
|
48
|
-
|
|
49
45
|
}
|
|
46
|
+
|
|
50
47
|
@mixin row($columns:$columns) {
|
|
51
48
|
display: block;
|
|
52
49
|
width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns));
|
|
@@ -54,8 +51,8 @@ body {
|
|
|
54
51
|
// *width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns))-$correction
|
|
55
52
|
// *margin: 0 $total-width*((($gutter-width*.5)/gridsystem-width($columns))*-1)-$correction
|
|
56
53
|
@include clearfix();
|
|
57
|
-
|
|
58
54
|
}
|
|
55
|
+
|
|
59
56
|
@mixin column($x,$columns:$columns) {
|
|
60
57
|
display: inline;
|
|
61
58
|
float: left;
|
|
@@ -63,13 +60,12 @@ body {
|
|
|
63
60
|
margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns));
|
|
64
61
|
// *width: $total-width*(((($gutter-width+$column-width)*$x)-$gutter-width) / gridsystem-width($columns))-$correction
|
|
65
62
|
// *margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns))-$correction
|
|
66
|
-
|
|
67
63
|
}
|
|
64
|
+
|
|
68
65
|
@mixin push($offset:1) {
|
|
69
66
|
margin-left: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns));
|
|
70
|
-
|
|
71
67
|
}
|
|
68
|
+
|
|
72
69
|
@mixin pull($offset:1) {
|
|
73
70
|
margin-right: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns));
|
|
74
|
-
|
|
75
71
|
}
|
|
@@ -4,130 +4,129 @@
|
|
|
4
4
|
font-weight: 300;
|
|
5
5
|
letter-spacing: -0.04em;
|
|
6
6
|
line-height: 7rem;
|
|
7
|
-
|
|
8
7
|
}
|
|
8
|
+
|
|
9
9
|
&.type-display3 {
|
|
10
10
|
font-size: 3.5rem;
|
|
11
11
|
font-weight: 400;
|
|
12
12
|
letter-spacing: -0.02em;
|
|
13
13
|
line-height: 3.5rem;
|
|
14
|
-
|
|
15
14
|
}
|
|
15
|
+
|
|
16
16
|
&.type-display2 {
|
|
17
17
|
font-size: 2.813rem;
|
|
18
18
|
font-weight: 400;
|
|
19
19
|
letter-spacing: normal;
|
|
20
20
|
line-height: 3rem;
|
|
21
|
-
|
|
22
21
|
}
|
|
22
|
+
|
|
23
23
|
&.type-display1 {
|
|
24
24
|
font-size: 2.125rem;
|
|
25
25
|
font-weight: 400;
|
|
26
26
|
letter-spacing: normal;
|
|
27
27
|
line-height: 2.5rem;
|
|
28
|
-
|
|
29
28
|
}
|
|
29
|
+
|
|
30
30
|
&.type-headline {
|
|
31
31
|
font-size: 1.5rem;
|
|
32
32
|
font-weight: 400;
|
|
33
33
|
letter-spacing: normal;
|
|
34
34
|
line-height: 2rem;
|
|
35
|
-
|
|
36
35
|
}
|
|
36
|
+
|
|
37
37
|
&.type-title {
|
|
38
38
|
font-size: 1.25rem;
|
|
39
39
|
font-weight: 500;
|
|
40
40
|
letter-spacing: 0.02em;
|
|
41
41
|
line-height: 2rem;
|
|
42
|
-
|
|
43
42
|
}
|
|
43
|
+
|
|
44
44
|
&.type-subheading2 {
|
|
45
45
|
font-size: 1rem;
|
|
46
46
|
font-weight: 400;
|
|
47
47
|
letter-spacing: 0.04em;
|
|
48
48
|
line-height: 1.75rem;
|
|
49
|
-
|
|
50
49
|
}
|
|
50
|
+
|
|
51
51
|
&.type-subheading1 {
|
|
52
52
|
font-size: 0.938rem;
|
|
53
53
|
font-weight: 400;
|
|
54
54
|
letter-spacing: 0.04em;
|
|
55
55
|
line-height: 1.5rem;
|
|
56
|
-
|
|
57
56
|
}
|
|
57
|
+
|
|
58
58
|
&.type-body1 {
|
|
59
59
|
font-size: 0.875rem;
|
|
60
60
|
font-weight: 400;
|
|
61
61
|
letter-spacing: 0.04em;
|
|
62
62
|
line-height: 1.25rem;
|
|
63
|
-
|
|
64
63
|
}
|
|
64
|
+
|
|
65
65
|
&.type-body2 {
|
|
66
66
|
font-size: 0.875rem;
|
|
67
67
|
font-weight: 500;
|
|
68
68
|
letter-spacing: 0.04em;
|
|
69
69
|
line-height: 1.5rem;
|
|
70
|
-
|
|
71
70
|
}
|
|
71
|
+
|
|
72
72
|
&.type-caption {
|
|
73
73
|
font-size: 0.75rem;
|
|
74
74
|
font-weight: 400;
|
|
75
75
|
letter-spacing: 0.08em;
|
|
76
76
|
line-height: 1.25rem;
|
|
77
|
-
|
|
78
77
|
}
|
|
78
|
+
|
|
79
79
|
&.type-button {
|
|
80
80
|
font-size: 14px;
|
|
81
81
|
font-weight: 500;
|
|
82
82
|
|
|
83
83
|
// margin-bottom: 30px;
|
|
84
84
|
margin-left: 8px;
|
|
85
|
-
|
|
86
85
|
}
|
|
86
|
+
|
|
87
87
|
&.style-adjust {
|
|
88
88
|
&.type-display4 {
|
|
89
89
|
margin: -1rem 0 3.5rem -0.085em;
|
|
90
|
-
|
|
91
90
|
}
|
|
91
|
+
|
|
92
92
|
&.type-display3 {
|
|
93
93
|
margin: -8px 0 64px -0.07em;
|
|
94
|
-
|
|
95
94
|
}
|
|
95
|
+
|
|
96
96
|
&.type-display2 {
|
|
97
97
|
margin: -0.5rem 0 4rem -0.07em;
|
|
98
|
-
|
|
99
98
|
}
|
|
99
|
+
|
|
100
100
|
&.type-display1 {
|
|
101
101
|
margin: -0.5rem 0 4rem -0.07em;
|
|
102
|
-
|
|
103
102
|
}
|
|
103
|
+
|
|
104
104
|
&.type-headline {
|
|
105
105
|
margin: -0.5rem 0 1rem -0.06em;
|
|
106
|
-
|
|
107
106
|
}
|
|
107
|
+
|
|
108
108
|
&.type-title {
|
|
109
109
|
margin: -0.5rem 0 1rem -0.05em;
|
|
110
|
-
|
|
111
110
|
}
|
|
111
|
+
|
|
112
112
|
&.type-subheading2 {
|
|
113
113
|
margin: -0.5rem 0 1rem -0.06em;
|
|
114
|
-
|
|
115
114
|
}
|
|
115
|
+
|
|
116
116
|
&.type-subheading1 {
|
|
117
117
|
margin: -0.313rem 0 0.813rem -0.06em;
|
|
118
|
-
|
|
119
118
|
}
|
|
119
|
+
|
|
120
120
|
&.type-body1 {
|
|
121
121
|
margin: -0.25rem 0 0.75rem 0;
|
|
122
|
-
|
|
123
122
|
}
|
|
123
|
+
|
|
124
124
|
&.type-body2 {
|
|
125
125
|
margin: -0.25rem 0 0.75rem 0;
|
|
126
|
-
|
|
127
126
|
}
|
|
127
|
+
|
|
128
128
|
&.type-caption {
|
|
129
129
|
line-height: 1.25rem;
|
|
130
|
-
|
|
131
130
|
}
|
|
132
131
|
}
|
|
133
132
|
}
|
|
@@ -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,15 +14,13 @@
|
|
|
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
|
-
&.style-dense,
|
|
23
|
-
/* empty */
|
|
24
|
-
}
|
|
23
|
+
&.style-dense,
|
|
25
24
|
&.style-compact {
|
|
26
25
|
height: 32px;
|
|
27
26
|
width: 32px;
|
|
@@ -34,31 +33,18 @@
|
|
|
34
33
|
width: 20px;
|
|
35
34
|
height: 20px;
|
|
36
35
|
viewbox: 0 0 20 20;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
// states
|
|
40
36
|
}
|
|
41
37
|
}
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
|
-
.button.type-action {
|
|
45
|
-
&:hover {
|
|
46
|
-
/* empty */
|
|
47
|
-
}
|
|
48
|
-
//background-color: #E0E0E0;
|
|
49
|
-
|
|
50
|
-
&:focus {
|
|
51
|
-
/* empty */
|
|
52
|
-
}
|
|
53
|
-
//background-color: darken(rgba(255, 255, 255, 0.95), 5%)
|
|
54
40
|
|
|
41
|
+
// states
|
|
42
|
+
.button.type-action {
|
|
55
43
|
.material-ripple {
|
|
56
|
-
/* empty */
|
|
57
44
|
}
|
|
58
|
-
|
|
45
|
+
}
|
|
59
46
|
|
|
60
47
|
// color
|
|
61
|
-
}
|
|
62
48
|
.button.type-action {
|
|
63
49
|
&.primary-color {
|
|
64
50
|
background-color: $primary-color;
|
|
@@ -69,7 +55,7 @@
|
|
|
69
55
|
}
|
|
70
56
|
}
|
|
71
57
|
&:focus {
|
|
72
|
-
background-color:
|
|
58
|
+
background-color: color.adjust($primary-color, $lightness: 10%);
|
|
73
59
|
color: $primary-color-text;
|
|
74
60
|
}
|
|
75
61
|
}
|
|
@@ -82,20 +68,15 @@
|
|
|
82
68
|
}
|
|
83
69
|
}
|
|
84
70
|
&:focus {
|
|
85
|
-
background-color:
|
|
71
|
+
background-color: color.adjust($secondary-color, $lightness: 5%);
|
|
86
72
|
color: $secondary-color-text;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// theme
|
|
90
73
|
}
|
|
91
74
|
}
|
|
92
75
|
}
|
|
93
|
-
.dark-mode .button.type-action, {
|
|
94
|
-
/* empty */
|
|
95
|
-
}
|
|
96
|
-
.button.type-action.dark-mode {
|
|
97
76
|
|
|
98
|
-
|
|
77
|
+
// theme
|
|
78
|
+
.dark-mode .button.type-action,
|
|
79
|
+
.button.type-action.dark-mode {
|
|
99
80
|
color: $primary-color-text-dark;
|
|
100
81
|
|
|
101
82
|
&.primary-color {
|
|
@@ -113,11 +94,6 @@
|
|
|
113
94
|
.button-icon {
|
|
114
95
|
svg {
|
|
115
96
|
fill: $secondary-color-text-dark;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
97
|
}
|
|
122
98
|
}
|
|
123
99
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
|
|
1
2
|
.button {
|
|
2
3
|
display: flex;
|
|
3
4
|
-webkit-font-smoothing: antialiased;
|
|
@@ -14,8 +15,8 @@
|
|
|
14
15
|
background-color: transparent;
|
|
15
16
|
> * {
|
|
16
17
|
pointer-events: none;
|
|
17
|
-
|
|
18
18
|
}
|
|
19
|
+
|
|
19
20
|
.button-icon {
|
|
20
21
|
flex: none;
|
|
21
22
|
pointer-events: none;
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
background-position: center center;
|
|
31
32
|
svg {
|
|
32
33
|
fill: $default-color-text;
|
|
33
|
-
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
+
|
|
36
37
|
.button-label {
|
|
37
38
|
flex: 1;
|
|
38
39
|
order: 2;
|
|
@@ -45,8 +46,8 @@
|
|
|
45
46
|
text-transform: uppercase;
|
|
46
47
|
padding: 3px 8px 3px 8px;
|
|
47
48
|
margin: 0;
|
|
48
|
-
|
|
49
49
|
}
|
|
50
|
+
|
|
50
51
|
.material-ripple {
|
|
51
52
|
opacity: 1;
|
|
52
53
|
pointer-events: none;
|
|
@@ -56,99 +57,92 @@
|
|
|
56
57
|
height: 5px;
|
|
57
58
|
width: 5px;
|
|
58
59
|
border-radius: 50%;
|
|
59
|
-
|
|
60
60
|
}
|
|
61
|
+
|
|
61
62
|
&.iconend {
|
|
62
63
|
.button-icon {
|
|
63
64
|
order: 2;
|
|
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
|
-
|
|
76
|
+
opacity: 0.3;
|
|
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);
|
|
84
|
-
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
|
-
&:active {
|
|
88
|
-
transition-duration: .2s;
|
|
89
|
-
&:focus {
|
|
90
|
-
/* empty */
|
|
91
|
-
}
|
|
92
|
-
//transition-delay: .2s
|
|
93
86
|
|
|
87
|
+
&:active {
|
|
88
|
+
transition-duration: 0.2s;
|
|
94
89
|
}
|
|
90
|
+
|
|
95
91
|
&:hover {
|
|
96
|
-
transition-duration: .2s;
|
|
92
|
+
transition-duration: 0.2s;
|
|
97
93
|
background-color: rgba($default-color-text, 0.03);
|
|
98
|
-
|
|
99
94
|
}
|
|
95
|
+
|
|
100
96
|
&:disabled {
|
|
101
97
|
pointer-events: none;
|
|
102
|
-
opacity: .3;
|
|
103
|
-
|
|
104
|
-
// styles
|
|
98
|
+
opacity: 0.3;
|
|
105
99
|
}
|
|
106
100
|
}
|
|
101
|
+
|
|
102
|
+
// styles
|
|
107
103
|
.button {
|
|
108
104
|
&.style-compact {
|
|
109
105
|
> .button-label {
|
|
110
106
|
padding-left: 0;
|
|
111
107
|
padding-right: 0;
|
|
112
|
-
|
|
113
108
|
}
|
|
114
109
|
}
|
|
110
|
+
|
|
115
111
|
&.style-dense {
|
|
116
112
|
height: 32px;
|
|
117
113
|
> .button-label {
|
|
118
114
|
font-size: 0.8125rem;
|
|
119
115
|
padding-top: 2px;
|
|
120
116
|
padding-bottom: 2px;
|
|
121
|
-
|
|
122
|
-
// color
|
|
123
117
|
}
|
|
124
118
|
}
|
|
125
119
|
}
|
|
120
|
+
|
|
121
|
+
// color
|
|
126
122
|
.button {
|
|
127
123
|
&.primary-color {
|
|
128
124
|
color: $primary-color;
|
|
129
125
|
&:focus {
|
|
130
|
-
background-color: rgba($primary-color, .1);
|
|
126
|
+
background-color: rgba($primary-color, 0.1);
|
|
131
127
|
&:hover {
|
|
132
|
-
background-color: rgba($primary-color, .1);
|
|
128
|
+
background-color: rgba($primary-color, 0.1);
|
|
133
129
|
}
|
|
134
130
|
}
|
|
135
131
|
&:hover {
|
|
136
|
-
background-color: rgba($primary-color, .05);
|
|
137
|
-
|
|
132
|
+
background-color: rgba($primary-color, 0.05);
|
|
138
133
|
}
|
|
134
|
+
|
|
139
135
|
.button-icon {
|
|
140
136
|
svg {
|
|
141
137
|
fill: $primary-color;
|
|
142
|
-
|
|
143
138
|
}
|
|
144
139
|
}
|
|
145
|
-
.material-ripple {
|
|
146
|
-
background-color: rgba($primary-color, .1);
|
|
147
|
-
|
|
148
|
-
|
|
149
140
|
|
|
141
|
+
.material-ripple {
|
|
142
|
+
background-color: rgba($primary-color, 0.1);
|
|
150
143
|
}
|
|
151
144
|
}
|
|
145
|
+
|
|
152
146
|
&.secondary-color {
|
|
153
147
|
color: $secondary-color;
|
|
154
148
|
.button-icon {
|
|
@@ -157,24 +151,22 @@
|
|
|
157
151
|
}
|
|
158
152
|
}
|
|
159
153
|
.material-ripple {
|
|
160
|
-
background-color: rgba($secondary-color, .1);
|
|
154
|
+
background-color: rgba($secondary-color, 0.1);
|
|
161
155
|
}
|
|
162
156
|
&:focus {
|
|
163
|
-
background-color: rgba($secondary-color, .
|
|
157
|
+
background-color: rgba($secondary-color, 0.1);
|
|
164
158
|
&:hover {
|
|
165
|
-
background-color: rgba($secondary-color, .
|
|
159
|
+
background-color: rgba($secondary-color, 0.1);
|
|
166
160
|
}
|
|
167
161
|
}
|
|
168
162
|
&:hover {
|
|
169
|
-
background-color: rgba($secondary-color, .05);
|
|
170
|
-
|
|
171
|
-
// theme
|
|
163
|
+
background-color: rgba($secondary-color, 0.05);
|
|
172
164
|
}
|
|
173
165
|
}
|
|
174
166
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
167
|
+
|
|
168
|
+
// theme
|
|
169
|
+
.dark-mode .button,
|
|
178
170
|
.button.dark-mode {
|
|
179
171
|
color: $default-color-text-dark;
|
|
180
172
|
.button-icon {
|
|
@@ -183,22 +175,14 @@
|
|
|
183
175
|
}
|
|
184
176
|
}
|
|
185
177
|
.material-ripple {
|
|
186
|
-
background-color: rgba($default-color-text-dark, .1);
|
|
187
|
-
}
|
|
188
|
-
&:focus {
|
|
189
|
-
//background-color: rgba($default-color-text-dark, .1)
|
|
190
|
-
&:hover {
|
|
191
|
-
/* empty */
|
|
192
|
-
}
|
|
193
|
-
//background-color: rgba($default-color-text-dark, .1)
|
|
178
|
+
background-color: rgba($default-color-text-dark, 0.1);
|
|
194
179
|
}
|
|
195
180
|
&:hover {
|
|
196
|
-
background-color: rgba($default-color-text-dark, .05);
|
|
181
|
+
background-color: rgba($default-color-text-dark, 0.05);
|
|
182
|
+
}
|
|
197
183
|
|
|
198
184
|
// primary color
|
|
199
|
-
}
|
|
200
185
|
&.primary-color {
|
|
201
|
-
//background-color: $primary-color;
|
|
202
186
|
color: $primary-color-dark;
|
|
203
187
|
.button-icon {
|
|
204
188
|
svg {
|
|
@@ -206,20 +190,20 @@
|
|
|
206
190
|
}
|
|
207
191
|
}
|
|
208
192
|
.material-ripple {
|
|
209
|
-
background-color: rgba($primary-color-dark, .3);
|
|
193
|
+
background-color: rgba($primary-color-dark, 0.3);
|
|
210
194
|
}
|
|
211
195
|
&:focus {
|
|
212
|
-
background-color: rgba($primary-color-dark, .2);
|
|
196
|
+
background-color: rgba($primary-color-dark, 0.2);
|
|
213
197
|
&:hover {
|
|
214
|
-
background-color: rgba($primary-color-dark, .2);
|
|
198
|
+
background-color: rgba($primary-color-dark, 0.2);
|
|
215
199
|
}
|
|
216
200
|
}
|
|
217
201
|
&:hover {
|
|
218
|
-
background-color: rgba($primary-color-dark, .1);
|
|
219
|
-
|
|
220
|
-
// secondary color
|
|
202
|
+
background-color: rgba($primary-color-dark, 0.1);
|
|
221
203
|
}
|
|
222
204
|
}
|
|
205
|
+
|
|
206
|
+
// secondary color
|
|
223
207
|
&.secondary-color {
|
|
224
208
|
color: $secondary-color-dark;
|
|
225
209
|
.button-icon {
|
|
@@ -228,18 +212,18 @@
|
|
|
228
212
|
}
|
|
229
213
|
}
|
|
230
214
|
.material-ripple {
|
|
231
|
-
background-color: rgba($secondary-color-dark, .3);
|
|
232
|
-
|
|
215
|
+
background-color: rgba($secondary-color-dark, 0.3);
|
|
233
216
|
}
|
|
217
|
+
|
|
234
218
|
&:focus {
|
|
235
|
-
background-color: rgba($secondary-color-dark, .2);
|
|
219
|
+
background-color: rgba($secondary-color-dark, 0.2);
|
|
236
220
|
&:hover {
|
|
237
|
-
background-color: rgba($secondary-color-dark, .2);
|
|
238
|
-
|
|
221
|
+
background-color: rgba($secondary-color-dark, 0.2);
|
|
239
222
|
}
|
|
240
223
|
}
|
|
224
|
+
|
|
241
225
|
&:hover {
|
|
242
|
-
background-color: rgba($secondary-color-dark, .1);
|
|
226
|
+
background-color: rgba($secondary-color-dark, 0.1);
|
|
243
227
|
}
|
|
244
228
|
}
|
|
245
229
|
}
|