Skip to content

Commit

Permalink
Light source menu touch-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
lupestro committed Apr 4, 2022
1 parent b94f972 commit 1b546aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
7 changes: 6 additions & 1 deletion token.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ export default class TorchToken {
);
});
} else if ("Self" in allSources) {
return [allSources["Self"]];
return [
Object.assign(
{ image: "/icons/svg/light.svg", quantity: 1 },
allSources["Self"]
)
];
}
}

Expand Down
14 changes: 9 additions & 5 deletions torch.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,22 @@
color: tomato;
}
.control-icon.torch + .light-source-menu {
padding: 4px 2px;
padding: 2px 2px 4px;
width: 30px;
}
.light-source-menu-item {

.control-icon.torch + .light-source-menu .light-source-menu-item {
border: 1px solid var(--color-border-light-primary);
padding: 0;
margin: 0;
}
.light-source-menu-item img {

.control-icon.torch + .light-source-menu button.light-source-menu-item img {
margin: 0;
}
.light-source-menu-item.active {
.control-icon.torch + .light-source-menu .light-source-menu-item.active {
border-color: tomato;
}
.light-source-menu-item.exhausted {
.control-icon.torch + .light-source-menu .light-source-menu-item.exhausted {
opacity: 0.3;
}

0 comments on commit 1b546aa

Please sign in to comment.