123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- .srd-node {
- width: 200px;
- }
- .srd-node--selected {
- .input-port-border {
- border-color: rgb(0, 192, 255) !important;
- }
- .output-port-border {
- border-color: rgb(0, 192, 255) !important;
- }
- }
- .srd-default-link--path-selected {
- animation: 0s !important;
- }
-
- .srd-port {
- grid-column: 1;
- grid-row: 1;
- background: #2796B2;
- border-radius: 10px;
- transform: scale(1);
- &.connected {
- background: #CAB422;
- }
- &:hover {
- background: greenyellow !important;
- }
- }
- .diagramBlock {
- background: white;
- width: 100%;
- border: 4px solid black;
- border-radius: 20px;
- display: grid;
- grid-template-rows: 30px auto;
- grid-template-columns: 50% 50%;
- &.input {
- background: #40866E;
- color:white;
- .value {
- grid-row: 2;
- }
- .outputs {
- transform: translateY(5px);
- }
- }
- &.attribute {
- background: #40866E;
- }
- &.output {
- background: blue;
- color:white;
- .inputs {
- color:white;
- }
- }
- .header {
- grid-row: 1;
- grid-column: 1 / span 2;
- border: 4px solid black;
- border-top-right-radius: 16px;
- border-top-left-radius: 16px;
- font-size: 16px;
- text-align: center;
- margin: -1px;
-
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- background: black;
- color: white;
- }
- .value {
- grid-row: 3;
- grid-column: 1 / span 2;
- height: 34px;
- text-align: center;
- font-size: 18px;
- font-weight: bold;
- margin: 0 10px;
- .value-text {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- }
- .inputs {
- grid-row: 2;
- grid-column: 1;
- padding-bottom: 8px;
- .input-port {
- display: grid;
- grid-template-columns: 10px calc(100% - 10px);
- grid-template-rows: 100%;
- .input-port-plug {
- grid-column: 1;
- grid-row: 1;
- display: grid;
- align-content: center;
- margin-left: -8px;
- position: relative;
- &:hover {
- .input-port-connection {
- background: greenyellow !important;
- }
- }
- .input-port-connection {
- pointer-events: none;
- grid-column: 1;
- grid-row: 1;
- background: #2796B2;
- border-radius: 10px;
- }
- .input-port-type {
- width: 15px;
- pointer-events: none;
- grid-column: 1;
- grid-row: 1;
- display: grid;
- align-items: center;
- justify-items: center;
- transform: scale(1);
- img {
- width: 12px;
- }
- }
- .input-port-border {
- pointer-events: none;
- grid-column: 1;
- grid-row: 1;
- border: 4px solid black;
- width: 4px;
- height: 7px;
- border-right: 0;
- position: absolute;
- border-bottom-left-radius: 10px;
- border-top-left-radius: 10px;
- transform: translateX(-2px) scale(1.2);
- }
- }
- .input-port-label {
- grid-column: 2;
- grid-row: 1;
- margin-bottom: 2px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- }
- .outputs {
- grid-row: 2;
- grid-column: 2;
- padding-bottom: 8px;
- .output-port {
- display: grid;
- grid-template-columns: calc(100% - 10px) 10px;
- grid-template-rows: 100%;
- .output-port-plug {
- grid-column: 2;
- grid-row: 1;
- display: grid;
- align-content: center;
- position: relative;
- margin-left: 3px;
- &:hover {
- .output-port-connection {
- background: greenyellow !important;
- }
- }
- .output-port-connection {
- pointer-events: none;
- grid-column: 1;
- grid-row: 1;
- background: #2796B2;
- border-radius: 10px;
- }
- .output-port-type {
- pointer-events: none;
- grid-column: 1;
- grid-row: 1;
- display: grid;
- align-items: center;
- justify-items: center;
- transform: scale(1);
- img {
- width: 12px;
- }
- }
- .output-port-border {
- pointer-events: none;
- grid-column: 1;
- grid-row: 1;
- border: 4px solid black;
- width: 4px;
- border-left: 0;
- border-left: 0;
- transform: translateX(9px) scale(1.2);
- border-bottom-right-radius: 10px;
- border-top-right-radius: 10px;
- }
- }
- .output-port-label {
- text-align: right;
- grid-column: 1;
- grid-row: 1;
- margin-bottom: 2px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- }
- &.texture-block {
- display: grid;
- grid-template-rows: 30px auto 1fr;
- grid-template-columns: calc(100% - 60px) 60px;
- .inputs {
- grid-column: 1;
- grid-row: 2;
- }
- .outputs {
- grid-column: 2;
- grid-row: 2 / span 2;
- }
- .textureLine {
- height: 140px;
- grid-column: 1;
- grid-row: 3;
- overflow: hidden;
- border-bottom-left-radius: 16px;
- border: black 4px solid;
- border-left: 0px;
- border-bottom: 0px;
- canvas {
- width: 100%;
- height: 100%;
- }
- }
- }
- }
|