Skip to content

Commit a4576b5

Browse files
committed
Add light mode styles for nft list
1 parent 950ce11 commit a4576b5

File tree

2 files changed

+215
-70
lines changed

2 files changed

+215
-70
lines changed

src/components/NFTList.css

Lines changed: 134 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,19 @@
55
}
66

77
.nft-list-container h2 {
8-
color: #ffffff;
98
margin-bottom: 20px;
109
text-align: center;
1110
}
1211

1312
.nft-stats {
14-
background: #1a1a1a;
1513
border-radius: 8px;
1614
padding: 20px;
1715
margin-bottom: 30px;
18-
border: 1px solid #333;
1916
}
2017

2118
.nft-stats h3 {
2219
margin-top: 0;
2320
margin-bottom: 15px;
24-
color: #ffffff;
2521
}
2622

2723
.stats-grid {
@@ -35,19 +31,15 @@
3531
justify-content: space-between;
3632
align-items: center;
3733
padding: 10px;
38-
background: #2a2a2a;
3934
border-radius: 6px;
40-
border: 1px solid #444;
4135
}
4236

4337
.stat-label {
4438
font-weight: 500;
45-
color: #ccc;
4639
}
4740

4841
.stat-value {
4942
font-weight: 600;
50-
color: #ffffff;
5143
}
5244

5345
.nft-grid {
@@ -57,21 +49,18 @@
5749
}
5850

5951
.nft-card {
60-
background: #1a1a1a;
6152
border-radius: 12px;
6253
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
6354
overflow: hidden;
6455
transition: transform 0.2s ease, box-shadow 0.2s ease;
6556
width: 100%;
66-
border: 1px solid #333;
6757
}
6858

6959
.nft-card:hover {
7060
transform: translateY(-2px);
7161
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
7262
}
7363

74-
7564
.nft-info {
7665
padding: 20px;
7766
}
@@ -80,12 +69,10 @@
8069
margin: 0 0 10px 0;
8170
font-size: 1.2em;
8271
font-weight: 600;
83-
color: #ffffff;
8472
}
8573

8674
.nft-description {
8775
margin: 0 0 15px 0;
88-
color: #ccc;
8976
font-size: 0.9em;
9077
line-height: 1.4;
9178
}
@@ -97,11 +84,10 @@
9784
.nft-details p {
9885
margin: 5px 0;
9986
font-size: 0.85em;
100-
color: #aaa;
10187
}
10288

10389
.nft-details strong {
104-
color: #ffffff;
90+
font-weight: 600;
10591
}
10692

10793
.nft-actions {
@@ -136,9 +122,6 @@
136122

137123
.nft-destination-select {
138124
padding: 8px 12px;
139-
background: #2a2a2a;
140-
color: #ffffff;
141-
border: 1px solid #444;
142125
border-radius: 6px;
143126
font-size: 0.9em;
144127
min-width: 150px;
@@ -149,11 +132,6 @@
149132
border-color: #007bff;
150133
}
151134

152-
.nft-destination-select option {
153-
background: #2a2a2a;
154-
color: #ffffff;
155-
}
156-
157135
.nft-transfer-btn {
158136
padding: 8px 16px;
159137
background: #6c757d;
@@ -180,28 +158,155 @@
180158
.nft-list-container {
181159
padding: 15px;
182160
}
183-
161+
184162
.stats-grid {
185163
grid-template-columns: 1fr;
186164
}
187-
188-
165+
189166
.nft-actions {
190167
flex-direction: column;
191168
gap: 15px;
192169
}
193-
170+
194171
.nft-transfer-section {
195172
flex-direction: column;
196173
gap: 10px;
197174
}
198-
175+
199176
.nft-destination-select {
200177
min-width: 100%;
201178
}
202-
179+
203180
.nft-link,
204181
.nft-transfer-btn {
205182
text-align: center;
206183
}
207184
}
185+
186+
/* Light theme styles */
187+
[data-theme='light'] .nft-list-container h2 {
188+
color: var(--primary-dark);
189+
}
190+
191+
[data-theme='light'] .nft-stats {
192+
background: #f8f9fa;
193+
border: 1px solid #e9ecef;
194+
}
195+
196+
[data-theme='light'] .nft-stats h3 {
197+
color: var(--primary-dark);
198+
}
199+
200+
[data-theme='light'] .stat-item {
201+
background: #ffffff;
202+
border: 1px solid #e9ecef;
203+
}
204+
205+
[data-theme='light'] .stat-label {
206+
color: #6c757d;
207+
}
208+
209+
[data-theme='light'] .stat-value {
210+
color: var(--primary-dark);
211+
}
212+
213+
[data-theme='light'] .nft-card {
214+
background: #ffffff;
215+
border: 1px solid #e9ecef;
216+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
217+
}
218+
219+
[data-theme='light'] .nft-card:hover {
220+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
221+
}
222+
223+
[data-theme='light'] .nft-name {
224+
color: var(--primary-dark);
225+
}
226+
227+
[data-theme='light'] .nft-description {
228+
color: #6c757d;
229+
}
230+
231+
[data-theme='light'] .nft-details p {
232+
color: #6c757d;
233+
}
234+
235+
[data-theme='light'] .nft-details strong {
236+
color: var(--primary-dark);
237+
}
238+
239+
[data-theme='light'] .nft-destination-select {
240+
background: #ffffff;
241+
color: var(--primary-dark);
242+
border: 1px solid #ced4da;
243+
}
244+
245+
[data-theme='light'] .nft-destination-select option {
246+
background: #ffffff;
247+
color: var(--primary-dark);
248+
}
249+
250+
/* Dark theme styles */
251+
[data-theme='dark'] .nft-list-container h2 {
252+
color: var(--primary-light);
253+
}
254+
255+
[data-theme='dark'] .nft-stats {
256+
background: #1a1a1a;
257+
border: 1px solid #333;
258+
}
259+
260+
[data-theme='dark'] .nft-stats h3 {
261+
color: var(--primary-light);
262+
}
263+
264+
[data-theme='dark'] .stat-item {
265+
background: #2a2a2a;
266+
border: 1px solid #444;
267+
}
268+
269+
[data-theme='dark'] .stat-label {
270+
color: #ccc;
271+
}
272+
273+
[data-theme='dark'] .stat-value {
274+
color: var(--primary-light);
275+
}
276+
277+
[data-theme='dark'] .nft-card {
278+
background: #1a1a1a;
279+
border: 1px solid #333;
280+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
281+
}
282+
283+
[data-theme='dark'] .nft-card:hover {
284+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
285+
}
286+
287+
[data-theme='dark'] .nft-name {
288+
color: var(--primary-light);
289+
}
290+
291+
[data-theme='dark'] .nft-description {
292+
color: #ccc;
293+
}
294+
295+
[data-theme='dark'] .nft-details p {
296+
color: #aaa;
297+
}
298+
299+
[data-theme='dark'] .nft-details strong {
300+
color: var(--primary-light);
301+
}
302+
303+
[data-theme='dark'] .nft-destination-select {
304+
background: #2a2a2a;
305+
color: var(--primary-light);
306+
border: 1px solid #444;
307+
}
308+
309+
[data-theme='dark'] .nft-destination-select option {
310+
background: #2a2a2a;
311+
color: var(--primary-light);
312+
}

0 commit comments

Comments
 (0)