-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPopup.html
108 lines (95 loc) · 2.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#mainCont {
min-width: 150px;
width: max-content;
}
#mainCont>h1 {
font-family: lobster, sans-serif;
margin: 0;
margin-bottom: 15px;
text-align: center;
font-size: 30px;
}
#picker_btn {
padding: 5px 7px;
border-radius: 10px;
background-color: white;
border: 1px solid black;
font-size: 15px;
width: 100%;
text-align: center;
margin: 0px 4px;
cursor: pointer;
transition: all 0.3s;
}
#picker_btn:hover {
background-color: black;
color: white;
}
#result {
list-style: none;
grid-gap: 10px;
padding: 0;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
#result>li {
cursor: pointer;
padding: 2px 5px;
font-weight: bolder;
font-size: 15px;
border: 1px solid black;
border-radius: 5px;
text-shadow: 0.5px 0.5px 0 #cfcfcf, -0.5px -0.5px 0 #cfcfcf, 0.5px -0.5px 0 #cfcfcf, -0.5px 0.5px 0 #cfcfcf;
}
.errorLabel {
color: white;
font-weight: bold;
padding: 5px;
text-align: center;
margin: 0;
margin-top: 20px;
font-size: 14px;
border-radius: 10px;
}
#GenButton {
padding: 5px 7px;
border-radius: 10px;
background-color: black;
color: white;
border: 1px solid black;
font-size: 15px;
width: 100%;
text-align: center;
margin: 0px 4px;
cursor: pointer;
transition: all 0.3s;
}
#GenButton:hover {
background-color: white;
color: black;
}
</style>
</head>
<body>
<div id="mainCont">
<h1>Block generator</h1>
<div id="picker_btn_cont"></div>
<ul id="color">
</ul>
<ul id="result">
<img id="bright" src="./white.png" style="width: 64px; height: 64px;">
<img id="middle" src="./white.png" style="width: 64px; height: 64px;">
<img id="dark" src="./white.png" style="width: 64px; height: 64px;">
</ul>
</div>
</body>
<script src="popup.js"></script>
</html>