-
Notifications
You must be signed in to change notification settings - Fork 9
/
app.html
132 lines (132 loc) · 3.05 KB
/
app.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
125
126
127
128
129
130
131
132
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' https://apps.ringcentral.com">
<title>RingCentral Phone (Community)</title>
<style type="text/css">
html, body {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
#app {
display: flex;
padding: 0;
margin: 0;
border: none;
height: 100%;
flex-direction: column;
}
#header {
height: 36px;
line-height: 36px;
width: 100%;
text-align: center;
background: #FFFFFF;
-webkit-app-region: drag;
position: relative;
cursor: pointer;
box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.18);
}
#logo {
display: inline-block;
margin-top: 11px;
height: 14px;
cursor: pointer;
}
.button {
position: absolute;
box-sizing: border-box;
top: 50%;
height: 20px;
width: 20px;
margin-top: -12px;
border-radius: 3px;
cursor: pointer;
border-style: solid;
border-width: 1px;
border-color: transparent;
-webkit-app-region: no-drag;
}
.button:hover {
border-color: #cccccc;
}
.close {
right: 14px;
}
.closeIcon {
position: relative;
overflow: hidden;
margin: 2px;
width: 14px;
height: 14px;
}
.line:first-child, .line:last-child {
position: absolute;
height: 2px;
width: 100%;
top: 6px;
left: 0;
background: #888888;
border-radius: 1px;
}
.line:first-child {
transform: rotate(45deg);
}
.line:last-child {
transform: rotate(-45deg);
}
.minimize {
right: 40px;
}
.minimizeIcon {
position: absolute;
box-sizing: border-box;
left: 3px;
bottom: 7px;
width: 12px;
height: 2px;
border: 1px solid #888888;
}
.minimizeIconBar {
width: 100%;
height: 1px;
background-color: #888888;
}
webview {
display: flex;
flex: 1;
border: none;
}
.hidden-button {
height: 20px;
width: 20px;
position: absolute;
left: 0;
top: 0;
background: transparent;
border: none;
outline: none;
}
</style>
</head>
<body>
<div id="app">
<header id="header">
<div id="close" class="button close">
<div class="closeIcon">
<div class="line"></div><div class="line"></div>
</div>
</div>
<div id="minimize" class="button minimize">
<div class="minimizeIcon">
<div class="minimizeIconBar"></div>
</div>
</div>
<div id="hidden-button" class="hidden-button"></div>
<img src="./header_logo.svg" id="logo" />
</header>
</div>
<script src="./app.js"></script>
</body>
</html>