-
Notifications
You must be signed in to change notification settings - Fork 0
/
tennis_data_co_uk_apachejs.css
80 lines (67 loc) · 2.09 KB
/
tennis_data_co_uk_apachejs.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
/* Main container for the layout */
.main-container {
display: flex;
}
/* Sidebar styling */
#sidebar {
width: 200px; /* Fixed width for the sidebar */
height: 100vh; /* Full height of the viewport */
font-size: 0.9em; /* Reduced font size for all table text */
}
/* Container for the chart and table */
.content {
flex-grow: 1; /* Takes the remaining space */
display: flex;
flex-direction: column; /* Stack children vertically */
}
/* Chart (visualization) styling */
#visualization {
height: 600px; /* Adjust height as needed */
width: 100%; /* Full width of its container */
/* Add any additional styling for the visualization */
}
#data-table {
width: 90%; /* Table width is 90% of its container */
margin: 0 auto; /* Center the table in its container */
border-collapse: collapse; /* Removes gaps between borders */
text-align: center; /* Center text horizontally in each cell */
font-size: 0.9em; /* Reduced font size for all table text */
}
#data-table th, #data-table td {
border: 1px solid #ddd; /* Light grey border for cells */
padding: 8px; /* Padding inside each cell */
}
#data-table th {
background-color: #f2f2f2; /* Light grey background for headers */
color: black; /* Text color for headers */
font-weight: bold; /* Bold text for header */
}
#data-table tr:nth-child(even) {
background-color: #f9f9f9; /* Zebra striping for rows */
}
#data-table tr:hover {
background-color: #ddd; /* Highlight on hover */
}
#table-container {
margin-top: 50px; /* Adjust this value for desired space */
/* Other styling properties, if any */
}
/* Responsive styling for mobile devices */
@media (max-width: 768px) {
.main-container {
flex-direction: column; /* Stack sidebar and content vertically */
}
#sidebar {
width: 100%; /* Full width */
height: auto; /* Adjust height */
}
#table-container {
width: 100%; /* Full width */
}
.content {
width: 100%; /* Full width */
}
#visualization {
height: auto; /* Adjust height for mobile */
}
}