-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (120 loc) · 3.33 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<!-- Mobile Settings
============================================= -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<!-- Mobile Settings end -->
<style>
body {
margin: 0;
padding: 0;
}
.tabs-nav__wrapper {
position: relative;
text-align: center;
width: auto;
display: flex;
align-items: center;
justify-content: flex-start;
}
.tabs-nav__wrapper ul {
display: flex;
align-items: center;
list-style: none;
max-width: 100%;
overflow-x: auto;
scroll-behavior: smooth;
margin: 0;
padding: 0;
}
.tabs-nav__wrapper ul::-webkit-scrollbar {
height: 6px;
}
.tabs-nav__wrapper ul::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.5);
}
.tabs-nav__wrapper ul > li {
white-space: nowrap;
}
ul, li {
margin: 0;
padding: 0;
list-style: none;
}
.tab-close {
cursor: pointer;
opacity: .6;
}
.tabs-nav {
padding: 0;
list-style: none;
position: relative;
margin-top: 5px;
}
.tabs-nav .active {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
border-bottom: none;
position: relative;
color: black;
}
.tabs-nav .active:after {
width: 100%;
height: 2px;
position: absolute;
content: "";
left: 0;
background: white;
}
.tabs-nav li {
display: inline-block;
cursor: pointer;
color: #3a5ea7;
padding: 5px 7px;
font-size: 10px;
}
.tabs-nav li > span {
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 150px;
}
.tabs-nav li:first-child {
margin-left: 10px;
}
.tabs-content-container {
padding: 0;
list-style: none;
}
.tabs-content-container li {
display: none;
}
.tabs-content-container li.active {
display: block;
}
</style>
</head>
<body>
<!--
HTTP/3 may cause a "handshake failed" that loadURL incorrectly force HTTPS.
It may cause the page to be blank and refreshing will have no effect.
-->
<div class="tabs-nav__wrapper">
<ul class="tabs-nav">
<li class="tab active" id="tab-0-btn"><span>New Tab</span></li>
</ul>
</div>
<ul class="tabs-content-container">
<li class="tabs-content active" id="tab-0">
<webview autosize="on" src="https://www.electronjs.org" class="webview" allowpopups></webview>
</li>
</ul>
<script src="./src/renderer/index.js"></script>
</body>
</html>