Files
Shortumation/web/src/scss_styles/components/AutomationDAG.scss
T
2021-11-15 16:27:28 -05:00

111 lines
2.3 KiB
SCSS

.automation-editor {
height: 99%;
width: 99%;
color: $primary-accent;
display: flex;
flex-direction: row;
&-dag {
border: 1px solid $secondary-accent;
width: 100%;
svg {
height: 99%;
width: 99%;
padding: 0;
margin: 0;
circle {
fill: adjust-color($color: $secondary, $green: 125, $blue: 125);
&.blue {
fill: adjust-color($color: $secondary, $blue: 125);
}
}
}
}
&-info-box {
padding-left: 10px;
padding-right: 10px;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow: auto;
}
.edge {
stroke: $secondary-accent;
}
#arrow > path {
fill: $secondary-accent;
}
span {
font-size: 8px;
}
&--node {
display: flex;
flex-direction: row;
background-color: $secondary;
border-radius: 1em;
height: 100%;
max-height: 100%;
max-width: 100%;
width: 100%;
&-inner {
display: flex;
flex-direction: row;
flex: 1;
&.top-color {
&.red {
border-top-color: adjust-color($color: $secondary, $red: 125);
}
&.blue {
border-top-color: adjust-color($color: $secondary, $blue: 125);
}
&.green {
border-top-color: adjust-color($color: $secondary, $green: 125);
}
border-top-width: 1px;
border-top-style: solid;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
&-text {
flex: 2;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
}
&-edge {
flex: 1;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
border-radius: 1em;
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;
}
}
}
}
}