-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
152 lines (132 loc) · 2.62 KB
/
style.css
File metadata and controls
152 lines (132 loc) · 2.62 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
/* Reset & base styles */
* {
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
}
body {
background-color: #eef2f7;
padding: 40px;
color: #333;
}
/* Form Card */
.form-container {
background-color: #fff;
padding: 30px 40px;
max-width: 700px;
margin: auto;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.form-container h2 {
text-align: center;
margin-bottom: 25px;
color: #007bff;
}
.form-container table {
width: 100%;
border-collapse: separate;
border-spacing: 0 12px;
}
.form-container td {
padding: 10px;
}
.form-container td:first-child {
font-weight: 600;
width: 35%;
}
/* Inputs */
input[type="text"],
input[type="number"] {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 6px;
transition: 0.3s;
font-size: 15px;
}
input[type="text"]:focus,
input[type="number"]:focus {
border-color: #007bff;
outline: none;
}
/* Button */
input[type="button"] {
background-color: #007bff;
color: white;
padding: 12px 25px;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
margin-top: 10px;
transition: background 0.3s ease;
}
input[type="button"]:hover {
background-color: #0056b3;
}
/* Table Styling */
#loadtbl {
margin: 40px auto;
width: 100%;
max-width: 900px;
border-collapse: collapse;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
#loadtbl th {
background-color: #007bff;
color: white;
padding: 15px;
text-align: center;
}
#loadtbl td {
padding: 14px;
text-align: center;
border-bottom: 1px solid #eee;
}
/* Search Section */
#tblById {
margin: 40px auto;
background-color: #fff;
max-width: 500px;
padding: 20px;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}
#tblById td {
padding: 10px;
}
/* Displaying searched student info */
.results {
margin: 30px auto;
max-width: 600px;
background-color: #fff;
padding: 25px;
border-radius: 10px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}
.results h6 {
display: flex;
justify-content: space-between;
font-size: 16px;
padding: 6px 0;
border-bottom: 1px dashed #ccc;
}
.results h6 span {
font-weight: 600;
color: #333;
}
/* Responsive */
@media (max-width: 768px) {
.form-container, #tblById, .results, #loadtbl {
width: 95%;
padding: 15px;
}
input[type="button"] {
width: 100%;
}
}