-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
259 lines (229 loc) · 5.83 KB
/
style.css
File metadata and controls
259 lines (229 loc) · 5.83 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
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
/* --- Global Styles & Reset --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
background-color: #f8f9fa; /* Lighter background */
color: #343a40; /* Darker text for better contrast */
}
/* --- Layout & Containers --- */
main {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
display: grid;
gap: 2rem;
}
section {
background-color: #ffffff;
padding: 1.5rem 2rem;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
/* --- Header --- */
header {
background: linear-gradient(90deg, #4a90e2, #357ABD); /* Gradient blue */
color: #fff;
padding: 1.5rem 0;
text-align: center;
margin-bottom: 0; /* Remove bottom margin */
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
header h1 {
font-weight: 400; /* Slightly bolder */
font-size: 2rem;
}
/* --- Search & Filter Section --- */
#search-section, #filter-section {
display: flex;
flex-wrap: wrap; /* Allow wrapping on smaller screens */
align-items: center;
gap: 1rem; /* Consistent gap */
}
#search-section label, #filter-section label {
font-weight: 500;
margin-right: 0.5rem;
min-width: 80px; /* Align labels */
text-align: right;
}
#search-section input[type="text"],
#filter-section input[type="text"],
#filter-section input[type="number"],
#filter-section select {
padding: 0.7rem 0.9rem;
border: 1px solid #ced4da; /* Softer border */
border-radius: 4px;
font-size: 0.95rem;
flex-grow: 1; /* Allow inputs to grow */
min-width: 120px; /* Minimum width for inputs */
}
#search-section button,
#filter-section button {
padding: 0.7rem 1.5rem;
background-color: #28a745; /* Bootstrap success green */
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.95rem;
transition: background-color 0.2s ease, transform 0.1s ease;
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
#search-section button:hover,
#filter-section button:hover {
background-color: #218838;
}
#search-section button:active,
#filter-section button:active {
transform: translateY(1px);
box-shadow: none;
}
/* --- Results Sections --- */
#results-section h2 {
color: #357ABD; /* Consistent blue */
margin-bottom: 1rem;
border-bottom: 2px solid #e9ecef; /* Lighter border */
padding-bottom: 0.5rem;
font-weight: 500; /* Slightly bolder headings */
font-size: 1.4rem;
}
#school-table-container,
#charts-container,
#stats-container {
min-height: 150px;
border: none; /* Remove dashed border */
border-radius: 4px;
margin-top: 1rem;
padding: 1rem;
background-color: #f8f9fa; /* Light background for content areas */
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}
/* --- Table Styles (will be added dynamically, but provide base) --- */
table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
font-size: 0.9rem;
background-color: #fff;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
th, td {
border: 1px solid #dee2e6;
padding: 10px 12px;
text-align: left;
vertical-align: middle;
}
th {
background-color: #e9ecef;
font-weight: 600;
color: #495057;
}
tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
tbody tr:hover {
background-color: #e9ecef;
}
/* --- Footer --- */
footer {
text-align: center;
margin-top: 3rem;
padding: 1.5rem 0;
color: #6c757d; /* Softer gray */
font-size: 0.9rem;
border-top: 1px solid #dee2e6;
background-color: #e9ecef;
}
/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
#search-section, #filter-section {
flex-direction: column;
align-items: stretch;
}
#search-section label, #filter-section label {
text-align: left;
min-width: auto;
margin-bottom: 0.3rem;
}
}
@media (max-width: 768px) {
header h1 {
font-size: 1.7rem;
}
main {
margin: 1rem auto;
}
section {
padding: 1rem 1.5rem;
}
#search-section input[type="text"],
#filter-section input[type="text"],
#filter-section input[type="number"],
#filter-section select,
#search-section button,
#filter-section button {
font-size: 0.9rem;
padding: 0.6rem 0.8rem;
}
}
/* --- Chart Canvas --- */
canvas {
max-width: 100%;
height: auto;
}
/* --- Comparison Table Styles --- */
#comparison-container {
margin-top: 2rem; /* Add space above the comparison */
padding: 1.5rem;
background-color: #fff; /* White background for the container */
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
#comparison-container h3 {
color: #357ABD; /* Consistent blue heading */
margin-bottom: 1rem;
border-bottom: 2px solid #e9ecef;
padding-bottom: 0.5rem;
font-weight: 500;
font-size: 1.3rem;
}
.comparison-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
font-size: 0.9rem;
table-layout: fixed; /* Helps with column width consistency */
}
.comparison-table th,
.comparison-table td {
border: 1px solid #dee2e6;
padding: 10px 12px;
text-align: left;
vertical-align: top; /* Align content to the top */
word-wrap: break-word; /* Wrap long text */
}
.comparison-table th {
background-color: #e9ecef;
font-weight: 600;
color: #495057;
text-align: center; /* Center school names */
}
.comparison-table td:first-child {
font-weight: bold; /* Make attribute labels bold */
background-color: #f8f9fa; /* Slightly different background for labels */
width: 150px; /* Fixed width for attribute labels */
}
/* --- Sort Indicator --- */
.sort-indicator {
font-size: 0.8em;
margin-left: 5px;
color: #6c757d;
}
/* --- Checkbox Style --- */
.school-select-checkbox {
cursor: pointer;
}