-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
143 lines (129 loc) · 3.07 KB
/
Copy pathpopup.html
File metadata and controls
143 lines (129 loc) · 3.07 KB
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
143
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
width: 200px;
padding: 14px;
background: #0f0f13;
color: #e2e2e2;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
font-size: 13px;
}
.header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.icon-wrap {
width: 32px;
height: 32px;
flex-shrink: 0;
background: rgba(99, 102, 241, 0.15);
border: 1px solid rgba(99, 102, 241, 0.35);
border-radius: 9px;
display: flex;
align-items: center;
justify-content: center;
}
.title-block {
display: flex;
flex-direction: column;
gap: 2px;
}
.title {
font-size: 15px;
font-weight: 800;
color: #e2e8f0;
letter-spacing: -0.02em;
line-height: 1;
}
.subtitle {
font-size: 10px;
color: light-dark(#4b5563, #fff);
line-height: 1;
}
.desc {
font-size: 11px;
color: #6b7280;
line-height: 1.6;
margin-bottom: 14px;
}
.btn {
width: 100%;
padding: 8px 12px;
background: rgba(99, 102, 241, 0.2);
border: 1px solid rgba(99, 102, 241, 0.4);
border-radius: 7px;
color: #a5b4fc;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
font-family: inherit;
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
}
.btn:hover {
background: rgba(99, 102, 241, 0.35);
}
.hint {
margin-top: 8px;
font-size: 10px;
color: light-dark(#374151, #fff);
text-align: center;
}
</style>
</head>
<body>
<div class="header">
<div class="icon-wrap">
<svg
width="18"
height="18"
viewBox="0 0 24 24"
fill="none"
stroke="#a5b4fc"
stroke-width="2"
stroke-linecap="round"
>
<circle cx="12" cy="12" r="8" />
<circle cx="12" cy="12" r="3" />
</svg>
</div>
<div class="title-block">
<span class="title">Usertour Lens</span>
<span class="subtitle">by mihairo</span>
</div>
</div>
<p class="desc">
Point at anything on a page and instantly get its selector.
</p>
<button class="btn" id="btn">
<svg
width="13"
height="13"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2.5"
stroke-linecap="round"
>
<circle cx="12" cy="12" r="8" />
<circle cx="12" cy="12" r="3" />
</svg>
Toggle Lens
</button>
<p class="hint">Works on the currently active tab</p>
<script src="popup.js" defer></script>
</body>
</html>