added input text view + moved things

This commit is contained in:
Ari Sosnovsky committed 2021-11-12 14:09:00 -05:00
1 parent 9694ffb238
commit 54c1edba0c
17 files changed
+166 -121

No files matched your search

+24 -1
View File
@@ -2,6 +2,9 @@
height: 99%;
width: 99%;
border: 1px solid $secondary-accent;
font-size: 0.5em;
color: $primary-accent;
svg {
height: 100%;
width: 100%;
@@ -9,6 +12,27 @@
margin: 0;
}
&-title {
.input-wrapper {
max-height: 100%;
max-width: 100%;
height: 100%;
width: 100%;
* {
margin: 0;
}
label {
display: none;
}
input,
div {
// min-height: 100%;
// max-height: 100%;
font-size: 1em;
}
}
}
.edge {
stroke: $secondary-accent;
}
@@ -25,7 +49,6 @@
max-height: 100%;
max-width: 100%;
width: 100%;
font-size: 0.5em;
&-inner {
display: flex;
@@ -1,44 +0,0 @@
.automation-editor {
width: 100%;
height: 100%;
overflow: hidden;
.automation-node {
flex-direction: column;
justify-content: center;
> &-inner {
min-width: 100%;
}
}
&--root {
display: flex;
flex-direction: row;
width: 100%;
// justify-content: center;
// align-items: center;
}
&--triggers {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
&--playground {
width: 100%;
> .automation-editor--elm-list {
display: flex;
flex-direction: row;
align-items: start;
}
}
button.elm-list {
width: 90%;
}
&--elm-list {
max-height: 20vh;
overflow-y: auto;
overflow-x: auto;
padding: 5%;
width: 100%;
}
}
@@ -1,69 +0,0 @@
.automation-node {
display: flex;
flex-direction: row;
&-inner {
padding: 10px;
border-radius: 25px;
background-color: $secondary;
max-width: 200px;
max-height: 75px;
min-width: 200px;
min-height: 75px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-around;
&-text {
flex: 2;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
}
&-edge {
flex: 1;
border-radius: 30px;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: space-around;
align-items: center;
&.left {
border-left: 1px $secondary-accent solid;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
&.right {
border-right: 1px $secondary-accent solid;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
&:hover {
background-color: $primary-accent;
cursor: pointer;
}
}
}
&-children {
min-width: 250px;
padding: 20px;
&.closed {
height: 0;
width: 0;
display: none;
}
&.open {
border-radius: 25px;
border-color: $secondary-accent;
border-width: 1px;
border-style: solid;
display: flex;
flex-direction: column;
}
}
}
@@ -1,8 +1,49 @@
.input-wrapper {
position: relative;
display: flex;
flex-direction: column;
margin-bottom: 8px;
label {
font-size: 12px;
}
.input-view {
@extend input;
cursor: default;
}
a.icon {
cursor: pointer;
position: absolute;
right: 0.5em;
top: 0.5em;
&:hover {
transform: rotate(90deg);
> svg {
fill: $secondary-accent;
}
}
&.opened {
transform: rotate(360deg);
height: 0.5em;
right: 0.25em;
&.checkmark {
opacity: 1;
z-index: 1;
}
&.pencil {
opacity: 0;
z-index: -1;
}
}
&.pencil {
opacity: 1;
z-index: 1;
}
&.checkmark {
opacity: 0;
z-index: -1;
}
}
}
-2
View File
@@ -1,5 +1,3 @@
@import "./AutomationNode.scss";
@import "./AutomationEditor.scss";
@import "./NewNodeModal.scss";
@import "./InputWrapper.scss";
@import "./AutomationDAG.scss";
+8
View File
@@ -0,0 +1,8 @@
a.icon {
height: 1em;
width: 1em;
display: flex;
svg {
fill: $primary-accent;
}
}
+1
View File
@@ -4,3 +4,4 @@
@import "./common.scss";
@import "./components/index.scss";
@import "./tooltip.scss";
@import "./icons.scss";