-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfacultyshowresultdetails.css
More file actions
247 lines (213 loc) · 6.4 KB
/
facultyshowresultdetails.css
File metadata and controls
247 lines (213 loc) · 6.4 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
/* General Body and Container Styling */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
background-color: #f8f9fa; /* Light gray background */
color: #333;
line-height: 1.6;
}
.container {
max-width: 1200px; /* Wider container for more content */
margin: 30px auto;
background-color: #ffffff;
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
}
h2 {
text-align: center;
color: #0056b3; /* Darker blue for headings */
margin-bottom: 25px;
font-size: 2em;
font-weight: 600;
}
/* --- 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;
}
/* --- Filter Controls Styling --- */
.filter-controls {
margin-bottom: 30px;
padding: 20px;
background-color: #e9ecef; /* Light gray background for filter section */
border-radius: 8px;
border: 1px solid #dee2e6;
display: flex;
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
gap: 15px; /* Space between filter elements */
align-items: center;
justify-content: center; /* Center filter elements */
}
.filter-controls form {
display: contents; /* Allows children to be flex items of parent .filter-controls */
}
.filter-controls label {
font-weight: 600;
color: #555;
white-space: nowrap; /* Prevents label text from wrapping */
}
.filter-controls input[type="text"],
.filter-controls select {
padding: 10px 12px;
border: 1px solid #ced4da;
border-radius: 5px;
font-size: 0.95em;
min-width: 150px; /* Ensures a minimum width for inputs/selects */
box-sizing: border-box; /* Include padding and border in element's total width */
}
.filter-controls input[type="submit"],
.filter-controls button {
padding: 10px 20px;
background-color: #28a745; /* Green for search/submit */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
font-weight: 600;
transition: background-color 0.2s ease, transform 0.1s ease;
white-space: nowrap; /* Prevents button text from wrapping */
}
.filter-controls input[type="submit"]:hover,
.filter-controls button:hover {
background-color: #218838; /* Darker green on hover */
transform: translateY(-1px); /* Slight lift effect */
}
#ClearFilterBtn {
background-color: #dc3545; /* Red for clear button */
}
#ClearFilterBtn:hover {
background-color: #c82333; /* Darker red on hover */
}
/* --- Table Styling --- */
#showresult {
width: 100%;
border-collapse: collapse; /* Collapses borders between cells */
margin-top: 25px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow for table */
border-radius: 8px; /* Rounded corners for the table */
overflow: hidden; /* Ensures rounded corners apply to content */
}
#showresult th,
#showresult td {
border: 1px solid #e0e0e0; /* Lighter border for cells */
padding: 15px;
text-align: left;
}
#showresult th {
background-color: #f2f2f2; /* Light gray for header cells */
font-weight: 700; /* Bolder header text */
color: #555;
text-transform: uppercase; /* Uppercase header text */
font-size: 0.9em;
}
#showresult tbody tr:nth-child(even) {
background-color: #f9f9f9; /* Zebra striping for readability */
}
#showresult tbody tr:hover {
background-color: #e9f5ff; /* Light blue on row hover */
cursor: pointer;
}
/* Styling for action links (Edit | Delete) */
#showresult td a {
text-decoration: none;
color: #007bff; /* Blue for links */
margin-right: 5px;
transition: color 0.2s ease;
}
#showresult td a:hover {
color: #0056b3; /* Darker blue on link hover */
text-decoration: underline;
}
/* Styling for the 'No data found' message */
#no-data-found-row td {
background-color: #fff3cd !important; /* Light yellow background */
color: #856404; /* Darker yellow text */
font-weight: 500;
text-align: center;
padding: 20px;
font-size: 1.1em;
border-bottom: 2px solid #ffeeba; /* Bottom border for emphasis */
}
/* --- Responsive Design --- */
@media (max-width: 768px) {
.container {
margin: 20px;
padding: 20px;
}
.navbar ul {
flex-direction: column; /* Stack nav items vertically on small screens */
align-items: center;
}
.navbar li:last-child {
margin-left: 0; /* Remove margin-left auto */
}
.filter-controls {
flex-direction: column; /* Stack filter controls vertically */
align-items: stretch; /* Stretch items to fill width */
}
.filter-controls input[type="text"],
.filter-controls select {
width: 100%; /* Full width for inputs/selects */
min-width: unset; /* Remove min-width constraint */
}
/* Make table horizontally scrollable on small screens */
.container {
overflow-x: auto;
}
#showresult {
min-width: 600px; /* Ensure table has a minimum width for scrolling */
}
}
@media (max-width: 480px) {
h2 {
font-size: 1.5em;
}
.filter-controls input[type="submit"],
.filter-controls button {
width: 100%; /* Full width for buttons */
}
}