-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
110 lines (95 loc) · 2.87 KB
/
popup.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
<!doctype html style="min-width:400px;">
<html>
<head>
<title>Cascade - The Missing Menu</title>
<link rel="stylesheet" href="mvp.css">
<script src="inject.js"></script>
<!-- <script src="popup.js"></script> -->
<style>
body {
min-width: 300px;
}
h1 {
font-size: 14px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
ul {
list-style: none;
margin-left: 0;
padding-left: 0;
}
button {
padding: .5rem 1rem;
margin: 0.2rem 0;
}
label {
font-weight: bold;
margin-bottom: 0.2rem;
padding-top: .5rem;
}
input#api_key {
padding-bottom: 0;
margin-bottom: 0;
}
.inline {
display: inline-flex;
}
svg#info {
max-width: 12px;
display: inline;
max-height: 12px;
margin-left: 5px;
bottom: -3px;
}
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltiptext {
visibility: hidden;
width: 120px;
background-color: black;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 0;
/* Position the tooltip */
position: absolute;
z-index: 1;
top: -5px;
left: 105%;
}
.tooltip:hover .tooltiptext {
visibility: visible;
padding: 5px;
}
</style>
</head>
<body>
<div class="container" style="margin-left: 25px; margin-right: 25px">
<h1>Cascade - The Missing Menu</h1>
<details>
<summary>Settings</summary>
<label for="api_key">
<a data-text="Thanks for hovering! I'm a tooltip"
class="tooltip" href="https://www.hannonhill.com/cascadecms/latest/cascade-basics/account-settings.html#UserApiKey">API Key
<div class="tooltip">
<svg id="info" xmlns="http://www.w3.org/2000/svg" width="100px" height="100px" viewBox="0 0 100 100">
<path d="M50.433,0.892c-27.119,0-49.102,21.983-49.102,49.102s21.983,49.103,49.102,49.103s49.101-21.984,49.101-49.103S77.552,0.892,50.433,0.892z M59,79.031C59,83.433,55.194,87,50.5,87S42,83.433,42,79.031V42.469c0-4.401,3.806-7.969,8.5-7.969s8.5,3.568,8.5,7.969V79.031z M50.433,31.214c-5.048,0-9.141-4.092-9.141-9.142c0-5.049,4.092-9.141,9.141-9.141c5.05,0,9.142,4.092,9.142,9.141C59.574,27.122,55.482,31.214,50.433,31.214z"/>
</svg></a>
<span class="tooltiptext">Enables republish, Page metrics such as Last Pulished Date<a href="https://www.hannonhill.com/cascadecms/latest/cascade-basics/account-settings.html#UserApiKey">Command-Click for Documentation</a></span>
</div>
</label>
<input name="api_key" id="api_key" type="password">
<button href="#" id="api_key_save">Save API Key</button>
</details>
<ul>
<li>
<button id="edit-page">Edit Page</button></li>
<li>
<button id="publish-page">Republish Page</button>
</li>
</ul>
</div>
</body>
</html>