-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
button-text.css
82 lines (72 loc) · 1.84 KB
/
button-text.css
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
.matter-button-text {
--matter-helper-theme: var(--matter-theme-rgb, var(--matter-primary-rgb, 33, 150, 243));
position: relative;
display: inline-block;
box-sizing: border-box;
margin: 0;
border: none;
border-radius: 4px;
padding: 0 8px;
min-width: 64px;
height: 36px;
vertical-align: middle;
text-align: center;
text-overflow: ellipsis;
color: rgb(var(--matter-helper-theme));
background-color: transparent;
font-family: var(--matter-font-family, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
font-size: 14px;
font-weight: 500;
line-height: 36px;
outline: none;
cursor: pointer;
}
.matter-button-text::-moz-focus-inner {
border: none;
}
/* Highlight, Ripple */
.matter-button-text::before,
.matter-button-text::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
border-radius: inherit;
opacity: 0;
}
.matter-button-text::before {
background-color: rgb(var(--matter-helper-theme));
transition: opacity 0.2s;
}
.matter-button-text::after {
background: radial-gradient(circle at center, currentColor 1%, transparent 1%) center/10000% 10000% no-repeat;
transition: opacity 1s, background-size 0.5s;
}
/* Hover, Focus */
.matter-button-text:hover::before {
opacity: 0.04;
}
.matter-button-text:focus::before {
opacity: 0.12;
}
.matter-button-text:hover:focus::before {
opacity: 0.16;
}
/* Active */
.matter-button-text:active::after {
opacity: 0.16;
background-size: 100% 100%;
transition: background-size 0s;
}
/* Disabled */
.matter-button-text:disabled {
color: rgba(var(--matter-onsurface-rgb, 0, 0, 0), 0.38);
background-color: transparent;
cursor: initial;
}
.matter-button-text:disabled::before,
.matter-button-text:disabled::after {
opacity: 0;
}