-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
174 lines (160 loc) · 4.26 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
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
<!doctype html>
<html>
<head>
<title>Junk Mail Be Gone</title>
<style>
* {
box-sizing: border-box;
}
body {
overflow-x: hidden;
font-family: "Open Sans", sans-serif;
font-weight: 300;
margin: 20px;
padding: 5px;
background: white;
}
.divider {
text-align: center;
background-color: #bbb;
position: relative;
overflow: hidden;
margin: 10px 0;
width: 100%;
padding-top: 1px;
}
div {
font-family: sans-serif;
font-size: 1em;
margin-top: 1px;
}
a {
color: #1d5274;
}
.container {
font-family:'Roboto';
width:300px;
margin:30px auto 0;
display:block;
background:#FFF;
padding-top:10px;
}
h2 {
text-align:center;
margin-bottom:50px;
}
h2 small {
font-weight:normal;
color:#888;
display:block;
}
.footer { text-align:center; }
.footer a { color:#53B2C8; }
/* form starting stylings ------------------------------- */
.group {
position:relative;
margin-bottom:45px;
}
input {
font-size:18px;
padding:10px 10px 10px 5px;
display:block;
width:300px;
border:none;
border-bottom:1px solid #757575;
}
input:focus { outline:none; }
/* LABEL ======================================= */
label {
color:#999;
font-size:18px;
font-weight:normal;
position:absolute;
pointer-events:none;
left:5px;
top:10px;
transition:0.2s ease all;
-moz-transition:0.2s ease all;
-webkit-transition:0.2s ease all;
}
/* active state */
input:focus ~ label, input:valid ~ label {
top:-20px;
font-size:14px;
color:#1d5274;
}
/* BOTTOM BARS ================================= */
.bar { position:relative; display:block; width:300px; }
.bar:before, .bar:after {
content:'';
height:2px;
width:0;
bottom:1px;
position:absolute;
background:#1d5274;
transition:0.2s ease all;
-moz-transition:0.2s ease all;
-webkit-transition:0.2s ease all;
}
.bar:before {
left:50%;
}
.bar:after {
right:50%;
}
/* active state */
input:focus ~ .bar:before, input:focus ~ .bar:after {
width:50%;
}
/* HIGHLIGHTER ================================== */
.highlight {
position:absolute;
height:60%;
width:100px;
top:25%;
left:0;
pointer-events:none;
opacity:0.5;
}
/* active state */
input:focus ~ .highlight {
-webkit-animation:inputHighlighter 0.3s ease;
-moz-animation:inputHighlighter 0.3s ease;
animation:inputHighlighter 0.3s ease;
}
/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
from { background:#1d5274; }
to { width:0; background:transparent; }
}
@-moz-keyframes inputHighlighter {
from { background:#1d5274; }
to { width:0; background:transparent; }
}
@keyframes inputHighlighter {
from { background:#1d5274; }
to { width:0; background:transparent; }
}
ul{list-style-type:none;padding:0;margin:0}
ul li{padding:8px 16px;border-bottom:1px solid #ddd}
ul li:last-child{border-bottom:none}
</style>
</head>
<body>
<a href="http://junkmailbegone.com">
<img src="junkmail.png" style="width: 300px;" />
</a>
<div class="container">
<div id="catalogList" class="group">
<input class="search" id="searchBox" type="text" />
<span class="highlight"></span>
<span class="bar"></span>
<label>Search catalog</label>
<ul class="list" style="display: none;"></ul>
</div>
</div>
<script type="text/javascript" src="jquery.js"></script>
<script src="popup.js"></script>
<script src="list.min.js"></script>
</body>
</html>