-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliste_sites.css
More file actions
313 lines (271 loc) · 7.62 KB
/
Copy pathliste_sites.css
File metadata and controls
313 lines (271 loc) · 7.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
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
/* Styles spécifiques à la page liste_sites */
.list-container_lst_site {
width: 95%;
margin: 20px auto;
padding: 20px;
background-color: var(--container-bg);
border-radius: 15px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
border: 1px solid var(--border-color);
backdrop-filter: blur(10px);
position: relative;
}
.header-title-group {
display: flex;
align-items: center;
justify-content: center; /* Centrer le contenu */
gap: 20px;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 1px solid var(--border-color);
width: 100%;
}
.header-title-group h1 {
color: #ffffff;
margin: 0;
font-size: 1.8em;
text-transform: uppercase;
letter-spacing: 1px;
}
table {
width: 100%;
border-collapse: separate;
border-spacing: 0 5px;
margin-top: 20px;
}
th, td {
border: 1px solid var(--border-color);
padding: 8px 5px; /* Réduit pour gagner de l'espace */
text-align: center; /* Tout centrer */
color: var(--text-color);
white-space: nowrap;
font-size: 0.90em; /* Réduit pour accommoder plus de colonnes */
text-transform: capitalize !important;
}
/* Gestion du texte long pour les noms de sites et localités */
th:nth-child(5), td:nth-child(5), /* Localité */
th:nth-child(6), td:nth-child(6) { /* Site */
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
}
.table-container {
margin-top: 20px;
overflow-x: auto;
width: 100%;
}
thead th {
background-color: var(--card-bg);
color: #ffffff;
font-weight: 600;
text-align: center;
}
tbody tr {
background-color: rgba(255, 255, 255, 0.02);
transition: background-color 0.2s;
}
tbody tr:hover {
background-color: rgba(0, 119, 179, 0.15); /* Bleu HardLink subtil au lieu du blanc */
transition: background-color 0.3s ease;
}
.action-buttons {
display: flex;
flex-wrap: nowrap;
gap: 15px;
margin-bottom: 20px;
align-items: center;
width: 100%;
}
.filter-group {
display: flex;
gap: 10px;
flex: 2; /* S'étire comme dans liste_clients */
align-items: center;
}
.right-buttons-group {
display: flex;
gap: 10px;
flex: 3; /* S'étire pour les boutons */
}
.right-buttons-group .action-button {
flex: 1;
justify-content: center;
min-width: 150px;
}
/* Styles pour les contrôles et boutons */
.action-buttons {
display: flex;
flex-wrap: nowrap;
gap: 15px;
margin-bottom: 20px;
align-items: center;
width: 100%;
}
.filter-group {
display: flex;
gap: 10px;
flex: 2;
align-items: center;
}
.right-buttons-group {
display: flex;
gap: 10px;
flex: 3;
}
.right-buttons-group .action-button,
.right-buttons-group .back-btn {
flex: 1;
justify-content: center;
min-width: 150px;
}
.action-buttons #search-input {
flex: 1;
padding: 12px 15px;
background-color: var(--card-bg);
border: 1px solid var(--border-color);
color: var(--text-color);
border-radius: 8px;
transition: all 0.3s ease;
}
.action-buttons #search-input:focus {
border-color: var(--accent-blue);
background-color: rgba(255, 255, 255, 0.05);
box-shadow: 0 0 15px rgba(0, 119, 179, 0.3);
outline: none;
}
.filter-group select {
padding: 10px 30px 10px 15px;
background-color: #1e252e !important;
border: 1px solid var(--border-color);
color: var(--text-color) !important;
border-radius: 8px;
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e0e0e0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: calc(100% - 12px) center;
transition: all 0.3s ease;
font-size: 0.82em;
}
.filter-group select:focus {
border-color: var(--accent-blue);
box-shadow: 0 0 10px rgba(0, 119, 179, 0.2);
outline: none;
}
.filter-group select option {
background-color: #1e252e;
color: #e0e0e0;
}
/* Suppression des anciens styles redondants */
.back-link { display: none; }
.add-button, .back-btn {
background-color:#56a0f0;
color: black;background-color: #007bff;
color: white;
padding: 12px 25px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 17px;
transition: background-color 0.3s ease;
border: 1px solid black;
}
.action-buttons .add-button:hover,
.action-buttons .back-btn:hover {
background-color: #0056b3;
border: 2px solid #000000;
}
.action-buttons #export-excel-btn,
.action-buttons #import-excel-btn {
padding: 12px 20px;
font-size: 1.1em;
border-radius: 5px;
cursor: pointer;
white-space: nowrap;
background-color: #007bff;
color: white;
appearance: none;
transition: background-color 0.3s ease;
border: 1px solid black;
}
.action-buttons #export-excel-btn:hover,
.action-buttons #import-excel-btn:hover {
background-color: #09eb18;
border: 2px solid black;
}
.common-action-button {
padding: 15px 20px !important;
font-size: 1.1em;
border-radius: 5px;
cursor: pointer;
white-space: nowrap;
box-sizing: border-box;
line-height: 1.1em;
width: 160px;
border: 2px solid #000000;
height: 50px !important;
flex-shrink: 0; /* Empêche le bouton de rétrécir */
flex-grow: 0; /* Empêche le bouton de s'étirer */
margin: 0 !important;
}
.table-container th:nth-child(9),
.table-container td:nth-child(9) {
width: 120px; /* Ajustez cette valeur si nécessaire */
white-space: nowrap; /* Empêche le texte de passer à la ligne */
overflow: hidden; /* Cache le contenu qui dépasse */
text-overflow: ellipsis; /* Ajoute des points de suspension si le texte est tronqué */
}
/* Styles pour le logo */
.logo {
height: 40px;
border-radius: 12px;
background-color: white;
padding: 3px;
border: 1px solid var(--accent-blue);
z-index: 2;
}
/* Media Queries for Responsive Design */
/* Tablet Styles */
@media (max-width: 768px) {
.list-container_lst_site {
width: 100%;
padding: 15px;
margin: 20px 0;
}
.action-buttons {
flex-direction: column;
gap: 15px;
}
.filter-group {
flex-direction: column;
width: 100%;
}
.action-buttons #search-input,
.action-buttons select {
width: 100%;
}
.right-buttons-group {
flex-direction: column;
width: 100%;
}
.add-button, .back-btn, .common-action-button {
width: 100%;
justify-content: center;
}
}
/* Mobile Styles */
@media (max-width: 480px) {
.header-title-group {
flex-direction: column;
text-align: center;
}
.logo {
margin-bottom: 10px;
}
.table-container table {
font-size: 0.8em;
}
.actions-cell {
flex-direction: column;
}
}