-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoggle.html
60 lines (54 loc) · 1.2 KB
/
toggle.html
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
<script src="toggle.js"></script>
<style>
body {
font-family: 'Segoe UI', Tahoma, sans-serif;
width: 300px;
margin: 0;
padding: 0;
-webkit-user-select: none;
}
ul, li {
list-style: none;
margin: 0;
padding: 0;
}
li {
cursor: pointer;
padding: 10px;
font-size: 15px;
margin: 5px 0;
color: #999;
border-left: 3px solid transparent;
-webkit-transition: all 0.3s;
}
li:hover {
color: #555;
border-left: 6px solid #555;
}
li:active, li.active {
color: #000;
border-left: 6px solid #000;
}
ul li ul {
overflow: hidden;
}
ul li ul li {
float: left;
border: 1px solid #999;
border-radius: 3px;
margin-left: 3px;
margin-top: 10px;
font-size: 13px;
}
</style>
<ul>
<li>Toggle Keyboard
<ul>
<li id="toggleOn">Always On</li>
<li id="toggleDemand">On-Demand</li>
<li id="toggleOff">Turn Off</li>
</ul>
</li>
<li id="goToUrl">Open URL bar</li>
<li id="settings">Open Virtual Keyboard Settings</li>
</ul>