Skip to content

Commit 5563f1d

Browse files
committed
fix dark mode and layout of devices page
1 parent 6a102fb commit 5563f1d

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

assets/scss/dark.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,7 @@
3737
background: adjust-color(green, $alpha: -0.8);
3838
}
3939

40+
.device-type-cell img {
41+
filter: #{"invert()"};
42+
}
4043
}

assets/scss/features.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@
346346
// Special device variants page
347347

348348
.device-types-row {
349-
background: #F8F8F8;
349+
background: var(--background-1);
350350
padding: 0;
351351
}
352352

@@ -378,7 +378,7 @@
378378
}
379379

380380
&.light {
381-
background: #FFF;
381+
background: var(--background);
382382
}
383383

384384
img {
@@ -399,6 +399,7 @@
399399
&.construction {
400400
.label {
401401
background: #ffd600;
402+
color: black;
402403
}
403404
img {
404405
opacity: 0.3;
@@ -414,13 +415,18 @@
414415

415416
ul {
416417
text-align: left;
417-
// align-self: center;
418+
padding-inline: 2rem;
418419
}
419420

420421
.button {
421422
margin-top: auto;
422423
align-self: center;
423424
}
425+
426+
@media ($media-mobile) {
427+
margin-inline: -1rem;
428+
padding-inline: 1rem;
429+
}
424430
}
425431

426432
// Resistors

0 commit comments

Comments
 (0)