|
1 | | -.right-bar-table { |
2 | | - display: table; /* Cambiado a table para mejor comportamiento de columnas */ |
3 | | - width: 100%; /* Ocupa todo el ancho disponible */ |
4 | | - border-collapse: collapse; /* Elimina espacios entre bordes */ |
5 | | - font-size: 1rem; /* Tamaño de fuente legible */ |
6 | | - text-align: center; /* Centra el texto en las celdas */ |
7 | | - border-radius: 1rem; /* Bordes redondeados */ |
8 | | - box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.1); /* Sombra para profundidad */ |
9 | | - table-layout: auto; /* Cambiado a auto para ancho dinámico de columnas */ |
10 | | - overflow-x: auto; /* Mantiene el scroll horizontal si es necesario */ |
11 | | - clip-path: inset( |
12 | | - 0 round 1rem |
13 | | - ); /* Recorta el área del scroll respetando el border-radius */ |
| 1 | +/* Common styles for both tables */ |
| 2 | +.table-base { |
| 3 | + width: 100%; |
| 4 | + border-collapse: collapse; |
| 5 | + font-size: 1rem; |
| 6 | + text-align: center; |
| 7 | + border-radius: 1rem; |
| 8 | + box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.1); |
| 9 | + clip-path: inset(0 round 1rem); |
| 10 | + overflow-x: auto; |
| 11 | +} |
| 12 | + |
| 13 | +/* Common cell styles */ |
| 14 | +.table-base th, |
| 15 | +.table-base td { |
| 16 | + word-wrap: break-word; |
| 17 | + overflow-wrap: break-word; |
| 18 | + white-space: normal; |
| 19 | + padding: 1vh; |
| 20 | + border: 0.2vh solid #ddd; |
| 21 | + text-align: center; |
14 | 22 | } |
15 | 23 |
|
16 | | -/* Ensures columns do not overflow */ |
17 | | -.right-bar-table th, |
18 | | -.right-bar-table td { |
19 | | - word-wrap: break-word; /* Wraps long words */ |
20 | | - overflow-wrap: break-word; /* Ensures proper text wrapping */ |
21 | | - white-space: normal; /* Allows text to wrap naturally */ |
| 24 | +.table-base th { |
| 25 | + background-color: #333; |
| 26 | + color: white; |
| 27 | + box-sizing: border-box; |
22 | 28 | } |
23 | 29 |
|
24 | | -.right-bar-table th { |
25 | | - background-color: #333; /* Dark background for contrast */ |
26 | | - color: white; /* White text for readability */ |
27 | | - padding: 1vh; /* Adds spacing inside header cells */ |
28 | | - border: 0.2vh solid #ddd; /* Adds subtle borders */ |
29 | | - text-align: center; /* Centers text */ |
30 | | - /* Eliminado el width fijo del 33% */ |
31 | | - box-sizing: border-box; /* Ensures width includes padding and borders */ |
| 30 | +.table-base td { |
| 31 | + transition: background-color 0.3s ease-in-out; |
32 | 32 | } |
33 | 33 |
|
34 | | -.right-bar-table td { |
35 | | - padding: 1vh; /* Adds spacing inside table cells */ |
36 | | - border: 0.2vh solid #ddd; /* Adds subtle borders */ |
37 | | - text-align: center; /* Centers text */ |
38 | | - transition: background-color 0.3s ease-in-out; /* Smooth hover effect */ |
| 34 | +.table-base td:hover { |
| 35 | + background-color: #f0f0f0; |
| 36 | + cursor: pointer; |
39 | 37 | } |
40 | 38 |
|
41 | | -/* Hover effect for table cells */ |
42 | | -.right-bar-table td:hover { |
43 | | - background-color: #f0f0f0; /* Light gray on hover */ |
44 | | - cursor: pointer; /* Indicates interactivity */ |
| 39 | +/* TCP FLAGS TABLE specific styles */ |
| 40 | +.tcp-flags-table { |
| 41 | + display: table; |
| 42 | + table-layout: auto; |
45 | 43 | } |
46 | 44 |
|
47 | | -/* Alternating row colors for better readability */ |
48 | | -.right-bar-table tr:nth-child(even) { |
49 | | - background-color: #f9f9f9; /* Light gray for even rows */ |
| 45 | +.tcp-flags-table tr:nth-child(even) { |
| 46 | + background-color: #f9f9f9; |
50 | 47 | } |
51 | 48 |
|
52 | | -.right-bar-table tr:nth-child(odd) { |
53 | | - background-color: #fff; /* White for odd rows */ |
| 49 | +.tcp-flags-table tr:nth-child(odd) { |
| 50 | + background-color: #fff; |
54 | 51 | } |
55 | 52 |
|
56 | | -/* Para asegurar que el contenedor de la tabla permita scroll horizontal */ |
57 | | -.right-bar-table-container { |
| 53 | +/* TCP table container for proper scrolling */ |
| 54 | +.tcp-flags-table-container { |
58 | 55 | overflow-x: auto; |
59 | 56 | border-radius: 1rem; |
60 | 57 | } |
| 58 | + |
| 59 | +/* ROUTER TABLE specific styles */ |
| 60 | +.router-table { |
| 61 | + display: block; |
| 62 | + table-layout: fixed; |
| 63 | +} |
| 64 | + |
| 65 | +.router-table th { |
| 66 | + width: 33%; |
| 67 | +} |
| 68 | + |
| 69 | +/* ARP TABLE specific styles */ |
| 70 | +.arp-table { |
| 71 | + width: 100%; |
| 72 | + table-layout: fixed; |
| 73 | +} |
| 74 | + |
| 75 | +/* Define consistent column widths for ARP table */ |
| 76 | +.arp-table th:nth-child(1), |
| 77 | +.arp-table td:nth-child(1) { |
| 78 | + width: 33%; |
| 79 | +} |
| 80 | + |
| 81 | +.arp-table th:nth-child(2), |
| 82 | +.arp-table td:nth-child(2) { |
| 83 | + width: 57%; |
| 84 | +} |
| 85 | + |
| 86 | +.arp-table th:nth-child(3), |
| 87 | +.arp-table td:nth-child(3) { |
| 88 | + width: 10%; /* Ensure consistent width for remove button column */ |
| 89 | +} |
0 commit comments