-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinventory.css
224 lines (200 loc) · 6.29 KB
/
inventory.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
215
216
217
218
219
220
221
222
223
224
/* تحسين المظهر العام للنموذج */
form {
width: 50%; /* حجم النموذج 50% من الصفحة */
margin: 30px auto; /* توسيط النموذج */
padding: 20px;
background-color: #f4f4f4;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
border: 1px solid #ddd;
transition: box-shadow 0.3s ease;
}
@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
form:hover {
box-shadow:
0 12px 24px rgba(76, 175, 80, 0.4), /* ظل أخضر */
0 20px 40px rgba(76, 175, 80, 0.5), /* ظل أخضر إضافي */
0 25px 50px rgba(255, 0, 0, 0.4), /* ظل أحمر */
0 30px 60px rgba(255, 0, 0, 0.6); /* ظل أحمر إضافي */
animation: glowing 6s infinite ease-in-out; /* تأثير توهج متتابع بطيء */
}
@keyframes glowing {
0% {
box-shadow: 0 0 20px rgba(76, 175, 80, 1), 0 0 40px rgba(76, 175, 80, 1); /* توهج أخضر مشع */
}
50% {
box-shadow: 0 0 0 rgba(76, 175, 80, 0), 0 0 0 rgba(76, 175, 80, 0); /* يختفي التوهج ببطء */
}
100% {
box-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 40px rgba(255, 0, 0, 1); /* توهج أحمر مشع */
}
}
/* تحسين تنسيق النصوص */
label {
display: block;
margin-bottom: 10px;
font-size: 18px;
text-align: center;
font-weight: bold;
color: #333;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
transition: color 0.3s ease, transform 0.3s ease;
}
label:hover {
color: #4CAF50;
transform: scale(1.05);
}
/* تحسين مظهر الجدول */
#inventoryTable {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
overflow: hidden;
}
#inventoryTable th, #inventoryTable td {
padding: 12px;
border: 1px solid #ddd;
transition: background-color 0.3s ease, transform 0.3s ease;
}
/* تنسيق رأس الجدول */
#inventoryTable th {
background-color: #4CAF50;
color: white;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
/* تنسيق خلايا الجدول */
#inventoryTable td {
background-color: #f9f9f9;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}
#inventoryTable tr:hover td {
background-color: #e1ffe1;
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* إضافة تباين بين الصفوف */
#inventoryTable tr:nth-child(even) {
background-color: #f2f2f2;
}
/* تحسين النصوص */
#inventoryTable th, #inventoryTable td {
font-family: Arial, sans-serif;
font-size: 14px;
}
/* تحسين صناديق الإدخال */
input[type="text"], input[type="number"], select {
width: 50%;
padding: 10px;
margin: 8px auto;
display: block;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
input[type="text"]:focus, input[type="number"]:focus {
border-color: #4CAF50;
box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
outline: none;
}
/* تنسيق الأزرار */
input[type="submit"].submit-button {
position: relative; /* جعل الزر في موضع نسبي */
width: 50%; /* حجم الزر 50% */
padding: 12px;
margin: 20px auto;
display: block;
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
input[type="submit"].submit-button:hover {
background-color: #45a049;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
transform: scale(1.05);
}
input[type="submit"].submit-button:active {
transform: scale(0.95);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
/* تحسين الأزرار الإضافية */
button.action-button {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 10px 10px;
cursor: pointer;
border-radius: 4px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
button.action-button:hover {
background-color: #45a049;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* تحسين صندوق البحث */
#searchInput {
padding: 10px;
margin-top: 10px;
width: 300px;
font-size: 16px;
border: 1px solid #ddd;
border-radius: 4px;
}
/* تحسين العناوين بتأثيرات ثلاثية الأبعاد وتدرج ألوان متغير */
h1 {
text-align: center;
color: #4CAF50; /* لون افتراضي للنص */
font-size: 36px;
text-transform: uppercase;
letter-spacing: 2px;
background: linear-gradient(45deg, #4CAF50, #ff5722, #2196F3, #ffeb3b); /* تدرج ألوان */
background-size: 400% 400%; /* حجم الخلفية */
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; /* تطبيق الخلفية على النص */
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2),
0 0 10px rgba(76, 175, 80, 0.6),
0 0 20px rgba(76, 175, 80, 0.4);
transition: transform 0.3s ease, text-shadow 0.3s ease;
}
h1:hover {
transform: scale(1.05); /* تكبير النص قليلاً عند التحويم */
animation: colorChange 3s ease infinite; /* حركة تغير الألوان */
text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3),
0 0 20px rgba(76, 175, 80, 0.7),
0 0 30px rgba(76, 175, 80, 0.6);
}
/* تحريك تدرج الألوان */
@keyframes colorChange {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}