forked from googlearchive/paper-button
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paper-button.css
115 lines (99 loc) · 1.66 KB
/
paper-button.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
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
:host {
display: inline-block;
position: relative;
border: 0;
background: transparent;
text-align: center;
font: inherit;
text-transform: uppercase;
outline: none;
border-radius: 3px;
-webkit-user-select: none;
user-select: none;
cursor: pointer;
}
:host(.hover:hover) {
background: #e4e4e4;
}
:host([raisedButton]) {
background: #dfdfdf;
}
:host([raisedButton].hover:hover) {
background: #d6d6d6;
}
:host([disabled]) {
background: #eaeaea !important;
color: #a8a8a8 !important;
cursor: auto;
}
#shadow-container {
border-radius: inherit;
}
#clip {
position: relative;
border-radius: inherit;
overflow: hidden;
}
/*
#focusBg {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
opacity: 0;
border-radius: inherit;
background: #c3c3c3;
-webkit-transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
:host([focused]) #focusBg {
-webkit-transition: none;
transition: none;
-webkit-animation: focus-fade 0.7s infinite alternate;
animation: focus-fade 0.7s infinite alternate;
}
@-webkit-keyframes focus-fade {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes focus-fade {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
*/
#ripple {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
color: #d1d1d1;
pointer-events: none;
}
:host([raisedButton]) #ripple {
color: #cecece;
}
#ripple::shadow canvas {
top: 0;
left: 0;
}
#content {
/* needed to position the ink behind the content */
position: relative;
}
#icon {
margin: 8px;
}
#content > span {
display: inline-block;
margin: 0.5em;
}