-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.css
More file actions
123 lines (123 loc) · 2.35 KB
/
admin.css
File metadata and controls
123 lines (123 loc) · 2.35 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
body {
font-family: Arial, sans-serif;
background: url(12.jpg) no-repeat;
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
}
#main {
width: 80%;
margin: 50px auto;
background-color: #fff;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
border-radius: 10px;
overflow: hidden; /* Added overflow to contain table and prevent stretching */
}
#header {
background-color: #007bff;
color: #fff;
padding: 20px;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
h1 {
margin: 0;
font-size: 24px;
}
#table-form {
padding: 20px;
}
input[type="text"], input[type="email"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
width: calc(100% - 22px);
}
#save-button {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
#save-button:hover {
background-color: #0056b3;
}
#error-message, #success-message {
padding: 10px;
margin-bottom: 10px;
display: none;
border-radius: 5px;
}
#error-message {
background-color: #dc3545;
color: #fff;
}
#success-message {
background-color: #28a745;
color: #fff;
}
#modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
}
#modal-form {
background-color: #fff;
width: 50%;
max-width: 500px;
padding: 20px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
#close-btn {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
#close-btn:hover {
color: #007bff;
}
/* Table Styles */
#table-data {
padding: 20px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 10px;
border-bottom: 1px solid #ddd;
text-align: left;
}
th {
background-color: #007bff;
color: #fff;
}
tr:hover {
background-color: #f2f2f2;
}
.edit-btn, .delete-btn {
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.edit-btn:hover, .delete-btn:hover {
background-color: #007bff;
color: #fff;
}