/
style.css
100 lines (85 loc) · 1.45 KB
/
style.css
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
body {
background-color: #fff;
margin: 0;
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
}
form {
margin-bottom: 20px;
text-align: center;
}
label {
display: block;
margin-bottom: 10px;
}
input[type="text"] {
padding: 5px;
width: 300px;
}
button[type="submit"] {
background-color: green;
color: #fff;
border: none;
padding: 8px 12px;
margin-left: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button[type="submit"]:hover {
background-color: darkgreen;
}
.arrow {
font-size: 16px;
}
#colorPalette {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
justify-items: center;
}
.colorBox {
width: 200px;
height: 200px;
border: 1px solid #ccc;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.colorBox img {
width: 100px;
height: 100px;
margin-bottom: 10px;
}
.colorHex {
font-size: 18px;
font-weight: bold;
}
#downloadPaletteButton {
right: 30px;
bottom: 30px;
}
#downloadPaletteButton {
background-color: cornflowerblue;
color: #fff;
border: none;
padding: 10px 20px;
transition: background-color 0.3s;
position: fixed;
}
#downloadPaletteButton:hover,
#downloadImageButton:hover {
background-color: darkblue;
}
#generatedImageUrl {
text-align: center;
margin-top: 20px;
}