-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
214 lines (184 loc) · 3.65 KB
/
style.css
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
/* Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
background-color: #f4f7f9;
color: #333;
}
/* Form Container */
.form {
width: 320px;
margin: 40px auto;
padding: 20px 15px;
border-radius: 10px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
background-color: #fff;
}
/* Form Inputs */
.form input {
display: block;
width: 100%;
padding: 12px 10px;
margin: 15px 0;
border: 1px solid #ddd;
border-radius: 5px;
outline: none;
background-color: #f9f9f9;
color: #333;
font-size: 16px;
transition: border-color 0.3s, box-shadow 0.3s;
}
.form input:focus {
border-color: #007BFF;
box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}
/* Form Button */
.form button {
width: 100%;
padding: 12px 0;
margin-top: 10px;
border: none;
border-radius: 5px;
background-color: #007BFF;
color: #fff;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
.form button:hover {
background-color: #0056b3;
transform: translateY(-2px);
}
/* Notification */
.notify {
width: 50%;
margin: 50px auto;
padding: 10px;
/* background: #f4f4f9; Bootstrap green */
color: #000000;
font-weight: 400;
text-align: center;
border-radius: 5px;
/* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
}
/* Table Styles */
.table {
width: 50%;
margin: 20px auto;
}
.table table {
width: 100%;
border-collapse: collapse;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
background-color: #fff;
border-radius: 10px;
overflow: hidden;
}
.table table th,
.table table td {
padding: 15px 20px;
border-bottom: 1px solid #ddd;
text-align: left;
}
.table table th {
background-color: #f8f9fa; /* Light grey for table headers */
font-weight: bold;
}
.table table tr:last-child td {
border-bottom: none;
}
.table table td button {
padding: 8px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
.delBtn {
background: #dc3545; /* Bootstrap red */
color: #fff;
}
.updateBtn {
background: #007bff; /* Bootstrap blue */
color: #fff;
}
.table table td button:hover {
transform: translateY(-2px);
}
/* Notification Styles */
#notify {
background: #28a745;
color: #fff;
width: 300px;
margin: 70px auto;
padding: 1px;
text-align: center;
border-radius: 5px;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}
/* Visibility Classes */
.updateData {
display: none;
}
.show {
display: block;
}
.hide {
display: none;
}
/* Buttons */
#addData {
background-color: #ff69b4; /* Hot pink */
color: #fff;
border: none;
border-radius: 5px;
padding: 10px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
#update_data {
background-color: #6a5acd; /* Slate blue */
color: #fff;
border: none;
border-radius: 5px;
padding: 10px;
cursor: pointer;
transition: background-color 0.3s, transform 0.3s;
}
#addData:hover,
#update_data:hover {
transform: translateY(-2px);
}
/* Responsive Design */
@media (max-width: 768px) {
.form {
width: 80%;
}
.table {
width: 80%;
}
.notify {
width: 80%;
}
}
@media (max-width: 480px) {
.form {
width: 90%;
padding: 15px 10px;
}
.table {
width: 95%;
}
.notify {
width: 90%;
}
.table table th,
.table table td {
padding: 10px 15px;
}
.table table td button {
padding: 6px 10px;
}
}