Skip to content

Commit

Permalink
CSS style improvemens
Browse files Browse the repository at this point in the history
* white boxes on gray background
* small drop-shadow for boxes
* faster animations
  • Loading branch information
vogelsgesang committed Jan 19, 2024
1 parent 6729315 commit f64f5ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions query-graphs/src/ui/QueryGraph.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.query-graph .react-flow__pane {
background: #fdfdfd;
}

.query-graph .react-flow__handle {
background-color: transparent;
pointer-events: none;
Expand Down
7 changes: 4 additions & 3 deletions query-graphs/src/ui/QueryNode.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
.qg-graph-node.qg-collapsed:hover,
.qg-graph-node.qg-expanded {
cursor: pointer;
background: hsl(0,0%, 95%);
background: white;
border-color: hsl(0,0%, 80%);
box-shadow: 1px 2px 5px hsl(0,0%,90%);
}

.query-graph .react-flow__handle.qg-subtree-handle {
Expand Down Expand Up @@ -71,7 +72,7 @@
max-height: 0;
overflow: hidden;
transition-property: max-width, max-height;
transition-duration: .5s;
transition-duration: .2s;
}
.qg-graph-node.qg-expanded .qg-graph-node-body-wrapper {
max-width: 30em;
Expand All @@ -87,4 +88,4 @@

.qg-prop-name {
color: hsl(0, 0%, 50%);
}
}

0 comments on commit f64f5ef

Please sign in to comment.