Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
feat: making node inputs bigger on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
prescientmoon committed Apr 23, 2020
1 parent 02070b4 commit 6604ff1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions public/styles/components/node.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
@import "../theme.scss";

.node.selected {
border: 10px solid red;
}

.node-input {
transition: transform $transition-time;
}

.node-input:hover {
transform: scale(1.1);
}
4 changes: 2 additions & 2 deletions public/styles/theme.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// I curently have only one theme so using hardcoded scss variables is ok
// In the future I might take a more complex aproach if I want to allow multiple themes
// I currently have only one theme so using hard-coded scss variables is ok
// In the future I might take a more complex approach if I want to allow multiple themes

$primary: #262335;
$on-primary: #e2e2e2;
Expand Down
1 change: 1 addition & 0 deletions src/Component/Editor/Node/Input.purs
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ input { radius, spacing, arc: Arc start end _, color } =
, SA.stroke $ Just color
, strokeWidth arcWidth
, strokeLinecap Round
, SA.class_ "node-input"
]

0 comments on commit 6604ff1

Please sign in to comment.