Spaces:
Running
Running
File size: 12,897 Bytes
d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 15ea25a 0af1ebf d9e06d0 6ad9145 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 0af1ebf 6ad9145 d9e06d0 6ad9145 eaf2778 d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 123a1b5 d9e06d0 0af1ebf d9e06d0 bbe1b69 d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 ad0fdde 0af1ebf d9e06d0 123a1b5 0af1ebf d9e06d0 123a1b5 17866e4 664f69c d9e06d0 664f69c d9e06d0 123a1b5 d9e06d0 123a1b5 d9e06d0 123a1b5 d9e06d0 0af1ebf d9e06d0 0af1ebf 123a1b5 d9e06d0 123a1b5 d9e06d0 0af1ebf d9e06d0 0af1ebf d9e06d0 bbe1b69 d9e06d0 bbe1b69 d9e06d0 bbe1b69 d9e06d0 bbe1b69 0af1ebf d9e06d0 5559127 0af1ebf 5559127 d9e06d0 5559127 bbe1b69 | 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 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | /* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
VIEWER A β Styles
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* ββ Widget container ββ */
.ply-widget-container {
position: relative;
width: 100%;
height: 0;
background-color: white;
transition: all 0.3s ease;
box-sizing: border-box;
overflow: hidden;
}
.ply-widget-container.fake-fullscreen {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
padding-bottom: 0 !important;
z-index: 9999 !important;
background-color: black;
border-radius: 0 !important;
margin: 0 !important;
max-width: 100vw !important;
max-height: 100vh !important;
box-sizing: border-box;
overflow: hidden;
}
.ply-widget-container:fullscreen,
.ply-widget-container:-webkit-full-screen,
.ply-widget-container:-moz-full-screen,
.ply-widget-container:-ms-fullscreen {
width: 100vw !important;
height: 100vh !important;
padding-bottom: 0 !important;
border-radius: 0 !important;
background-color: black;
}
/* ββ Viewer container ββ */
.viewer-container {
display: none;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
width: 100%; height: 100%;
background: black;
border: 1px solid #474558;
border-radius: 10px;
overflow: hidden;
box-sizing: border-box;
transition: all 0.3s ease;
min-height: 100%;
object-fit: contain;
}
.fake-fullscreen .viewer-container,
:fullscreen .viewer-container,
:-webkit-full-screen .viewer-container,
:-moz-full-screen .viewer-container,
:-ms-fullscreen .viewer-container {
border-radius: 0;
border: none;
width: 100%;
height: 100%;
}
/* ββ Canvas ββ */
.ply-canvas {
width: 100%;
height: 100%;
display: block;
background-color: transparent;
z-index: 1;
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
}
.fake-fullscreen .ply-canvas,
:fullscreen .ply-canvas,
:-webkit-full-screen .ply-canvas,
:-moz-full-screen .ply-canvas,
:-ms-fullscreen .ply-canvas {
width: 100vw;
height: 100vh;
}
/* ββ Barre de progression ββ */
.progress-dialog {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
border: none;
background: rgba(0,0,0,0.7);
padding: 20px;
border-radius: 5px;
z-index: 1000;
display: none;
color: white;
}
progress {
width: 250px;
height: 15px;
appearance: none;
border: none;
border-radius: 10px;
overflow: hidden;
}
progress::-webkit-progress-bar { background-color: #333; border-radius: 10px; }
progress::-webkit-progress-value { background-color: #4682B4; border-radius: 10px; }
progress::-moz-progress-bar { background-color: #4682B4; }
/* ββ Panneau d'aide ββ */
.menu-content {
display: none;
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
background: rgba(242,240,239,0.7);
color: #545454;
border: 1px solid #ddd;
border-radius: 10px;
padding: 28px 24px;
font-size: 15px;
line-height: 1.4;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
z-index: 1010;
max-width: 90vw;
max-height: 90%;
overflow: scroll !important;
scrollbar-gutter: stable both-edges;
box-sizing: border-box;
}
.menu-content::-webkit-scrollbar { width: 12px; }
.menu-content::-webkit-scrollbar-thumb { background: #bbbbbb; border-radius: 8px; }
.menu-content::-webkit-scrollbar-track { background: #e7e7e7; border-radius: 8px; }
.menu-content .help-close {
position: absolute;
top: 5px; right: 5px;
width: 32px; height: 32px;
background: #F2F0EF;
color: #333;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 17px;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 2;
transition: background 0.18s;
box-sizing: border-box;
padding: 0;
}
.menu-content .help-close:hover,
.menu-content .help-close:focus { background: #e0e0e0; outline: none; }
/* ββ Boutons widget ββ */
.widget-button {
position: absolute;
width: 32px; height: 32px;
background-color: #F2F0EF;
border: 1px solid #ccc;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
color: #545454;
display: flex !important;
align-items: center;
justify-content: center;
transition: background-color 0.2s ease;
z-index: 1000;
opacity: 1 !important;
visibility: visible !important;
margin-right: 8px;
/* ββ Correctifs iOS Safari ββ */
-webkit-appearance: none;
appearance: none;
padding: 0;
line-height: 1;
box-sizing: border-box;
flex-shrink: 0;
}
.widget-button:hover { background-color: rgba(242,240,239,0.7); }
/* ββ Positionnement β cΓ΄tΓ© DROIT (dΓ©faut) ββ */
.fullscreen-toggle { top: 12px; right: 12px; left: auto; }
.help-toggle { top: 12px; right: 52px; left: auto; font-size: 18px; }
.reset-camera-btn { top: 12px; right: 92px; left: auto; font-size: 18px; line-height: normal; padding: 0; }
.tooltips-toggle { top: 12px; right: 132px; left: auto; font-size: 18px; }
/* ββ Positionnement β cΓ΄tΓ© GAUCHE (classe btn-left sur .viewer-container) ββ */
.btn-left .fullscreen-toggle { right: auto; left: 12px; }
.btn-left .help-toggle { right: auto; left: 52px; }
.btn-left .reset-camera-btn { right: auto; left: 92px; }
.btn-left .tooltips-toggle { right: auto; left: 132px; }
.fake-fullscreen .widget-button,
:fullscreen .widget-button,
:-webkit-full-screen .widget-button,
:-moz-full-screen .widget-button,
:-ms-fullscreen .widget-button { z-index: 10000; }
.help-close {
position: absolute;
top: 8px; right: 8px;
background-color: #B0B0B0;
color: #333;
border: none;
border-radius: 4px;
width: 24px; height: 24px;
line-height: 24px;
text-align: center;
cursor: pointer;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
/* ββ Mobile : boutons β cΓ΄tΓ© droit (dΓ©faut) ββ */
.ply-widget-container.mobile .widget-button { width: 24px; height: 24px; font-size: 12px; }
.ply-widget-container.mobile .help-toggle { font-size: 14px; }
.ply-widget-container.mobile .fullscreen-toggle { top: 8px; right: 8px; left: auto; }
.ply-widget-container.mobile .help-toggle { top: 8px; right: 40px; left: auto; }
.ply-widget-container.mobile .reset-camera-btn { top: 8px; right: 72px; left: auto; }
.ply-widget-container.mobile .tooltips-toggle { top: 8px; right: 104px; left: auto; }
/* ββ btn-left SANS fullscreen β boutons dΓ©calΓ©s vers la gauche ββ */
.btn-left.no-fullscreen .help-toggle { right: auto; left: 12px; }
.btn-left.no-fullscreen .reset-camera-btn { right: auto; left: 52px; }
.btn-left.no-fullscreen .tooltips-toggle { right: auto; left: 92px; }
/* ββ Mobile : btn-left SANS fullscreen ββ */
.ply-widget-container.mobile .btn-left.no-fullscreen .help-toggle { right: auto; left: 8px; }
.ply-widget-container.mobile .btn-left.no-fullscreen .reset-camera-btn { right: auto; left: 40px; }
.ply-widget-container.mobile .btn-left.no-fullscreen .tooltips-toggle { right: auto; left: 72px; }
#application-canvas { width: 100%; height: 100%; display: block; }
html, body { margin: 0; padding: 0; height: 100%; }
.progress-dialog p { margin: 0; padding: 5px; }
@media (max-width: 600px) {
.menu-content {
width: 85vw;
max-height: 90%;
overflow: scroll !important;
scrollbar-gutter: stable both-edges;
padding: 40px 18px 14px;
font-size: 14px;
}
.menu-content .help-close { top: 6px; right: 6px; }
}
/* βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
ANNOTATIONS β Dark theme
Position absolute dans widgetContainer β fullscreen natif OK
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
/* ββ Overlay (fond semi-transparent, ferme l'annotation au clic) ββ */
.ann-overlay {
display: none;
position: absolute;
inset: 0;
z-index: 2000;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.35);
}
.ann-overlay.ann-open {
display: flex;
}
/* ββ Modal tooltip ββ */
.ann-tooltip {
position: relative;
background: rgba(18, 18, 18, 0.96);
color: #f0f0f0;
border-radius: 14px;
overflow: hidden;
width: min(400px, 90vw);
max-height: min(560px, 85vh);
display: flex;
flex-direction: column;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* ββ Bouton fermer (base commune annotation + lightbox) ββ */
.ann-close-btn-base {
position: absolute;
top: 10px; right: 10px;
width: 32px; height: 32px;
background-color: #2E2E2E;
color: #fff;
border: none;
border-radius: 50%;
font-size: 20px;
line-height: 0;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
z-index: 10;
opacity: 0.6;
transition: opacity 0.15s, transform 0.1s;
/* ββ Correctifs iOS Safari ββ */
-webkit-appearance: none;
appearance: none;
box-sizing: border-box;
flex-shrink: 0;
}
.ann-close-btn-base:hover {
opacity: 1;
transform: scale(1.05);
}
/* ββ Image (pleine largeur, rognΓ©e si trop haute, zoom-in au survol) ββ */
.ann-img-wrap {
width: 100%;
flex-shrink: 0;
overflow: hidden;
max-height: 220px;
background: #000;
cursor: zoom-in;
}
.ann-img-wrap img {
width: 100%;
height: auto;
display: block;
}
/* ββ Zone de dΓ©filement ββ */
.ann-scroll {
padding: 16px 0 12px;
overflow-y: auto;
flex: 1;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.ann-scroll::-webkit-scrollbar { width: 5px; }
.ann-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.ann-title,
.ann-body {
width: 90%;
margin: 0 auto;
}
.ann-title {
font-size: 16px;
font-weight: 700;
margin-bottom: 10px;
line-height: 1.4;
}
.ann-body {
font-size: 13px;
line-height: 1.7;
white-space: pre-wrap;
opacity: 0.88;
/* ββ Hauteur limitΓ©e Γ 5 lignes, scroll ensuite ββ */
max-height: calc(13px * 1.7 * 4);
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.ann-body::-webkit-scrollbar { width: 5px; }
.ann-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
/* ββ Pied de page avec bouton lien ββ */
.ann-footer {
display: none; /* cachΓ© par dΓ©faut, affichΓ© via JS si linkUrl prΓ©sent */
align-items: center;
padding: 10px 14px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
flex-shrink: 0;
}
.ann-link-btn {
flex: 1;
padding: 10px 16px;
background: #4a90e2;
color: #fff;
border: none;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, transform 0.1s;
text-align: center;
letter-spacing: 0.01em;
/* ββ Correctifs iOS Safari ββ */
-webkit-appearance: none;
appearance: none;
box-sizing: border-box;
}
.ann-link-btn:hover { background: #357abd; }
.ann-link-btn:active { transform: scale(0.98); background: #2a6096; }
/* ββ Lightbox (image agrandie) ββ */
.ann-lightbox {
display: none;
position: absolute;
inset: 0;
z-index: 3000;
background: rgba(0, 0, 0, 0.90);
align-items: center;
justify-content: center;
}
.ann-lightbox.ann-lb-open {
display: flex;
}
.ann-lb-content-wrap {
position: relative;
display: grid;
}
.ann-lightbox img {
display: block;
object-fit: contain;
max-height: 90vh;
max-width: 90vw;
width: auto;
height: auto;
border-radius: 8px;
box-shadow: 0 8px 40px rgba(0,0,0,0.6);
grid-area: 1 / 1;
}
.ann-lb-close {
grid-area: 1 / 1;
align-self: start;
justify-self: end;
margin: 10px;
position: static !important;
top: unset !important;
right: unset !important;
}
/* ββ Responsive β portrait mobile ββ */
@media (orientation: portrait) and (max-width: 768px) {
.ann-tooltip { width: min(400px, 93vw); max-height: min(560px, 83vh); }
.ann-img-wrap { max-height: 180px; }
}
/* ββ Responsive β paysage mobile ββ */
@media (orientation: landscape) and (max-height: 520px) {
.ann-tooltip { width: min(400px, 82vw); max-height: 90vh; }
.ann-img-wrap { max-height: 130px; }
} |