Spaces:
Running
Running
Update style/defaults/style.css
Browse files- style/defaults/style.css +35 -47
style/defaults/style.css
CHANGED
|
@@ -45,12 +45,8 @@
|
|
| 45 |
.viewer-container {
|
| 46 |
display: none;
|
| 47 |
position: absolute;
|
| 48 |
-
top: 0;
|
| 49 |
-
|
| 50 |
-
right: 0;
|
| 51 |
-
bottom: 0;
|
| 52 |
-
width: 100%;
|
| 53 |
-
height: 100%;
|
| 54 |
background: black;
|
| 55 |
border: 1px solid #474558;
|
| 56 |
border-radius: 10px;
|
|
@@ -61,7 +57,7 @@
|
|
| 61 |
object-fit: contain;
|
| 62 |
}
|
| 63 |
|
| 64 |
-
/*
|
| 65 |
.fake-fullscreen .viewer-container,
|
| 66 |
:fullscreen .viewer-container,
|
| 67 |
:-webkit-full-screen .viewer-container,
|
|
@@ -73,7 +69,7 @@
|
|
| 73 |
height: 100%;
|
| 74 |
}
|
| 75 |
|
| 76 |
-
/* Canvas
|
| 77 |
.ply-canvas {
|
| 78 |
width: 100%;
|
| 79 |
height: 100%;
|
|
@@ -81,13 +77,10 @@
|
|
| 81 |
background-color: transparent;
|
| 82 |
z-index: 1;
|
| 83 |
position: absolute;
|
| 84 |
-
top: 0;
|
| 85 |
-
left: 0;
|
| 86 |
-
right: 0;
|
| 87 |
-
bottom: 0;
|
| 88 |
}
|
| 89 |
|
| 90 |
-
/*
|
| 91 |
.fake-fullscreen .ply-canvas,
|
| 92 |
:fullscreen .ply-canvas,
|
| 93 |
:-webkit-full-screen .ply-canvas,
|
|
@@ -97,11 +90,10 @@
|
|
| 97 |
height: 100vh;
|
| 98 |
}
|
| 99 |
|
| 100 |
-
/* Progress dialog styling
|
| 101 |
.progress-dialog {
|
| 102 |
position: absolute;
|
| 103 |
-
top: 50%;
|
| 104 |
-
left: 50%;
|
| 105 |
transform: translate(-50%, -50%);
|
| 106 |
border: none;
|
| 107 |
background: rgba(0,0,0,0.7);
|
|
@@ -112,7 +104,6 @@
|
|
| 112 |
color: white;
|
| 113 |
}
|
| 114 |
|
| 115 |
-
/* Progress bar styling */
|
| 116 |
progress {
|
| 117 |
width: 250px;
|
| 118 |
height: 15px;
|
|
@@ -138,8 +129,7 @@ progress::-moz-progress-bar {
|
|
| 138 |
.menu-content {
|
| 139 |
display: none;
|
| 140 |
position: absolute;
|
| 141 |
-
top: 50%;
|
| 142 |
-
left: 50%;
|
| 143 |
transform: translate(-50%, -50%);
|
| 144 |
background: rgba(242,240,239,0.9);
|
| 145 |
color: #545454;
|
|
@@ -153,7 +143,7 @@ progress::-moz-progress-bar {
|
|
| 153 |
z-index: 1010;
|
| 154 |
}
|
| 155 |
|
| 156 |
-
/* Help-close button
|
| 157 |
.help-close {
|
| 158 |
position: absolute;
|
| 159 |
top: 8px;
|
|
@@ -170,7 +160,7 @@ progress::-moz-progress-bar {
|
|
| 170 |
font-size: 16px;
|
| 171 |
}
|
| 172 |
|
| 173 |
-
/* Button styling
|
| 174 |
.widget-button {
|
| 175 |
position: absolute;
|
| 176 |
width: 32px;
|
|
@@ -190,9 +180,7 @@ progress::-moz-progress-bar {
|
|
| 190 |
visibility: visible !important;
|
| 191 |
margin-right: 8px;
|
| 192 |
}
|
| 193 |
-
.widget-button:hover {
|
| 194 |
-
background-color: rgba(242,240,239,0.7);
|
| 195 |
-
}
|
| 196 |
.fullscreen-toggle { top: 12px; right: 12px; }
|
| 197 |
.help-toggle { top: 12px; right: 52px; font-size: 18px; }
|
| 198 |
.reset-camera-btn { top: 12px; right: 92px; font-size: 18px; line-height: normal; padding: 0; }
|
|
@@ -201,11 +189,9 @@ progress::-moz-progress-bar {
|
|
| 201 |
:fullscreen .widget-button,
|
| 202 |
:-webkit-full-screen .widget-button,
|
| 203 |
:-moz-full-screen .widget-button,
|
| 204 |
-
:-ms-fullscreen .widget-button {
|
| 205 |
-
z-index: 10000;
|
| 206 |
-
}
|
| 207 |
|
| 208 |
-
/*
|
| 209 |
.tooltip-panel {
|
| 210 |
position: absolute;
|
| 211 |
top: 50%;
|
|
@@ -216,10 +202,11 @@ progress::-moz-progress-bar {
|
|
| 216 |
border: 1px solid #ddd;
|
| 217 |
border-radius: 6px;
|
| 218 |
padding: 15px;
|
| 219 |
-
max-width:
|
| 220 |
-
|
| 221 |
min-width: 180px;
|
| 222 |
min-height: 60px;
|
|
|
|
| 223 |
z-index: 20000;
|
| 224 |
display: none;
|
| 225 |
flex-direction: column;
|
|
@@ -235,6 +222,10 @@ progress::-moz-progress-bar {
|
|
| 235 |
min-width: 160px;
|
| 236 |
max-width: 100%;
|
| 237 |
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 238 |
}
|
| 239 |
|
| 240 |
.tooltip-close {
|
|
@@ -262,15 +253,22 @@ progress::-moz-progress-bar {
|
|
| 262 |
margin-bottom: 10px;
|
| 263 |
font-size: 14px;
|
| 264 |
line-height: 1.4;
|
|
|
|
|
|
|
|
|
|
| 265 |
}
|
| 266 |
|
| 267 |
.tooltip-image {
|
| 268 |
max-width: 100%;
|
| 269 |
-
max-height:
|
| 270 |
border-radius: 4px;
|
| 271 |
margin-top: 5px;
|
| 272 |
display: block;
|
|
|
|
|
|
|
| 273 |
}
|
|
|
|
|
|
|
| 274 |
@media (max-width: 600px) {
|
| 275 |
.tooltip-panel {
|
| 276 |
top: auto;
|
|
@@ -281,19 +279,18 @@ progress::-moz-progress-bar {
|
|
| 281 |
width: auto;
|
| 282 |
max-width: 94vw;
|
| 283 |
min-width: 0;
|
| 284 |
-
max-height:
|
| 285 |
-
padding:
|
| 286 |
font-size: 13.5px;
|
| 287 |
}
|
| 288 |
.tooltip-content {
|
| 289 |
min-width: 0;
|
| 290 |
}
|
| 291 |
.tooltip-image {
|
| 292 |
-
max-height:
|
| 293 |
}
|
| 294 |
}
|
| 295 |
|
| 296 |
-
/* --- Mobile adjustments: when the widget container has the "mobile" class --- */
|
| 297 |
.ply-widget-container.mobile .widget-button {
|
| 298 |
width: 24px;
|
| 299 |
height: 24px;
|
|
@@ -305,20 +302,11 @@ progress::-moz-progress-bar {
|
|
| 305 |
.ply-widget-container.mobile .reset-camera-btn { top: 8px; right: 72px; }
|
| 306 |
.ply-widget-container.mobile .tooltips-toggle { top: 8px; right: 104px; }
|
| 307 |
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
width: 100%;
|
| 311 |
-
height: 100%;
|
| 312 |
-
display: block;
|
| 313 |
-
}
|
| 314 |
-
html, body {
|
| 315 |
-
margin: 0;
|
| 316 |
-
padding: 0;
|
| 317 |
-
height: 100%;
|
| 318 |
-
}
|
| 319 |
.progress-dialog p { margin: 0; padding: 5px; }
|
| 320 |
|
| 321 |
-
/*
|
| 322 |
@media (max-width: 600px) {
|
| 323 |
.menu-content {
|
| 324 |
width: 85vw;
|
|
|
|
| 45 |
.viewer-container {
|
| 46 |
display: none;
|
| 47 |
position: absolute;
|
| 48 |
+
top: 0; left: 0; right: 0; bottom: 0;
|
| 49 |
+
width: 100%; height: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
background: black;
|
| 51 |
border: 1px solid #474558;
|
| 52 |
border-radius: 10px;
|
|
|
|
| 57 |
object-fit: contain;
|
| 58 |
}
|
| 59 |
|
| 60 |
+
/* Fullscreen viewer adjustments */
|
| 61 |
.fake-fullscreen .viewer-container,
|
| 62 |
:fullscreen .viewer-container,
|
| 63 |
:-webkit-full-screen .viewer-container,
|
|
|
|
| 69 |
height: 100%;
|
| 70 |
}
|
| 71 |
|
| 72 |
+
/* Canvas styling */
|
| 73 |
.ply-canvas {
|
| 74 |
width: 100%;
|
| 75 |
height: 100%;
|
|
|
|
| 77 |
background-color: transparent;
|
| 78 |
z-index: 1;
|
| 79 |
position: absolute;
|
| 80 |
+
top: 0; left: 0; right: 0; bottom: 0;
|
|
|
|
|
|
|
|
|
|
| 81 |
}
|
| 82 |
|
| 83 |
+
/* Canvas fills entire space in fullscreen */
|
| 84 |
.fake-fullscreen .ply-canvas,
|
| 85 |
:fullscreen .ply-canvas,
|
| 86 |
:-webkit-full-screen .ply-canvas,
|
|
|
|
| 90 |
height: 100vh;
|
| 91 |
}
|
| 92 |
|
| 93 |
+
/* Progress dialog styling */
|
| 94 |
.progress-dialog {
|
| 95 |
position: absolute;
|
| 96 |
+
top: 50%; left: 50%;
|
|
|
|
| 97 |
transform: translate(-50%, -50%);
|
| 98 |
border: none;
|
| 99 |
background: rgba(0,0,0,0.7);
|
|
|
|
| 104 |
color: white;
|
| 105 |
}
|
| 106 |
|
|
|
|
| 107 |
progress {
|
| 108 |
width: 250px;
|
| 109 |
height: 15px;
|
|
|
|
| 129 |
.menu-content {
|
| 130 |
display: none;
|
| 131 |
position: absolute;
|
| 132 |
+
top: 50%; left: 50%;
|
|
|
|
| 133 |
transform: translate(-50%, -50%);
|
| 134 |
background: rgba(242,240,239,0.9);
|
| 135 |
color: #545454;
|
|
|
|
| 143 |
z-index: 1010;
|
| 144 |
}
|
| 145 |
|
| 146 |
+
/* Help-close button */
|
| 147 |
.help-close {
|
| 148 |
position: absolute;
|
| 149 |
top: 8px;
|
|
|
|
| 160 |
font-size: 16px;
|
| 161 |
}
|
| 162 |
|
| 163 |
+
/* Button styling */
|
| 164 |
.widget-button {
|
| 165 |
position: absolute;
|
| 166 |
width: 32px;
|
|
|
|
| 180 |
visibility: visible !important;
|
| 181 |
margin-right: 8px;
|
| 182 |
}
|
| 183 |
+
.widget-button:hover { background-color: rgba(242,240,239,0.7); }
|
|
|
|
|
|
|
| 184 |
.fullscreen-toggle { top: 12px; right: 12px; }
|
| 185 |
.help-toggle { top: 12px; right: 52px; font-size: 18px; }
|
| 186 |
.reset-camera-btn { top: 12px; right: 92px; font-size: 18px; line-height: normal; padding: 0; }
|
|
|
|
| 189 |
:fullscreen .widget-button,
|
| 190 |
:-webkit-full-screen .widget-button,
|
| 191 |
:-moz-full-screen .widget-button,
|
| 192 |
+
:-ms-fullscreen .widget-button { z-index: 10000; }
|
|
|
|
|
|
|
| 193 |
|
| 194 |
+
/* --------- TOOLTIP PANEL ----------- */
|
| 195 |
.tooltip-panel {
|
| 196 |
position: absolute;
|
| 197 |
top: 50%;
|
|
|
|
| 202 |
border: 1px solid #ddd;
|
| 203 |
border-radius: 6px;
|
| 204 |
padding: 15px;
|
| 205 |
+
max-width: 340px;
|
| 206 |
+
width: 92vw;
|
| 207 |
min-width: 180px;
|
| 208 |
min-height: 60px;
|
| 209 |
+
max-height: 90vh;
|
| 210 |
z-index: 20000;
|
| 211 |
display: none;
|
| 212 |
flex-direction: column;
|
|
|
|
| 222 |
min-width: 160px;
|
| 223 |
max-width: 100%;
|
| 224 |
box-sizing: border-box;
|
| 225 |
+
display: flex;
|
| 226 |
+
flex-direction: column;
|
| 227 |
+
align-items: flex-start;
|
| 228 |
+
overflow: hidden;
|
| 229 |
}
|
| 230 |
|
| 231 |
.tooltip-close {
|
|
|
|
| 253 |
margin-bottom: 10px;
|
| 254 |
font-size: 14px;
|
| 255 |
line-height: 1.4;
|
| 256 |
+
overflow-wrap: break-word;
|
| 257 |
+
word-break: break-word;
|
| 258 |
+
max-width: 100%;
|
| 259 |
}
|
| 260 |
|
| 261 |
.tooltip-image {
|
| 262 |
max-width: 100%;
|
| 263 |
+
max-height: 35vh;
|
| 264 |
border-radius: 4px;
|
| 265 |
margin-top: 5px;
|
| 266 |
display: block;
|
| 267 |
+
object-fit: contain;
|
| 268 |
+
box-sizing: border-box;
|
| 269 |
}
|
| 270 |
+
|
| 271 |
+
/* --- Mobile adjustments --- */
|
| 272 |
@media (max-width: 600px) {
|
| 273 |
.tooltip-panel {
|
| 274 |
top: auto;
|
|
|
|
| 279 |
width: auto;
|
| 280 |
max-width: 94vw;
|
| 281 |
min-width: 0;
|
| 282 |
+
max-height: 55vh;
|
| 283 |
+
padding: 10px;
|
| 284 |
font-size: 13.5px;
|
| 285 |
}
|
| 286 |
.tooltip-content {
|
| 287 |
min-width: 0;
|
| 288 |
}
|
| 289 |
.tooltip-image {
|
| 290 |
+
max-height: 22vh;
|
| 291 |
}
|
| 292 |
}
|
| 293 |
|
|
|
|
| 294 |
.ply-widget-container.mobile .widget-button {
|
| 295 |
width: 24px;
|
| 296 |
height: 24px;
|
|
|
|
| 302 |
.ply-widget-container.mobile .reset-camera-btn { top: 8px; right: 72px; }
|
| 303 |
.ply-widget-container.mobile .tooltips-toggle { top: 8px; right: 104px; }
|
| 304 |
|
| 305 |
+
#application-canvas { width: 100%; height: 100%; display: block; }
|
| 306 |
+
html, body { margin: 0; padding: 0; height: 100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 307 |
.progress-dialog p { margin: 0; padding: 5px; }
|
| 308 |
|
| 309 |
+
/* Ensure help/instructions panel fits on mobile */
|
| 310 |
@media (max-width: 600px) {
|
| 311 |
.menu-content {
|
| 312 |
width: 85vw;
|