-
-
Notifications
You must be signed in to change notification settings - Fork 185
/
options.html
203 lines (178 loc) · 5.4 KB
/
options.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html>
<head>
<title>Enhanced GitHub Options</title>
<meta charset="utf-8">
<style type="text/css">
body {
font-size: 15px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.content {
background: #ececec;
padding: 10px;
width: 30%;
}
.background--grey {
background: #f5f5f5;
}
.padding--10 {
padding: 10px;
}
.push--top {
margin-top: 10px;
}
.text--center {
text-align: center;
}
.vertical-center {
vertical-align: middle;
}
.inline-block {
display: inline-block;
}
.hidden {
display: none;
}
.float--right {
float: right;
}
.success-msg {
color: #3fb594;
}
.warning-msg {
color: #de973e;
}
.btn {
background: #3fb594;
color: #fff !important;
border: none;
border-radius: 2px;
color: #000;
position: relative;
height: 36px;
margin: 0;
min-width: 100%;
padding: 0 16px;
display: inline-block;
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
font-size: 14px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0;
overflow: hidden;
will-change: box-shadow;
transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
outline: none;
cursor: pointer;
text-decoration: none;
text-align: center;
line-height: 36px;
vertical-align: middle;
}
.btn:hover {
background: #3fb594;
color: #fff !important;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
.btn.disabled {
background: #fefefe;
pointer-events: none;
}
.ph-link {
color: #da552f;
}
input[type="text"] {
width: 100%;
padding: 10px 10px 10px 5px;
font-size: 14px;
border: none;
border-bottom: 1px solid #757575;
background: transparent;
outline: none;
}
input[type="text"]:focus {
border-bottom: 2px solid #5264AE;
}
</style>
</head>
<body>
<div class="content">
<div class="text--center">
<img src="icons/enhanced-github48.png" align="center">
<h2 style="margin-left: 5px; color:grey;" class="inline-block">Enhanced GitHub</h2>
</div>
<h3 style="color:grey;">Options</h3>
<div class="background--grey push--top padding--10">
<h3 style="padding-bottom: 10px; color: grey;">GitHub Access Token</h3>
<input
type="text"
name=""
placeholder="Enter access token here"
id="x-github-token"
class="push--top"
style="width: 98%;"
/>
<div class="inline-block hidden" id="status" style="margin-top: 15px;">
<svg
fill="#3fb594"
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
class="vertical-center"
>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" />
</svg>
<span id="status--text" class="success-msg vertical-center"></span>
</div>
<div class="push--top inline-block hidden" id="validation-block">
<svg
fill="#de973e"
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
class="vertical-center"
>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" />
</svg>
<span id="validation-warning" class="warning-msg vertical-center push--top"></span>
</div>
<button class="btn" id="save-btn" style="margin-top: 20px;">Save</button>
</div>
<hr />
<div class="background--grey padding--10 text--center">
<div style="padding: 15px 10px;">
<!-- Place this tag where you want the button to render. -->
<iframe
src="https://ghbtns.com/github-btn.html?user=softvar&repo=enhanced-github&type=star&count=true&size=large"
frameborder="0"
scrolling="0"
width="160px"
height="38px"
></iframe>
<iframe
src="https://platform.twitter.com/widgets/tweet_button.html?size=l&url=http://github.com/softvar/enhanced-github&via=s0ftvar&text=Display size of each file, download link and option to copy file contents&hashtags=extension,github"
title="Twitter Tweet Button"
style="width: 76px;height: 37px;border: 0;overflow: hidden;display: inline-block;"
>
</iframe>
</div>
<div>
<a class="ph-link" href="https://www.producthunt.com/tech/enhanced-github" target="_blank">
Featured On ProductHunt
</a>
</div>
</div>
</div>
<script type="text/javascript" src="options.js"></script>
</body>
</html>