forked from softvar/enhanced-github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
145 lines (125 loc) · 4.07 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
<!DOCTYPE html>
<html>
<head>
<title>Github Plus Options</title>
<style type="text/css">
body {
font-size: 15px;
}
.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 .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,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,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
}
.btn.disabled {
background: #FEFEFE;
pointer-events: none;
}
.ph-link {
color: #da552f;
}
</style>
</head>
<body>
<div class="inline-block float--right 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>
<h3 class="inline-block">Options</h3>
<div class="background--grey push--top padding--10">
<div style="padding-bottom: 10px;">Enter Github Access Token</div>
<input type="text" name="" placeholder="Github Access Token" id="x-github-token" class="push--top" style="width: 98%;">
<div class="push--top 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;">
<iframe
allowtransparency="true"
scrolling="no"
frameborder="0"
src="https://buttons.github.io/buttons.html#href=https%3A%2F%2Fgithub.com%2Fsoftvar%2Fgithub-plus&text=Star&data.count.api=%2Frepos%2Fsoftvar%2Fgithub-plus%23stargazers_count&data.count.href=%2Fsoftvar%2Fgithub-plus%2Fstargazers&data.count.aria.label=%23%20stargazers%20on%20GitHub&data.style=mega&data.icon=octicon-star&aria.label=Star%20softvar%2Fgithub-plus%20on%20GitHub"
style="width: 110px; height: 28px; border: none; display: inline-block;"></iframe>
<iframe
src="https://platform.twitter.com/widgets/tweet_button.html?size=l&url=http://github.com/softvar/github-plus&via=s0ftvar&text=Display size of each file, download link and option to copy file contents&hashtags=extension,github"
width="80"
height="28"
title="Twitter Tweet Button"
style="width: 76px; border: 0; overflow: hidden; display: inline-block;"></iframe>
</div>
<div>
<a class="ph-link" href="https://www.producthunt.com/tech/github-plus" target="_blank">
Featured On ProductHunt
</a>
</div>
</div>
<script src="options.js"></script>
</body>
</html>