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

Commit

Permalink
style: better styling for node inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
prescientmoon committed Jul 14, 2020
1 parent bc479e5 commit 696771e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
12 changes: 6 additions & 6 deletions public/styles/components/node-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
&:focus {
filter: brightness(1.5);
}
}

&.number {
border-bottom-color: rgb(35, 78, 196);
}
.node-input.node-input--number {
border-bottom-color: rgb(35, 78, 196);
}

&.string {
border-bottom-color: rgb(97, 196, 35);
}
.node-input.node-input--string {
border-bottom-color: rgb(97, 196, 35);
}
6 changes: 6 additions & 0 deletions public/styles/pages/editor/edit-node.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@
margin-left: 1rem;
color: darken($color: $on-primary, $amount: 20);
}

.edit-node__value {
margin-top: 1rem;
display: grid;
grid-template-columns: auto auto;
}
3 changes: 1 addition & 2 deletions src/Component/Editor/EditNode.purs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Prelude
import Data.Array as Array
import Data.Maybe (Maybe)
import Data.Symbol (SProxy(..))
import Debug.Trace (spy)
import Halogen (Slot, ComponentHTML)
import Halogen.HTML as HH
import Lunarbox.Component.Editor.HighlightedType (highlightTypeToHTML)
Expand Down Expand Up @@ -72,7 +71,7 @@ component { description, type', inputs, id, function, value, setValue } =
]
where
handleNewValues = case _ of
NodeUiManager.NewValue val -> setValue $ spy "OOOOO" val
NodeUiManager.NewValue val -> setValue val

mkInput input =
HH.details [ className "edit-node__input" ]
Expand Down

0 comments on commit 696771e

Please sign in to comment.