-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
221 lines (189 loc) · 3.93 KB
/
style.css
File metadata and controls
221 lines (189 loc) · 3.93 KB
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
210
211
212
213
214
215
216
217
218
219
220
221
body {
font-family: sans-serif;
--bs-bg-opacity: 1;
background: linear-gradient(135deg, #78B9B5, #0F828C, #065084, #320A6B) !important;
}
.btn {
margin-left: 5px !important;
border-radius: 50px !important; /* round all buttons */
}
.controls-card {
background-color: #ffffff;
border: 1px solid #dee2e6;
}
.tree-container-wrapper {
display: flex;
justify-content: center;
}
.tree-container {
width: 100%;
min-height: 500px;
background-color: #ffffff;
border: 1px solid #dee2e6;
overflow: auto; /* Add scrollbars if tree is too wide */
display: flex;
justify-content: center;
align-items: center;
}
#tree-svg {
width: 100%;
height: 100%;
min-width: 800px; /* Minimum width to avoid cramping small trees */
min-height: 500px;
}
.node circle {
stroke: #343a40;
stroke-width: 2px;
transition: fill 0.3s ease, stroke 0.3s ease;
}
.node text.value-text {
font-size: 16px;
font-weight: bold;
fill: #ffffff;
text-anchor: middle;
dominant-baseline: central;
}
.node text.height-text {
font-size: 11px;
fill: #6c757d;
text-anchor: middle;
dominant-baseline: central;
}
.link {
stroke: #6c757d;
stroke-width: 2px;
fill: none;
}
.mini-link {
stroke: #6c757d;
fill: none;
}
/* Default node color */
.node .node-circle {
fill: #0d6efd; /* Bootstrap Primary */
}
/* Highlighted for search */
.node.highlighted .node-circle {
fill: #198754; /* Bootstrap Success */
stroke: #198754;
stroke-width: 3px;
}
/* Highlight for traversal path */
.node.traversed .node-circle {
fill: #ffc107; /* Bootstrap Warning */
stroke: #ffc107;
}
#info-box {
padding: 10px 15px;
border-radius: 0.375rem; /* Bootstrap's rounded */
min-height: 50px;
text-align: center;
font-size: 1rem;
transition: all 0.3s ease;
display: flex;
justify-content: center;
align-items: center;
}
.info-found {
border: 1px solid #198754; /* Bootstrap Success */
background-color: #d1e7dd;
color: #0f5132;
}
.info-not-found {
border: 1px solid #dc3545; /* Bootstrap Danger */
background-color: #f8d7da;
color: #842029;
}
/* Styles for Details Modal */
.detail-step {
display: flex;
align-items: center;
padding: 1rem 0;
border-bottom: 1px solid #e9ecef;
}
.detail-step:last-child {
border-bottom: none;
}
.step-description {
flex-basis: 60%;
padding-right: 1rem;
font-family: "Courier New", Courier, monospace;
font-size: 1rem;
}
.step-description-only {
padding: 0.25rem 0;
font-family: "Courier New", Courier, monospace;
font-size: 1rem;
border-bottom: 1px dashed #eee;
}
.step-description-only:last-child {
border-bottom: none;
}
.mini-vis {
width: 100%; /* Take full width */
margin-top: 10px; /* Add some space above */
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
border: 1px solid #ddd;
border-radius: 5px;
background-color: #fdfdfd;
min-height: 150px;
}
.mini-tree-svg {
width: 100%;
height: auto;
}
.mini-svg {
width: 100%;
height: 60px;
}
.mini-node circle {
stroke-width: 2px;
}
.mini-node text {
font-size: 14px;
font-weight: bold;
fill: white;
text-anchor: middle;
dominant-baseline: central;
}
.current-node circle {
fill: #0d6efd; /* Bootstrap Primary */
stroke: #0a58ca;
}
.target-node circle {
fill: #ffc107; /* Bootstrap Warning */
stroke: #d9a406;
}
.comparison-arrow {
stroke: #6c757d;
stroke-width: 2;
marker-end: url(#arrowhead);
}
.comparison-text {
font-size: 18px;
font-weight: bold;
text-anchor: middle;
fill: #212529;
}
.operation-header {
background-color: #e7f1ff;
padding: 0.5rem 1rem;
margin-top: 1rem;
margin-bottom: 0.5rem;
border-left: 4px solid #0d6efd;
font-weight: bold;
}
.operation-header-child {
background-color: #dbf8fc;
padding: 0.5rem 1rem;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
border-left: 3px solid #9d0dfd;
}
.mini-tree-svg .node-circle {
stroke: black; /* Color of the border */
stroke-width: 0.5px; /* Thickness of the border */
}