-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
75 lines (65 loc) · 1.9 KB
/
Copy pathpopup.html
File metadata and controls
75 lines (65 loc) · 1.9 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
<!DOCTYPE html>
<html>
<head>
<title>Color Picker</title>
<style>
body {
width: 20rem;
padding: 1rem;
background-color: rgb(240, 240, 240);
display: flex;
flex-direction: column;
gap: 1rem;
}
button {
background: rgb(255, 255, 255, 1);
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid rgb(0, 0, 0, 0.25);
box-shadow: 0rem 0rem 0.5rem 0rem rgb(0, 0, 0, 0.25);
}
button:hover {
background: rgb(250, 250, 250, 1);
padding: 1rem;
border-radius: 0.5rem;
border: 1px solid rgb(0, 0, 0, 0.25);
}
#selectedColor {
padding: 1rem;
}
.saved-colors {
padding: 1rem;
display: flex;
flex-direction: row;
gap: 0.25rem;
}
.saved-color {
width: 2rem;
height: 2rem;
display: inline-block;
cursor: pointer;
border-radius: 0.5rem;
border: 1px solid rgb(0, 0, 0, 0.25);
}
</style>
</head>
<body>
<button id="pickColor">Pick Color</button>
<div id="selectedColor">
<div id="hexCode">Hex: No color selected yet.</div>
<div id="rgbCode">RGB: No color selected yet.</div>
<div id="hslCode">HSL: No color selected yet.</div>
</div>
<div>
<div style="padding-left: 1rem;">Saved colors:</div>
<div class="saved-colors">
<div id="color1" class="saved-color"></div>
<div id="color2" class="saved-color"></div>
<div id="color3" class="saved-color"></div>
<div id="color4" class="saved-color"></div>
<div id="color5" class="saved-color"></div>
</div>
</div>
<script src="popup.js"></script>
</body>
</html>