123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- .srd-node {
- width: 200px;
- }
- .srd-node--selected > * {
- border: 4px solid rgb(0, 192, 255) !important;
- border-radius: 20px;
- }
-
- .srd-port {
- background: rgb(0, 192, 255);
- border-radius: 10px;
- border: black 4px solid;
- &.connected {
- background: #CAB422;
- }
- }
- .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;
- }
- }
- .preview {
- border-bottom-left-radius: 16px;
- border-bottom-right-radius: 16px;
- padding-top: 2px;
- }
- .inputs {
- grid-row: 2;
- grid-column: 1;
- .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: -11px;
- }
- .input-port-label {
- margin-left: 10px;
- grid-column: 2;
- grid-row: 1;
- margin-bottom: 2px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- }
- .outputs {
- grid-row: 2;
- grid-column: 2;
- .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;
- }
- .output-port-label {
- text-align: right;
- margin-right: 10px;
- grid-column: 1;
- grid-row: 1;
- margin-bottom: 2px;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- }
- }
- }
- }
|