Spaces:
Running
Running
/* Classical Chrome-Like CSS */ | |
/* Widget container styling */ | |
.ply-widget-container { | |
position: relative; | |
width: 100%; | |
height: 0; | |
padding-bottom: var(--aspect-percent); | |
background: #fff; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; | |
} | |
/* GIF Preview styling */ | |
.gif-preview-container { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
overflow: hidden; | |
cursor: pointer; | |
background: #f9f9f9; | |
} | |
.gif-preview-container img { | |
width: 100%; | |
height: 100%; | |
object-fit: cover; | |
} | |
/* Viewer Container styling */ | |
.viewer-container { | |
display: none; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
background: #fff; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
overflow: hidden; | |
box-sizing: border-box; | |
} | |
/* Canvas fills the viewer container */ | |
.ply-canvas { | |
width: 100%; | |
height: 100%; | |
display: block; | |
/* Background is set by JS using JSON */ | |
} | |
/* Progress dialog styling */ | |
.progress-dialog { | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
border: 1px solid #ccc; | |
background: #fff; | |
padding: 10px; | |
border-radius: 4px; | |
z-index: 1000; | |
display: none; | |
} | |
/* Menu (instructions) content styling */ | |
.menu-content { | |
display: none; | |
position: absolute; | |
top: 35px; | |
right: 10px; | |
background: #fff; | |
border: 1px solid #ccc; | |
border-radius: 4px; | |
padding: 8px; | |
font-size: 13px; | |
color: #333; | |
} | |
/* Common button styling */ | |
.widget-button { | |
width: 28px; | |
height: 28px; | |
background-color: transparent; | |
border: none; | |
cursor: pointer; | |
padding: 0; | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
/* Position buttons as a group on the top right */ | |
.close-btn { | |
position: absolute; | |
top: 4px; | |
right: 4px; | |
} | |
.fullscreen-toggle { | |
position: absolute; | |
top: 4px; | |
right: 38px; | |
} | |
.help-toggle { | |
position: absolute; | |
top: 4px; | |
right: 72px; | |
} | |
.reset-camera-btn { | |
position: absolute; | |
top: 4px; | |
right: 106px; | |
} | |
/* Close button: simple "X" with red hover (Chrome-like) */ | |
.close-btn::before { | |
content: "β"; | |
font-size: 16px; | |
color: #333; | |
} | |
.close-btn:hover::before { | |
color: #d32f2f; | |
} | |
/* Fullscreen toggle: square icon */ | |
.fullscreen-toggle::before { | |
content: "π"; | |
font-size: 14px; | |
color: #333; | |
} | |
.fullscreen-toggle:hover::before { | |
color: #555; | |
} | |
/* Help toggle: question mark for extra info */ | |
.help-toggle::before { | |
content: "?"; | |
font-size: 16px; | |
color: #333; | |
} | |
.help-toggle:hover::before { | |
color: #0078d7; | |
} | |
/* Reset camera: refresh icon */ | |
.reset-camera-btn::before { | |
content: "β²"; | |
font-size: 16px; | |
color: #333; | |
} | |
.reset-camera-btn:hover::before { | |
color: #0078d7; | |
} | |
/* Optionally adjust icon alignment */ | |
.reset-icon { | |
display: inline-block; | |
transform: translateY(-2px); | |
} | |