-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
209 lines (189 loc) · 4.95 KB
/
style.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
body {
margin: 0;
padding: 0;
}
.modal {
display: none;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 50%;
/* More appropriate width */
height: auto;
/* Height based on content */
background-color: #f8f8ff;
/* Light pastel blue background */
z-index: 1000;
padding: 40px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
/* Soft shadow for depth */
border-radius: 8px;
/* Rounded corners */
box-sizing: border-box;
}
/* .modal .input-container {
margin-bottom: 20px;
} */
.modal label {
display: block;
/* Make label a block element to sit above the input */
margin-bottom: 5px;
/* Space between label and input */
font-size: 16px;
color: #5f5f7b;
/* Pastel dark lavender */
}
.modal input,
.modal textarea {
width: 100%;
/* Full width of the container */
padding: 12px;
border: 1px solid #a7bed3;
/* Pastel blue border */
border-radius: 4px;
font-size: 14px;
color: #333;
background-color: #e7eff6;
/* Very light pastel blue background */
box-sizing: border-box;
margin-bottom: 20px;
/* Adjust this value as needed */
}
.modal textarea {
resize: vertical;
/* Allow vertical resizing only */
height: 600px;
/* Initial height */
}
.selection-box {
position: fixed;
border: 2px dashed #a7bed3;
/* Pastel blue border to match modal */
background-color: rgba(142, 169, 204, 0.2);
/* Semi-transparent pastel blue background */
pointer-events: none;
display: block;
/* Initially hidden, shown during selection */
z-index: 999;
/* High z-index to ensure it's on top */
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
/* Soft shadow for depth */
border-radius: 8px;
/* Rounded corners */
}
.node {
font-size: 16px;
/* Increased font size */
font-weight: bold;
/* Make the text bolder */
border: 1px solid #a7bed3;
/* Softer border color */
padding: 10px;
/* Slightly more padding for better visual spacing */
background-color: #2e83a4;
/* A toned-down shade to match the modal */
color: white;
/* White text for better contrast and readability */
position: absolute;
border-radius: 8px;
/* Rounded corners for a modern look */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
/* Subtle shadow for depth */
text-align: center;
/* Center text alignment */
cursor: pointer;
/* Change cursor to indicate interactivity */
transition: transform 0.2s;
/* Smooth transition for interactions */
z-index: 1;
}
.node:hover {
transform: scale(1.05);
/* Slightly enlarge on hover for visual feedback */
}
.node-selected {
background-color: #3a6f8f;
/* Slightly darker background color */
border: 2px solid #ffcc00;
/* Brighter border for high visibility */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
/* Enhanced shadow for depth */
transform: scale(1.1);
/* Slightly larger scale for emphasis */
transition: transform 0.2s, box-shadow 0.2s, border 0.2s, background-color 0.2s;
/* Smooth transition for all changes */
}
.edge-line {
stroke: orange;
/* Orange color */
stroke-width: 3;
/* Slightly thicker line for visibility */
stroke-dasharray: none;
/* Continuous line, no dashes */
stroke-linecap: butt;
/* Round line caps for a smoother look */
fill: none;
/* No fill needed for a line */
}
.invDiv {
position: absolute;
background-color: #2e83a4;
z-index: 0;
}
.edge-label {
fill: orange;
text-anchor: middle;
dominant-baseline: hanging;
stroke: white;
stroke-width: 2px;
paint-order: stroke;
cursor: pointer;
}
.edge-label-selected {
font-weight: bold;
/* Bolder text for emphasis */
cursor: pointer;
/* Maintain pointer cursor for consistency */
text-anchor: middle;
/* Keep text centered */
dominant-baseline: hanging;
/* Maintain text baseline alignment */
font-size: 17px;
/* Slightly larger font size for emphasis */
filter: drop-shadow(3px 3px 2px rgba(0, 0, 0, 0.6));
/* Shadow for depth without a border */
transition: fill 0.2s, font-size 0.2s, filter 0.2s;
/* Smooth transition for changes */
}
button {
position: relative;
/* Changed to relative for general button styling */
padding: 3px 5px;
background-color: #5c5c5c;
/* Dark gray background */
color: white;
border: none;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
/* Soft shadow for depth */
transition: background-color 0.3s ease;
display: block;
left: 10px;
top: 10px;
margin-bottom: 10px;
}
button:hover {
background-color: #2e2e2e;
/* Slightly darker shade on hover */
}
#infoMenu {
display: none;
/* Rest of the styles like .modal */
}
/* Style for close button inside the menu */
#closeMenu {
/* Styling for close button */
}