Skip to content

Commit

Permalink
fix dark mode and layout of devices page
Browse files Browse the repository at this point in the history
  • Loading branch information
opatut committed Mar 4, 2024
1 parent 6a102fb commit 5563f1d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions assets/scss/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,7 @@
background: adjust-color(green, $alpha: -0.8);
}

.device-type-cell img {
filter: #{"invert()"};
}
}
12 changes: 9 additions & 3 deletions assets/scss/features.scss
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@
// Special device variants page

.device-types-row {
background: #F8F8F8;
background: var(--background-1);
padding: 0;
}

Expand Down Expand Up @@ -378,7 +378,7 @@
}

&.light {
background: #FFF;
background: var(--background);
}

img {
Expand All @@ -399,6 +399,7 @@
&.construction {
.label {
background: #ffd600;
color: black;
}
img {
opacity: 0.3;
Expand All @@ -414,13 +415,18 @@

ul {
text-align: left;
// align-self: center;
padding-inline: 2rem;
}

.button {
margin-top: auto;
align-self: center;
}

@media ($media-mobile) {
margin-inline: -1rem;
padding-inline: 1rem;
}
}

// Resistors
Expand Down

0 comments on commit 5563f1d

Please sign in to comment.