-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
87 lines (81 loc) · 2.2 KB
/
styles.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
body {
background-color: rgba(255, 255, 255, 0.8);
/* Sets the background color with opacity */
margin: 0;
/* Reset default margin */
}
.node-container {
display: flex;
/* Use flex layout */
flex-direction: column;
/* Stack children vertically */
height: 100vh;
/* Set to full viewport height */
padding: 0;
/* Remove default padding */
}
.node-container #graph-container {
position: relative;
/* Position the graph container relative for absolute positioning of elements inside it */
flex: 1;
/* Take up remaining space */
width: 100%;
/* Ensure full width */
height: calc(100% - 40px);
/* Set height to 100% minus height of controls */
overflow: hidden;
/* Hide overflow to prevent resizing */
}
.node-container #selected-nodes {
position: absolute;
/* Position selected nodes container absolutely */
top: 0;
/* Adjust top position as needed */
left: 50%;
/* Adjust left position as needed */
transform: translateX(-50%);
/* Center horizontally */
z-index: 3;
/* Ensure it's above other elements */
background-color: rgba(255, 255, 255, 0.8);
/* Sets background color with opacity */
padding: 10px;
border: 1px solid #ccc;
}
.node-container #graph-container .node-controls {
position: absolute;
/* Position controls absolutely */
top: 0;
/* Position at the top */
right: 10px;
/* Adjust right spacing */
z-index: 2;
/* Ensure it's above other elements, under selected nodes */
padding: 10px;
}
.node-container #graph-container .search-container {
border-radius: 10px;
/* Rounded corners for the search container */
border-width: 2px;
/* Border width */
border-style: solid;
/* Solid border style */
color: #222a2a;
/* Text color */
overflow: hidden;
/* Hide overflow content */
height: 34px;
/* Fixed height */
}
.node-container #graph-container input {
color: #222a2a;
/* Text color */
border: none;
/* No border */
height: 34px;
/* Fixed height */
padding: 0 10px;
/* Padding on the sides */
background-color: rgba(255, 255, 255, 0.8);
/* Background color with opacity */
}