-
Notifications
You must be signed in to change notification settings - Fork 667
/
index.html
124 lines (116 loc) · 3.22 KB
/
index.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
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
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Orillusion | Samples</title>
<style>
html,
body {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
margin: 0;
width: 100%;
height: 100%;
background: #000;
color: #fff;
display: flex;
}
.menu {
width: 150px;
padding: 20px;
overflow: overlay;
border-right: 1px solid #fff;
background: #000;
}
.menu>p {
text-align: left;
padding: 10px 0;
margin: 0;
border-bottom: 1px solid #fff;
text-transform: capitalize;
}
.menu>a {
display: block;
text-align: left;
margin: 5px 0;
color: #00bcd4;
text-decoration: none;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
}
.menu>a.active {
color: #f44336;
}
.menu>a:hover {
text-decoration: underline;
}
/* width */
::-webkit-scrollbar {
width: 0;
}
iframe {
border: none;
width: 100%;
height: 100%;
flex: 1;
}
.toggle{
display: none;
align-items: center;
position: fixed;
width: 20px;
height: 20px;
fill: currentColor;
left: 10px;
top: 10px;
cursor: pointer;
}
.close{
display: none;
position: fixed;
top: 5px;
left: 155px;
padding: 5px;
width: 20px;
height: 20px;
cursor: pointer;
}
svg{
transition: transform 0.15s;
}
svg:hover{
transform: scale(1.2);
}
@media screen and (max-width:599px) {
.menu{
display: none;
position: fixed;
z-index: 1111;
left: 0;
top: 0;
bottom: 0;
}
.toggle{
display: flex;
}
body.show > .menu{
display: block;
}
body.show > iframe{
pointer-events: none;
}
.close{
display: inline-block;
}
}
</style>
</head>
<body>
<svg class="toggle" onclick="document.body.classList.add('show')" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"></path><path d="M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"></path><path d="M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"></path><path d="M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"></path>
</svg>
<script type="module" src="/samples/index.ts"></script>
</body>
</html>