-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate_integration.css
More file actions
282 lines (242 loc) · 5.47 KB
/
Copy pathtemplate_integration.css
File metadata and controls
282 lines (242 loc) · 5.47 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
/* ============================================================
template_integration.css
Global layout & template styles — loaded before DSFR
============================================================ */
/* ── Reset ── */
body {
margin: 0;
background-color: white;
}
.fr-container, .fr-container-lg, .fr-container-md, .fr-container-sm{
max-width: 95% !important;
}
/* ── Header ── */
#div_header {
background-color: #f8f8f8;
border-bottom: 1px solid #e7e7e7;
margin-bottom: 20px;
display: flex;
align-items: center;
}
.state_logo {
width: 15%;
height: 100px;
display: block;
margin-top: 2%;
margin-left: 2%;
}
.state_logo img {
max-height: 80px;
}
#header_title h1 {
font-size: 18px;
font-weight: bold;
}
#header_title h2 {
font-size: 14px;
}
/* ── Layout sections ── */
.main,
#use_case_description,
#div_use_case_per_user_role,
#div_table {
margin: 0 2%;
font-size: 14px;
}
/* ── Filters ── */
.div_filters {
padding-top: 2%;
display: flex;
margin: 0 2%;
font-size: 14px;
}
.div_filters div {
margin-right: 15px;
font-size: 14px;
}
/* ── Form controls ── */
select,
input {
padding: 5px;
}
/* ── Table ── */
table {
width: 90%;
border-collapse: collapse;
font-family: Arial, sans-serif;
margin: 20px 0;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
th,
td {
border: 1px solid #ddd;
padding: 12px;
text-align: left;
}
th {
background-color: #00457f;
color: white;
text-align: center;
}
tr:hover {
background-color: #f1f1f1;
cursor: pointer;
}
caption {
font-size: 1.5em;
margin-bottom: 10px;
font-weight: bold;
}
/* ============================================================
dsfr-interface.css
DSFR component overrides — loaded AFTER DSFR stylesheet
============================================================ */
/* ── fr-card: remove enforced min-height ── */
.fr-card {
min-height: auto !important;
height: fit-content !important;
}
/* ── fr-card: tighten padding ── */
.fr-card__body {
padding: 0.75rem 1rem !important;
}
/* ── fr-card__content: remove default margin and use flex column ── */
.fr-card__content {
margin: 0 !important;
padding: 0 !important;
}
/* ── fr-card__title: force display order above fr-card__detail ── */
.fr-card__title {
order: 0 !important;
color: var(--text-action-high-blue-france) !important;
}
/* ── fr-card: subtle hover effect ── */
.fr-card {
transition: transform 0.15s ease, background-color 0.15s ease;
}
.fr-card:hover {
background-color: var(--background-alt-grey-hover);
transform: translateY(-1px);
}
/* ── Two-column card layout (info left / slots right) ── */
.sas-card-layout {
display: flex;
flex-direction: row !important;
gap: 1.5rem;
align-items: flex-start;
}
.sas-card-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.sas-card-slots {
flex-shrink: 0;
width: 180px;
display: flex;
flex-direction: column;
gap: 0.4rem;
align-items: stretch;
border-left: 1px solid var(--border-default-grey);
padding-left: 1rem;
}
.sas-slot-btn {
width: 100% !important;
justify-content: center !important;
font-size: 0.75rem !important;
padding: 0.35rem 0.5rem !important;
white-space: nowrap;
}
/* ── Responsive: stack columns on mobile ── */
@media (max-width: 576px) {
.sas-card-layout {
flex-direction: column;
}
.sas-card-slots {
width: 100%;
border-left: none;
border-top: 1px solid var(--border-default-grey);
padding-left: 0;
padding-top: 0.75rem;
}
/* ── Responsive: stack columns on mobile ── */
@media (max-width: 576px) {
.sas-card-layout {
flex-direction: column;
}
.sas-card-slots {
width: 100%;
border-left: none;
border-top: 1px solid var(--border-default-grey);
padding-left: 0;
padding-top: 0.75rem;
}
}
}
/* ===== PANNEAU LATÉRAL — À LA RACINE, PAS DANS LE MEDIA QUERY ===== */
.fr-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.5);
z-index: 9000;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.fr-overlay.active {
opacity: 1;
visibility: visible;
}
.side-panel {
position: fixed;
top: 0;
right: -450px;
width: 60%;
max-width: 100vw;
height: 100vh;
background: var(--background-default-grey, #fff);
box-shadow: -5px 0 20px rgba(0,0,0,0.15);
z-index: 10000;
overflow-y: auto;
transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
}
.side-panel.active {
right: 0;
}
.side-panel[hidden] {
display: none;
}
/* Responsive mobile pour le panneau */
@media (max-width: 576px) {
.side-panel {
width: 100%;
right: -100%;
}
}
/* Utilitaires */
.w-100 { width: 100%; }
.fr-list--no-bullet { list-style: none; padding: 0; margin: 0; }
.fr-list--no-bullet li { display: flex; align-items: flex-start; gap: 0.5rem; }
/* Rendre le titre de carte cliquable */
.fr-card__title.js-open-panel {
cursor: pointer;
color: var(--text-action-high-blue-france) !important;
transition: color 0.15s ease;
}
.fr-card__title.js-open-panel:hover {
color: var(--text-action-high-blue-france-hover) !important;
text-decoration: underline;
}
/* Optionnel : icône discrète pour indiquer l'interaction */
.fr-card__title.js-open-panel::after {
content: " ›";
font-size: 0.9em;
opacity: 0.6;
transition: opacity 0.15s ease;
}
.fr-card__title.js-open-panel:hover::after {
opacity: 1;
}