-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathstyles.css
494 lines (427 loc) · 10.4 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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
/* styles.css */
/* General body styling */
body {
font-family: 'Fira Code', monospace;
background-color: #f4f4f9;
margin: 0;
padding: 0;
color: #333;
text-align: center;
overflow-x: hidden;
}
/* Container to hold all content */
.container {
max-width: 100%; /* Allows full viewport width */
margin: 0 auto;
padding: 20px;
}
/* Header styling */
.header {
display: flex;
align-items: center;
justify-content: center;
padding: 30px 20px;
gap: 30px;
border-bottom: none;
background-color: transparent;
transition: background-color 0.3s ease-in-out;
}
/* Enhanced heading styling */
.header h1 {
margin: 0;
font-size: 42px;
font-family: 'Fira Code', monospace;
text-align: center;
font-weight: 700;
letter-spacing: 1.5px;
color: #333;
transition: color 0.3s ease-in-out;
}
.header h1:hover {
color: #b20002;
}
/* Logo styling */
.logo {
max-width: 120px;
max-height: 100px;
height: auto;
object-fit: contain;
transition: transform 0.3s ease-in-out;
}
.armour-logo {
max-width: 150px;
max-height: 120px;
}
/* Hover effect for logos */
.logo:hover {
transform: scale(1.1);
}
/* Count styling */
.count {
font-size: 1.3em;
color: #333;
margin: 10px 0;
padding: 5px;
border-radius: 5px;
text-align: center;
}
/* Search bar styling */
.searchsection {
margin-bottom: 10px;
position: relative;
}
.search {
position: relative;
}
.searchbar {
width: 100%;
max-width: 900px;
padding: 12px 40px 12px 20px; /* Adjusted padding for the clear button */
font-size: 18px;
margin: 20px auto;
border: 1px solid #ccc;
border-radius: 30px;
background-color: #ffffff;
color: #333;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
transition: border-color 0.2s, box-shadow 0.2s;
font-family: 'Fira Code', monospace;
box-sizing: border-box;
}
.searchbar:focus {
background-color: #edf2fb;
outline: none;
}
.searchbar:hover {
background-color: #c9c9c9;
}
/* Close search button styling */
.closebtn {
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
}
.closebtn img {
width: 24px;
height: 24px;
}
/* Predefined Patterns */
.predefined-patterns {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 10px;
overflow-x: auto;
margin: 10px auto;
padding: 10px 0;
width: 100%;
}
.predefined-patterns button {
font-size: 14px;
padding: 8px 16px;
border-radius: 100px;
border: 1px solid #000000;
background-color: #f98d8d;
color: rgb(0, 0, 0);
cursor: pointer;
font-family: 'Fira Code', monospace;
transition: background-color 0.3s, transform 0.2s ease-in-out;
white-space: nowrap;
}
.predefined-patterns button:hover,
.predefined-patterns button:focus {
background-color: #e67e7e;
transform: scale(1.05);
outline: none;
}
/* Status Message and Spinner */
#status {
text-align: center;
font-size: 16px;
color: #666;
font-family: 'Fira Code', monospace;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}
.spinner {
border: 4px solid rgba(0, 0, 0, 0.1);
width: 24px;
height: 24px;
border-radius: 50%;
border-left-color: #09f;
animation: spin 1s linear infinite;
display: none; /* Initially hidden */
margin-left: 10px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Table Styling */
table {
width: 100%;
border-collapse: collapse;
background-color: #ffffff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
text-align: center; /* Center content horizontally */
}
thead {
background-color: #b20002;
color: #ffffff;
text-transform: uppercase;
}
thead th {
padding: 20px;
position: sticky;
top: 0; /* Sticks to the top of the viewport */
font-size: 18px;
font-weight: 600;
letter-spacing: 0.05em;
background-color: #b20002;
z-index: 2; /* Ensures headers stay above other content */
text-align: center; /* Center header content */
vertical-align: middle; /* Center header content vertically */
}
tbody tr {
border-bottom: 1px solid #e0e0e0;
transition: background-color 0.3s;
}
tbody tr:nth-child(even) {
background-color: #f7f9fc;
}
tbody tr:nth-child(odd) {
background-color: #ffffff;
}
tbody tr:hover {
background-color: #f1f5f9;
cursor: pointer;
}
td {
padding: 18px 28px;
font-size: 18px;
color: #333;
text-align: center; /* Center cell content */
vertical-align: middle; /* Center cell content vertically */
white-space: pre-wrap;
}
td:first-child {
padding-left: 35px;
}
td:nth-child(2),
td:nth-child(3),
td:nth-child(4) {
padding-left: 40px;
}
.port-entry,
.service-entry,
.product-version-entry {
display: block;
padding: 6px 0;
}
/* Highlighted Text */
.highlight {
background-color: yellow;
font-weight: bold;
}
/* Responsive Design */
@media (max-width: 768px) {
.header {
flex-direction: column;
align-items: flex-start;
}
.predefined-patterns {
flex-direction: column;
align-items: center;
}
.predefined-patterns button {
width: 100%;
max-width: 300px;
}
thead th,
tbody td {
padding: 12px;
font-size: 16px;
}
.searchbar {
font-size: 16px;
}
.count {
font-size: 1.1em;
}
.pagination-container button {
padding: 8px 16px;
font-size: 14px;
}
.pagination-container span {
font-size: 16px;
}
/* Adjust table container padding for smaller screens */
.table-container {
padding: 5px;
}
table {
font-size: 14px;
}
th, td {
padding: 10px;
}
}
/* Anchor tag styling */
a {
color: inherit;
text-decoration: none;
}
a:hover {
color: #b20002;
text-decoration: none;
}
/* Machine name container styling */
.machine-name-container {
display: flex;
align-items: center;
justify-content: center; /* Center the content */
}
/* Machine name styling */
/* Ensure machine name and platform tag are displayed inline */
.machine-name, .platform-tag {
display: inline-block; /* Display them inline */
vertical-align: middle; /* Align vertically in the middle */
margin-right: 10px; /* Add spacing between the elements */
}
.platform-tag {
font-size: 0.75em;
padding: 3px 8px;
border-radius: 12px;
color: #fff;
font-weight: 600;
display: inline-block;
text-transform: uppercase;
letter-spacing: 0.05em;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, transform 0.3s ease;
}
/* VulnHub specific styling */
.vulnhub-tag {
background: linear-gradient(135deg, #ff7300, #ff7300);
border: 1px solid #ff7300;
}
/* InfosecWarrior specific styling */
.infosecwarrior-tag {
background: linear-gradient(135deg, #3143e4, #3143e4);
border: 1px solid #3143e4;
}
/* HTB specific styling */
.hack-the-box-tag, .htb-tag, .Hack-The-Box-tag {
background: linear-gradient(135deg, #9fef00, #9fef00);
border: 1px solid #63c423;
}
/* Other platform styling */
.other-tag {
background: linear-gradient(135deg, #6c757d, #6c757d);
border: 1px solid #6c757d;
}
/* Container for Pagination */
.pagination-container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 12px; /* Increased gap for better spacing */
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin-top: 25px; /* Adjusted margin for better spacing */
}
/* General Button Styling */
.pagination-button {
padding: 10px 16px;
background-color: #f7f7f7; /* Slightly brighter color for better contrast */
border: 1px solid #ddd;
color: #555;
font-size: 14px;
font-weight: 500;
border-radius: 8px; /* More rounded border for modern look */
cursor: pointer;
transition: all 0.2s ease-in-out; /* Faster transition */
outline: none;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for better depth */
}
.pagination-button:disabled {
background-color: #ececec;
color: #aaa;
cursor: not-allowed;
border-color: #dcdcdc;
}
.pagination-button:hover:not(:disabled),
.page-number:hover {
background-color: #b20002; /* Bootstrap's danger color for hover */
color: #fff;
border-color: #b20002;
box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3); /* Red shadow for emphasis */
}
.pagination-button:focus-visible,
.page-number:focus-visible {
outline: 3px solid rgba(220, 53, 69, 0.5); /* Matching focus outline */
}
/* Page Numbers Container */
.pagination-pages {
display: flex;
gap: 10px; /* Increased gap for better spacing */
}
/* Page Number Buttons */
.page-number {
padding: 10px 16px;
border-radius: 8px; /* More rounded shape */
background-color: #f7f7f7;
color: #555;
border: 1px solid #ddd;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
/* Active Page Styling */
.page-number.active {
background-color: #b20002; /* Bootstrap's danger color */
color: #fff;
border-color: #b20002;
font-weight: 600; /* Increased font weight for emphasis */
box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4); /* Red shadow for active page */
cursor: default;
}
/* Hover Effect for Page Numbers */
.page-number:hover {
background-color: #dc3545;
color: white;
border-color: #dc3545;
}
/* Responsive Pagination */
@media (max-width: 600px) {
.pagination-button, .page-number {
padding: 8px 14px; /* Adjusted padding for small screens */
font-size: 12px;
}
.pagination-container {
flex-wrap: wrap;
gap: 10px; /* Reduced gap for small screens */
}
}
/* Additional Styling for Better Visibility and Accessibility */
.pagination-button,
.page-number {
user-select: none; /* Prevent text selection */
text-align: center;
}
.pagination-button:active,
.page-number:active {
transform: scale(0.95); /* Scale down on click for feedback */
}