-
Notifications
You must be signed in to change notification settings - Fork 27
/
style.css
199 lines (172 loc) · 4.46 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
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 100vh;
margin: 0;
background-color: #eeeeee;
padding: 0 10vw;
}
h1 {
text-align: left;
font-size: 1vhvh;
color: white;
padding-left: 3vw;
}
header {
background-color: #474747;
height: 10vh;
width: 100vw;
}
footer {
text-align: center;
background-color: #252323;
color: white;
height: 10vh;
width: 100vw;
font-family: Verdana, Geneva, Tahoma, sans-serif;
padding-top: 2vh;
}
#pixel-art-container {
background-color: black;
display: grid;
grid-template-columns: repeat(
20,
1fr
); /* 20 columns, each taking 1 fraction of the available space */
grid-template-rows: repeat(
20,
1fr
); /* 20 rows, each taking 1 fraction of the available space */
gap: 1px;
width: 80vmin; /* Use vmin to ensure square grid */
height: 80vmin; /* Use vmin to ensure square grid */
border: 1px solid black; /* Optional: add border to the grid */
margin: 2vh;
}
.cell {
width: calc(
(80vmin - 19px) / 20
); /* Adjust cell width to fit perfectly, subtracting gap spaces */
height: calc(
(80vmin - 19px) / 20
); /* Adjust cell height to fit perfectly, subtracting gap spaces */
background-color: white; /* Default background color */
}
a {
text-decoration: none; /* Remove underline from links */
color: inherit; /* Ensure link color matches surrounding text ---- (optional) */
}
/* Customize colors for individual cells */
#pixel-art-container .cell:nth-child(1) {
background-color: red;
}
#pixel-art-container .cell:nth-child(2) {
background-color: blue;
}
#pixel-art-container .cell:nth-child(3) {
background-color: green;
}
#pixel-art-container .cell:nth-child(4) {
background-color: yellow;
}
#pixel-art-container .cell:nth-child(4) {
background-color: red;
}
#pixel-art-container .cell:nth-child(7) {
background-color: orange;
}
#pixel-art-container .cell:nth-child(5) {
background-color: purple;
}
#pixel-art-container .cell:nth-child(10) {
background-color: black;
}
#pixel-art-container .cell:nth-child(69) {
background-color: orange;
}
#pixel-art-container .cell:nth-child(191) {
background-image: radial-gradient(rgb(206, 255, 253), rgb(91, 255, 255));
}
#pixel-art-container .cell:nth-child(20) {
background-color: Aqua;
}
#pixel-art-container .cell:nth-child(19) {
background-color: DodgerBlue;
}
#pixel-art-container .cell:nth-child(123) {
background-color:#aa6f73;
}
#pixel-art-container .cell:nth-child(399) {
background-color: beige;
}
#pixel-art-container .cell:nth-child(317) {
background: linear-gradient(to top right, #4568dc, #b06ab3);
}
#pixel-art-container .cell:nth-child(381){
background-color: rgb(93, 25, 25);
}
#pixel-art-container .cell:nth-child(65) {
background-color: orange;
}
#pixel-art-container .cell:nth-child(65) {
background-color: orange;
}
#pixel-art-container .cell:nth-child(18) {
background-color: gold;
}
#pixel-art-container .cell:nth-child(67) {
background-color: pink;
}
#pixel-art-container .cell:nth-child(317) {
background: linear-gradient(to top right, #4568dc, #b06ab3);
}
#pixel-art-container .cell:nth-child(381){
background-color: rgb(87, 24, 24);
}
#pixel-art-container .cell:nth-child(65) {
background-color: orange;
}
#pixel-art-container .cell:nth-child(65) {
background-color: orange;
}
#pixel-art-container .cell:nth-child(18) {
background-color: gold;
}
#pixel-art-container .cell:nth-child(271) {
background-color: gold;
}
#pixel-art-container .cell:nth-child(9) {
background-color: rgb(17, 255, 0);
}
#pixel-art-container .cell:nth-child(91) {
background-color: burlywood;
}
#pixel-art-container .cell:nth-child(101) {
background-color: yellowgreen;
}
#pixel-art-container .cell:nth-child(100) {
background-color: yellowgreen;
}
#pixel-art-container .cell:nth-child(104) {
background: repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);
}
#pixel-art-container .cell:nth-child(389) {
background-color: rgb(53, 243, 23);
}
#pixel-art-container .cell:nth-child(361) {
background-color: coral;
}
#pixel-art-container .cell:nth-child(200) {
background-color: cyan;
}
#pixel-art-container .cell:nth-child(181) {
background-color: rgb(83, 0, 134);
}
#pixel-art-container .cell:nth-child(21) {
background-color: red;
}
/* test */
/* Add more colors for other cells as needed */
/* add */