-
Notifications
You must be signed in to change notification settings - Fork 64
/
speech-input.css
94 lines (84 loc) · 1.64 KB
/
speech-input.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
.si-wrapper {
display: inline-block;
position: relative;
}
.speech-input {
margin: 0;
}
.si-wrapper button {
position: absolute;
top: 0;
right: 0;
height: 18px;
width: 18px;
margin: 0;
border: 0;
padding: 0;
background: none;
font: 0/0 a;
}
.si-mic,
.si-mic:after,
.si-holder,
.si-holder:before,
.si-holder:after {
position: absolute;
background: #333;
}
/* Microphone icon */
.si-mic {
display: block;
height: 25%; /* 8px / 32px */
top: 9.375%; /* 3px / 32px */
left: 37.5%; /* 12px / 32px */
right: 37.5%; /* 12px / 32px */
-webkit-border-radius: 99px 99px 0 0;
-moz-border-radius: 99px 99px 0 0;
border-radius: 99px 99px 0 0;
}
.si-mic:before,
.si-mic:after,
.si-holder {
-webkit-border-radius: 0 0 99px 99px;
-moz-border-radius: 0 0 99px 99px;
border-radius: 0 0 99px 99px;
}
.si-mic:before {
position: absolute;
z-index: 1;
content: '';
width: 150%; /* 12px / 8px */
height: 137.5%; /* 11px / 8px */
top: 100%; /* 8px / 8px */
left: -25%; /* -2px / 8px */
background: #fff;
}
.si-mic:after {
z-index: 1;
content: '';
width: 100%; /* 10px / 10px */
height: 100%; /* 10px / 10px */
top: 110%; /* 11px / 10px */
left: 0;
}
.si-holder {
display: block;
height: 40.625%; /* 13px / 32px */
width: 50%; /* 16px / 32px */
left: 25%; /* 8px / 32px */
top: 37.5%; /* 12px / 32px */
}
.si-holder:after {
content: '';
width: 66.666%; /* 8px / 16px */
height: 18.182%; /* 2px / 13px */
bottom: -30.769%; /* -4px / 13px */
left: 16.667%; /* 2px / 16px */
}
.si-holder:before {
content: '';
width: 33.333%; /* 4px / 16px */
height: 27.273%; /* 3px / 13px */
top: 92.308%; /* 12px / 13px */
left: 33.333%; /* 4px / 16px */
}