-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathperformance.css
More file actions
165 lines (148 loc) · 3.65 KB
/
performance.css
File metadata and controls
165 lines (148 loc) · 3.65 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
/* Basic Reset & Body Styling
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f4f7f6;
color: #333;
line-height: 1.6;
}*/
/* Navigation Bar Styling */
.navbar {
background-color: #2c3e50; /* Dark blue-gray */
color: white;/*added*/
padding: 15px 0;/*added*/
/*overflow: hidden;*/
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.navbar ul {
list-style-type: none;
margin: 0;
padding: 0;
/* display: flex; /* Use flexbox for horizontal layout */
/*justify-content: center; /* Center the navigation items */
/* flex-wrap: wrap; /* Allow items to wrap on smaller screens */
text-align: center;/*added*/
}
.navbar ul li{ /*added*/
display: inline-block;
margin-right: 30px;
}
.navbar ul li a {
/* display: block;*/
color: white;
/* text-align: center;*/
padding: 10px 15px;
text-decoration: none;
transition: background-color 0.3s ease, color 0.3s ease;
/*font-weight: 400;*/
white-space: nowrap; /* Prevents text from breaking into multiple lines */
border-radius: 5px;/*added*/
}
.navbar ul li a:hover {
background-color: #3498db; /* Slightly lighter on hover */
color: white; /* Light gray text on hover */
}
.navbar ul li a.active {
background-color: #3498db; /* Greenish-blue for active link */
color: white;
/*font-weight: 700;*/
}
/* Special styling for logout button, pushed to the far right if space allows */
.navbar ul li.last-child {
float: right;
margin-right: 20px;
}
/* Basic Responsiveness for smaller screens */
@media (max-width: 768px) {
.navbar ul {
flex-direction: column; /* Stack navigation items vertically */
align-items: center; /* Center items when stacked */
}
.navbar li.logout {
margin-left: 0; /* Remove auto margin when stacked */
}
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa;
color: #333;
}
.graphs-container {
max-width: 1200px;
margin: 30px auto;
padding: 20px;
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 20px;
}
h1 {
width: 100%;
text-align: center;
color: #0056b3;
margin-bottom: 30px;
font-size: 2.2em;
}
.graph-box {
flex: 1;
/* Reduced max-width for a slightly more compact horizontal size */
min-width: 300px; /* Adjusted min-width slightly */
max-width: 380px; /* Reduced max-width from 380px to 350px */
max-height: 300px;
padding: 20px;
background-color: #e9ecef;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
}
.graph-box h2 {
color: #007bff;
font-size: 1.5em;
margin-bottom: 15px;
}
canvas {
max-width: 100%;
/* Reduced height for canvases */
height: 200px; /* Reduced from 300px to 250px */
}
.info-message {
font-size: 1.1em;
color: #dc3545;
font-weight: bold;
padding: 15px;
border: 1px solid #dc3545;
border-radius: 5px;
background-color: #f8d7da;
margin-top: 20px;
width: 90%;
box-sizing: border-box;
}
/* Responsive adjustments */
@media (max-width: 1000px) {
.graphs-container {
flex-direction: column;
align-items: center;
}
.graph-box {
max-width: 90%;
min-width: unset;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.8em;
}
.graph-box h2 {
font-size: 1.3em;
}
}