-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
108 lines (85 loc) · 1.44 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
* {
box-sizing: border-box;
}
body {
background-color: black;
color: aliceblue;
height: 100vh;
margin: 0;
display: flex;
flex-flow: column nowrap;
user-select: none;
}
body > nav {
flex: 0 0;
display: flex;
align-items: center;
padding: 0.5em;
border-bottom: solid 1px grey;
}
body > div {
flex: 1;
display: grid;
grid-template: 1fr / 3em 9em 1fr;
}
#sidebar {
display: contents;
}
#categories {
overflow: auto;
border-right: solid 1px grey;
}
#choices {
overflow: auto;
border-right: solid 1px grey;
}
#workspaceContainer {
flex: 1;
overflow: hidden;
}
#workspace {
width: 0;
height: 0;
overflow: visible;
}
.block {
position: absolute;
background-color: #f1f1f1;
border: solid 2px #d3d3d3;
min-width: 16ch;
width: fit-content;
height: fit-content;
}
.block > .header {
padding: 0.5em;
cursor: move;
background-color: #2196f3;
}
.block > .content {
background-color: #222;
text-align: left;
}
.block > :is(.inputPorts, .outputPorts) {
white-space: nowrap;
}
.block .port {
/*
* if the shape or the radius changed,
* modify the redrawTheLine() in ./index.js accordingly
*/
--radius: 5px;
width: calc(2 * var(--radius));
height: calc(2 * var(--radius));
border-radius: var(--radius);
display: inline-block;
background-color: #2196f3;
}
.block.selected {
border-color: limegreen;
box-shadow: 0 0 5px limegreen;
}
.lineContainer {
stroke: hsl(207 90% 80%);
stroke-width: 3px;
stroke-linecap: round;
}