-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowstudentdetail.css
More file actions
234 lines (201 loc) · 5.13 KB
/
Copy pathshowstudentdetail.css
File metadata and controls
234 lines (201 loc) · 5.13 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
/* 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;
}
/* General Body Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
color: #333;
}
/* Container for Main Content */
.container {
max-width: 1200px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
/* Heading */
h2 {
text-align: center;
color: #333;
margin-bottom: 25px;
font-size: 2em;
}
/* Filter Controls Form */
.filter-controls {
margin-bottom: 20px;
padding: 15px;
background-color: #e9e9e9;
border-radius: 5px;
display: flex;
justify-content: center;
flex-wrap: wrap; /* Allow items to wrap on smaller screens */
gap: 15px; /* Space between form elements */
}
.filter-controls label {
font-weight: bold;
color: #555;
margin-right: 5px;
white-space: nowrap; /* Prevent label wrapping */
}
.filter-controls input[type="text"],
.filter-controls select {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 1em;
flex-grow: 1; /* Allow inputs/selects to grow */
min-width: 150px; /* Minimum width for inputs/selects */
}
.filter-controls input[type="submit"],
.filter-controls button {
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
transition: background-color 0.3s ease;
white-space: nowrap; /* Prevent button text wrapping */
justify-content: center;
}
.filter-controls input[type="submit"] {
background-color: #04AA6D;
color: white;
}
.filter-controls input[type="submit"]:hover {
background-color: #059862;
}
#ClearFilterBtn {
background-color: #f44336;
color: white;
}
#ClearFilterBtn:hover {
background-color: #da190b;
}
/* Student Details Table */
#showstudent {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
#showstudent thead {
background-color: #4b97fa;
color: white;
}
#showstudent th,
#showstudent td {
padding: 12px 15px;
text-align: left;
border-bottom: 1px solid #ddd;
}
#showstudent tbody tr:nth-child(even) {
background-color: #f2f2f2;
}
#showstudent tbody tr:hover {
background-color: #ddd;
}
#showstudent td a {
color: #04AA6D;
text-decoration: none;
margin-right: 5px;
}
#showstudent td a:hover {
text-decoration: underline;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.navbar ul {
flex-direction: column; /* Stack navigation items vertically */
align-items: center;
}
.navbar li {
float: none; /* Remove float for vertical stacking */
width: 100%;
text-align: center;
}
.navbar li[style="float: right;"] {
margin-left: 0; /* Remove auto-margin for stacking */
}
.filter-controls form {
flex-direction: column; /* Stack form elements vertically */
align-items: stretch;
}
.filter-controls input[type="text"],
.filter-controls select,
.filter-controls input[type="submit"],
.filter-controls button {
width: 100%; /* Make inputs/buttons full width */
box-sizing: border-box; /* Include padding in width calculation */
}
#showstudent th,
#showstudent td {
padding: 8px 10px; /* Reduce padding for smaller screens */
font-size: 0.9em;
}
}
@media (max-width: 480px) {
.container {
margin: 10px auto;
padding: 10px;
}
h2 {
font-size: 1.5em;
}
#showstudent th,
#showstudent td {
padding: 5px;
font-size: 0.8em;
}
/* Adjust specific column widths if needed, or allow browser to handle */
#showstudent td:nth-child(4), /* Address */
#showstudent td:nth-child(8) { /* Subjects */
word-break: break-word; /* Allow long text to break */
}
}