-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (99 loc) · 1.81 KB
/
index.html
File metadata and controls
104 lines (99 loc) · 1.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GitHub Repo Search</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background: #C4C4C4;
}
#autocomplete-container {
position: relative;
width: 300px;
}
#repo-input {
width: 300px;
padding: 8px;
border: none;
}
#autocomplete-list {
position: absolute;
width: 300px;
background: #fff;
z-index: 1000;
max-height: 200px;
overflow-y: auto;
border-radius: 4px;
}
#autocomplete-list li {
padding: 8px;
cursor: pointer;
background: grey;
}
#autocomplete-list li:hover {
background: #f0f0f0;
}
.repo-list {
margin-top: 20px;
}
.repo-item {
width: 300px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
border: solid 1px black;
background: #E27BEB;
}
.repo-info {
max-width: 70%;
}
.remove-btn {
cursor: pointer;
position: absolute;
margin-left: 220px;
border: none;
background: none;
}
.remove-btn:before, .remove-btn:after {
position: absolute;
display: inline-block;
content: '';
height: 32px;
width: 2px;
background: red;
top: -12px
}
.remove-btn:before {
transform: rotate(45deg);
left: 15px;
}
.remove-btn:after {
transform: rotate(-45deg);
left: 15px;
}
.remove-btn:hover {
background: darkred;
}
</style>
</head>
<body>
<div id="autocomplete-container">
<input type="text" id="repo-input"/>
<ul id="autocomplete-list"></ul>
</div>
<div class="repo-list" id="repo-list"></div>
<script src="index.js"></script>
</body>
</html>