Spaces:
Running
Running
Update style/defaults/style.css
Browse files- style/defaults/style.css +29 -32
style/defaults/style.css
CHANGED
|
@@ -10,8 +10,6 @@
|
|
| 10 |
box-sizing: border-box;
|
| 11 |
overflow: hidden;
|
| 12 |
}
|
| 13 |
-
|
| 14 |
-
/* Fake fullscreen (iOS fallback) */
|
| 15 |
.ply-widget-container.fake-fullscreen {
|
| 16 |
position: fixed !important;
|
| 17 |
top: 0 !important;
|
|
@@ -28,8 +26,6 @@
|
|
| 28 |
box-sizing: border-box;
|
| 29 |
overflow: hidden;
|
| 30 |
}
|
| 31 |
-
|
| 32 |
-
/* For native fullscreen - ensure no aspect ratio padding */
|
| 33 |
.ply-widget-container:fullscreen,
|
| 34 |
.ply-widget-container:-webkit-full-screen,
|
| 35 |
.ply-widget-container:-moz-full-screen,
|
|
@@ -40,8 +36,6 @@
|
|
| 40 |
border-radius: 0 !important;
|
| 41 |
background-color: black;
|
| 42 |
}
|
| 43 |
-
|
| 44 |
-
/* Viewer Container styling */
|
| 45 |
.viewer-container {
|
| 46 |
display: none;
|
| 47 |
position: absolute;
|
|
@@ -56,8 +50,6 @@
|
|
| 56 |
min-height: 100%;
|
| 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,
|
|
@@ -68,8 +60,6 @@
|
|
| 68 |
width: 100%;
|
| 69 |
height: 100%;
|
| 70 |
}
|
| 71 |
-
|
| 72 |
-
/* Canvas styling */
|
| 73 |
.ply-canvas {
|
| 74 |
width: 100%;
|
| 75 |
height: 100%;
|
|
@@ -79,8 +69,6 @@
|
|
| 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,
|
|
@@ -89,8 +77,6 @@
|
|
| 89 |
width: 100vw;
|
| 90 |
height: 100vh;
|
| 91 |
}
|
| 92 |
-
|
| 93 |
-
/* Progress dialog styling */
|
| 94 |
.progress-dialog {
|
| 95 |
position: absolute;
|
| 96 |
top: 50%; left: 50%;
|
|
@@ -103,7 +89,6 @@
|
|
| 103 |
display: none;
|
| 104 |
color: white;
|
| 105 |
}
|
| 106 |
-
|
| 107 |
progress {
|
| 108 |
width: 250px;
|
| 109 |
height: 15px;
|
|
@@ -124,7 +109,6 @@ progress::-moz-progress-bar {
|
|
| 124 |
background-color: #4682B4;
|
| 125 |
border-radius: 10px;
|
| 126 |
}
|
| 127 |
-
|
| 128 |
/* Menu (instructions) content styling */
|
| 129 |
.menu-content {
|
| 130 |
display: none;
|
|
@@ -142,8 +126,6 @@ progress::-moz-progress-bar {
|
|
| 142 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 143 |
z-index: 1010;
|
| 144 |
}
|
| 145 |
-
|
| 146 |
-
/* Help-close button */
|
| 147 |
.help-close {
|
| 148 |
position: absolute;
|
| 149 |
top: 8px;
|
|
@@ -158,9 +140,11 @@ progress::-moz-progress-bar {
|
|
| 158 |
text-align: center;
|
| 159 |
cursor: pointer;
|
| 160 |
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
}
|
| 162 |
-
|
| 163 |
-
/* Button styling */
|
| 164 |
.widget-button {
|
| 165 |
position: absolute;
|
| 166 |
width: 32px;
|
|
@@ -196,12 +180,12 @@ progress::-moz-progress-bar {
|
|
| 196 |
position: absolute;
|
| 197 |
top: 50%;
|
| 198 |
right: 5%;
|
| 199 |
-
transform: translate(0
|
| 200 |
background: rgba(242,240,239,0.97);
|
| 201 |
color: #545454;
|
| 202 |
border: 1px solid #ddd;
|
| 203 |
border-radius: 6px;
|
| 204 |
-
padding: 15px;
|
| 205 |
max-width: 340px;
|
| 206 |
width: 92vw;
|
| 207 |
min-width: 180px;
|
|
@@ -214,6 +198,10 @@ progress::-moz-progress-bar {
|
|
| 214 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 215 |
overflow: auto;
|
| 216 |
box-sizing: border-box;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
}
|
| 218 |
|
| 219 |
.tooltip-content {
|
|
@@ -227,28 +215,32 @@ progress::-moz-progress-bar {
|
|
| 227 |
align-items: flex-start;
|
| 228 |
overflow: hidden;
|
| 229 |
}
|
| 230 |
-
|
| 231 |
.tooltip-close {
|
| 232 |
position: absolute;
|
| 233 |
-
top:
|
| 234 |
-
right:
|
|
|
|
| 235 |
background: #B0B0B0;
|
| 236 |
color: #333;
|
| 237 |
border-radius: 50%;
|
| 238 |
-
width:
|
| 239 |
-
height:
|
|
|
|
| 240 |
display: flex;
|
| 241 |
align-items: center;
|
| 242 |
justify-content: center;
|
| 243 |
padding: 0;
|
| 244 |
-
|
|
|
|
| 245 |
vertical-align: middle;
|
| 246 |
text-align: center;
|
| 247 |
cursor: pointer;
|
| 248 |
font-weight: bold;
|
| 249 |
z-index: 2;
|
|
|
|
|
|
|
| 250 |
}
|
| 251 |
-
|
| 252 |
.tooltip-text {
|
| 253 |
margin-bottom: 10px;
|
| 254 |
font-size: 14px;
|
|
@@ -257,7 +249,6 @@ progress::-moz-progress-bar {
|
|
| 257 |
word-break: break-word;
|
| 258 |
max-width: 100%;
|
| 259 |
}
|
| 260 |
-
|
| 261 |
.tooltip-image {
|
| 262 |
max-width: 100%;
|
| 263 |
max-height: 35vh;
|
|
@@ -280,12 +271,19 @@ progress::-moz-progress-bar {
|
|
| 280 |
max-width: 94vw;
|
| 281 |
min-width: 0;
|
| 282 |
max-height: 55vh;
|
| 283 |
-
padding:
|
| 284 |
font-size: 13.5px;
|
| 285 |
}
|
| 286 |
.tooltip-content {
|
| 287 |
min-width: 0;
|
| 288 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 289 |
.tooltip-image {
|
| 290 |
max-height: 22vh;
|
| 291 |
}
|
|
@@ -306,7 +304,6 @@ progress::-moz-progress-bar {
|
|
| 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;
|
|
|
|
| 10 |
box-sizing: border-box;
|
| 11 |
overflow: hidden;
|
| 12 |
}
|
|
|
|
|
|
|
| 13 |
.ply-widget-container.fake-fullscreen {
|
| 14 |
position: fixed !important;
|
| 15 |
top: 0 !important;
|
|
|
|
| 26 |
box-sizing: border-box;
|
| 27 |
overflow: hidden;
|
| 28 |
}
|
|
|
|
|
|
|
| 29 |
.ply-widget-container:fullscreen,
|
| 30 |
.ply-widget-container:-webkit-full-screen,
|
| 31 |
.ply-widget-container:-moz-full-screen,
|
|
|
|
| 36 |
border-radius: 0 !important;
|
| 37 |
background-color: black;
|
| 38 |
}
|
|
|
|
|
|
|
| 39 |
.viewer-container {
|
| 40 |
display: none;
|
| 41 |
position: absolute;
|
|
|
|
| 50 |
min-height: 100%;
|
| 51 |
object-fit: contain;
|
| 52 |
}
|
|
|
|
|
|
|
| 53 |
.fake-fullscreen .viewer-container,
|
| 54 |
:fullscreen .viewer-container,
|
| 55 |
:-webkit-full-screen .viewer-container,
|
|
|
|
| 60 |
width: 100%;
|
| 61 |
height: 100%;
|
| 62 |
}
|
|
|
|
|
|
|
| 63 |
.ply-canvas {
|
| 64 |
width: 100%;
|
| 65 |
height: 100%;
|
|
|
|
| 69 |
position: absolute;
|
| 70 |
top: 0; left: 0; right: 0; bottom: 0;
|
| 71 |
}
|
|
|
|
|
|
|
| 72 |
.fake-fullscreen .ply-canvas,
|
| 73 |
:fullscreen .ply-canvas,
|
| 74 |
:-webkit-full-screen .ply-canvas,
|
|
|
|
| 77 |
width: 100vw;
|
| 78 |
height: 100vh;
|
| 79 |
}
|
|
|
|
|
|
|
| 80 |
.progress-dialog {
|
| 81 |
position: absolute;
|
| 82 |
top: 50%; left: 50%;
|
|
|
|
| 89 |
display: none;
|
| 90 |
color: white;
|
| 91 |
}
|
|
|
|
| 92 |
progress {
|
| 93 |
width: 250px;
|
| 94 |
height: 15px;
|
|
|
|
| 109 |
background-color: #4682B4;
|
| 110 |
border-radius: 10px;
|
| 111 |
}
|
|
|
|
| 112 |
/* Menu (instructions) content styling */
|
| 113 |
.menu-content {
|
| 114 |
display: none;
|
|
|
|
| 126 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 127 |
z-index: 1010;
|
| 128 |
}
|
|
|
|
|
|
|
| 129 |
.help-close {
|
| 130 |
position: absolute;
|
| 131 |
top: 8px;
|
|
|
|
| 140 |
text-align: center;
|
| 141 |
cursor: pointer;
|
| 142 |
font-size: 16px;
|
| 143 |
+
display: flex;
|
| 144 |
+
align-items: center;
|
| 145 |
+
justify-content: center;
|
| 146 |
+
padding: 0;
|
| 147 |
}
|
|
|
|
|
|
|
| 148 |
.widget-button {
|
| 149 |
position: absolute;
|
| 150 |
width: 32px;
|
|
|
|
| 180 |
position: absolute;
|
| 181 |
top: 50%;
|
| 182 |
right: 5%;
|
| 183 |
+
transform: translate(0, -50%);
|
| 184 |
background: rgba(242,240,239,0.97);
|
| 185 |
color: #545454;
|
| 186 |
border: 1px solid #ddd;
|
| 187 |
border-radius: 6px;
|
| 188 |
+
padding: 16px 15px 15px 15px;
|
| 189 |
max-width: 340px;
|
| 190 |
width: 92vw;
|
| 191 |
min-width: 180px;
|
|
|
|
| 198 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 199 |
overflow: auto;
|
| 200 |
box-sizing: border-box;
|
| 201 |
+
/* New: ensure padding on right/top for close btn always visible */
|
| 202 |
+
/* Add a little more space for top/right close btn so it's never hidden */
|
| 203 |
+
padding-top: 32px;
|
| 204 |
+
padding-right: 24px;
|
| 205 |
}
|
| 206 |
|
| 207 |
.tooltip-content {
|
|
|
|
| 215 |
align-items: flex-start;
|
| 216 |
overflow: hidden;
|
| 217 |
}
|
|
|
|
| 218 |
.tooltip-close {
|
| 219 |
position: absolute;
|
| 220 |
+
top: 8px;
|
| 221 |
+
right: 8px;
|
| 222 |
+
/* Always visible: increased padding above/right in parent */
|
| 223 |
background: #B0B0B0;
|
| 224 |
color: #333;
|
| 225 |
border-radius: 50%;
|
| 226 |
+
width: 28px;
|
| 227 |
+
height: 28px;
|
| 228 |
+
border: none;
|
| 229 |
display: flex;
|
| 230 |
align-items: center;
|
| 231 |
justify-content: center;
|
| 232 |
padding: 0;
|
| 233 |
+
font-size: 17px;
|
| 234 |
+
line-height: 1;
|
| 235 |
vertical-align: middle;
|
| 236 |
text-align: center;
|
| 237 |
cursor: pointer;
|
| 238 |
font-weight: bold;
|
| 239 |
z-index: 2;
|
| 240 |
+
box-shadow: 0 0 2px 0 rgba(0,0,0,0.10);
|
| 241 |
+
user-select: none;
|
| 242 |
}
|
| 243 |
+
.tooltip-close:active, .tooltip-close:focus { outline: none; background: #9e9e9e; }
|
| 244 |
.tooltip-text {
|
| 245 |
margin-bottom: 10px;
|
| 246 |
font-size: 14px;
|
|
|
|
| 249 |
word-break: break-word;
|
| 250 |
max-width: 100%;
|
| 251 |
}
|
|
|
|
| 252 |
.tooltip-image {
|
| 253 |
max-width: 100%;
|
| 254 |
max-height: 35vh;
|
|
|
|
| 271 |
max-width: 94vw;
|
| 272 |
min-width: 0;
|
| 273 |
max-height: 55vh;
|
| 274 |
+
padding: 28px 14px 12px 12px; /* extra for top, right */
|
| 275 |
font-size: 13.5px;
|
| 276 |
}
|
| 277 |
.tooltip-content {
|
| 278 |
min-width: 0;
|
| 279 |
}
|
| 280 |
+
.tooltip-close {
|
| 281 |
+
top: 6px;
|
| 282 |
+
right: 6px;
|
| 283 |
+
width: 26px;
|
| 284 |
+
height: 26px;
|
| 285 |
+
font-size: 15px;
|
| 286 |
+
}
|
| 287 |
.tooltip-image {
|
| 288 |
max-height: 22vh;
|
| 289 |
}
|
|
|
|
| 304 |
html, body { margin: 0; padding: 0; height: 100%; }
|
| 305 |
.progress-dialog p { margin: 0; padding: 5px; }
|
| 306 |
|
|
|
|
| 307 |
@media (max-width: 600px) {
|
| 308 |
.menu-content {
|
| 309 |
width: 85vw;
|