Spaces:
Running
Running
| /* ============================== | |
| style.css | |
| ============================== */ | |
| /* Widget container styling */ | |
| .ply-widget-container { | |
| position: relative; | |
| width: 100%; | |
| height: 0; /* Height: 0 so padding-bottom controls the aspect ratio */ | |
| background-color: white; | |
| transition: all 0.3s ease; | |
| box-sizing: border-box; | |
| overflow: hidden; | |
| } | |
| /* When in fake fullscreen mode (iOS fallback) */ | |
| .ply-widget-container.fake-fullscreen { | |
| position: fixed ; | |
| top: 0 ; | |
| left: 0 ; | |
| width: 100vw ; | |
| height: 100vh ; | |
| padding-bottom: 0 ; | |
| z-index: 9999 ; | |
| background-color: black; | |
| border-radius: 0 ; | |
| margin: 0 ; | |
| max-width: 100vw ; | |
| max-height: 100vh ; | |
| box-sizing: border-box; | |
| overflow: hidden; | |
| } | |
| /* For native fullscreen - ensure no aspect ratio padding */ | |
| .ply-widget-container:fullscreen { | |
| width: 100vw ; | |
| height: 100vh ; | |
| padding-bottom: 0 ; | |
| border-radius: 0 ; | |
| background-color: black; | |
| } | |
| /* Vendor prefixes for fullscreen */ | |
| .ply-widget-container:-webkit-full-screen { | |
| width: 100vw ; | |
| height: 100vh ; | |
| padding-bottom: 0 ; | |
| border-radius: 0 ; | |
| background-color: black; | |
| } | |
| .ply-widget-container:-moz-full-screen { | |
| width: 100vw ; | |
| height: 100vh ; | |
| padding-bottom: 0 ; | |
| border-radius: 0 ; | |
| background-color: black; | |
| } | |
| .ply-widget-container:-ms-fullscreen { | |
| width: 100vw ; | |
| height: 100vh ; | |
| padding-bottom: 0 ; | |
| border-radius: 0 ; | |
| background-color: black; | |
| } | |
| /* Viewer Container styling */ | |
| .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; | |
| } | |
| /* When parent container is fullscreen, adjust viewer container */ | |
| .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 fills the viewer container */ | |
| .ply-canvas { | |
| width: 100%; | |
| height: 100%; | |
| display: block; | |
| background-color: transparent; | |
| z-index: 1; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| } | |
| /* Make sure canvas fills entire space in fullscreen */ | |
| .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; | |
| } | |
| /* Progress dialog styling (centered) */ | |
| .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 bar styling */ | |
| 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; | |
| border-radius: 10px; | |
| } | |
| /* Help / instructions panel styling */ | |
| .menu-content { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| background: rgba(242, 240, 239, 0.9); | |
| color: #545454; | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; | |
| border: 1px solid #ddd; | |
| border-radius: 10px; | |
| padding: 18px 24px; | |
| z-index: 1010; | |
| max-width: 400px; | |
| width: 80%; | |
| box-sizing: border-box; | |
| } | |
| /* Close (✕) button inside help panel */ | |
| .help-close { | |
| position: absolute; | |
| top: 8px; | |
| right: 8px; | |
| background-color: #B0B0B0; | |
| color: #fff; | |
| width: 24px; | |
| height: 24px; | |
| border-radius: 4px; | |
| font-size: 16px; | |
| line-height: 24px; | |
| text-align: center; | |
| cursor: pointer; | |
| } | |
| /* Help text inside panel */ | |
| .help-text { | |
| margin-top: 12px; | |
| font-size: 14px; | |
| line-height: 1.4; | |
| } | |
| /* Button styling */ | |
| .widget-button { | |
| position: absolute; | |
| width: 30px; /* reduced size */ | |
| height: 30px; /* reduced size */ | |
| background-color: #F2F0EF; | |
| border: 1px solid #ddd; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| font-size: 16px; | |
| color: #545454; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| transition: background-color 0.2s ease; | |
| z-index: 1000; | |
| } | |
| .widget-button:hover { | |
| background-color: rgba(242, 240, 239, 0.7); | |
| } | |
| /* Specific button positions; adjust gaps to be tighter */ | |
| .fullscreen-toggle { | |
| top: 15px; | |
| right: 10px; | |
| } | |
| .help-toggle { | |
| top: 15px; | |
| right: 50px; | |
| } | |
| .reset-camera-btn { | |
| top: 15px; | |
| right: 90px; | |
| } | |
| .points-toggle { | |
| top: 15px; | |
| right: 130px; | |
| } | |
| /* 📍 icon styling */ | |
| .points-toggle { | |
| font-size: 18px; | |
| } | |
| /* Close tooltip icon (×) */ | |
| .point-tooltip-close { | |
| position: absolute; | |
| top: -8px; | |
| right: -8px; | |
| background: #999; | |
| color: white; | |
| border-radius: 50%; | |
| width: 20px; | |
| height: 20px; | |
| line-height: 20px; | |
| text-align: center; | |
| cursor: pointer; | |
| font-weight: bold; | |
| } | |
| /* Tooltip styling */ | |
| .point-tooltip { | |
| position: absolute; | |
| top: 50%; | |
| right: 5%; | |
| transform: translate(0%, -50%); | |
| background: rgba(30, 30, 30, 0.9); | |
| color: #fff; | |
| border: 1px solid #666; | |
| border-radius: 6px; | |
| padding: 15px; | |
| max-width: 300px; | |
| z-index: 20000; | |
| display: none; | |
| flex-direction: column; | |
| align-items: flex-start; | |
| } | |
| .point-tooltip-text { | |
| margin-bottom: 10px; | |
| font-size: 14px; | |
| line-height: 1.4; | |
| } | |
| .point-tooltip-image { | |
| max-width: 100%; | |
| border-radius: 4px; | |
| margin-top: 5px; | |
| } | |
| /* Responsive tweaks */ | |
| @media screen and (max-width: 600px) { | |
| .menu-content { | |
| width: 90%; | |
| padding: 14px 18px; | |
| } | |
| .help-text { | |
| font-size: 12px; | |
| } | |
| .widget-button { | |
| width: 26px; | |
| height: 26px; | |
| font-size: 14px; | |
| } | |
| .fullscreen-toggle { right: 8px; top: 12px; } | |
| .help-toggle { right: 42px; top: 12px; } | |
| .reset-camera-btn { right: 76px; top: 12px; } | |
| .points-toggle { right: 110px; top: 12px; } | |
| } | |