Spaces:
Running
Running
Update style/defaults/style.css
Browse files- style/defaults/style.css +58 -15
style/defaults/style.css
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
/* viewer.css */
|
| 2 |
|
| 3 |
/* Widget container styling */
|
|
@@ -115,7 +116,7 @@ progress::-moz-progress-bar {
|
|
| 115 |
position: absolute;
|
| 116 |
top: 50%; left: 50%;
|
| 117 |
transform: translate(-50%, -50%);
|
| 118 |
-
background: rgba(242,240,239,0.
|
| 119 |
color: #545454;
|
| 120 |
border: 1px solid #ddd;
|
| 121 |
border-radius: 10px;
|
|
@@ -125,12 +126,13 @@ progress::-moz-progress-bar {
|
|
| 125 |
box-shadow: none;
|
| 126 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 127 |
z-index: 1010;
|
| 128 |
-
max-width: 90vw;
|
| 129 |
-
max-height: 90%;
|
| 130 |
-
overflow-y: auto;
|
| 131 |
-
overflow-x: auto;
|
| 132 |
box-sizing: border-box;
|
| 133 |
}
|
|
|
|
| 134 |
.help-close {
|
| 135 |
position: absolute;
|
| 136 |
top: 8px;
|
|
@@ -180,6 +182,9 @@ progress::-moz-progress-bar {
|
|
| 180 |
:-moz-full-screen .widget-button,
|
| 181 |
:-ms-fullscreen .widget-button { z-index: 10000; }
|
| 182 |
|
|
|
|
|
|
|
|
|
|
| 183 |
/* --------- TOOLTIP PANEL ----------- */
|
| 184 |
.tooltip-panel {
|
| 185 |
position: absolute;
|
|
@@ -190,7 +195,7 @@ progress::-moz-progress-bar {
|
|
| 190 |
color: #545454;
|
| 191 |
border: 1px solid #ddd;
|
| 192 |
border-radius: 6px;
|
| 193 |
-
padding: 20px 20px 16px 16px;
|
| 194 |
max-width: 340px;
|
| 195 |
width: 92vw;
|
| 196 |
min-width: 180px;
|
|
@@ -203,8 +208,10 @@ progress::-moz-progress-bar {
|
|
| 203 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 204 |
overflow: auto;
|
| 205 |
box-sizing: border-box;
|
|
|
|
| 206 |
}
|
| 207 |
|
|
|
|
| 208 |
.tooltip-content {
|
| 209 |
width: 100%;
|
| 210 |
min-width: 160px;
|
|
@@ -217,6 +224,7 @@ progress::-moz-progress-bar {
|
|
| 217 |
margin-top: 0;
|
| 218 |
}
|
| 219 |
|
|
|
|
| 220 |
.tooltip-close {
|
| 221 |
position: absolute;
|
| 222 |
top: 12px;
|
|
@@ -245,6 +253,7 @@ progress::-moz-progress-bar {
|
|
| 245 |
outline: none;
|
| 246 |
}
|
| 247 |
|
|
|
|
| 248 |
.tooltip-text {
|
| 249 |
margin-bottom: 10px;
|
| 250 |
font-size: 14px;
|
|
@@ -263,7 +272,7 @@ progress::-moz-progress-bar {
|
|
| 263 |
box-sizing: border-box;
|
| 264 |
}
|
| 265 |
|
| 266 |
-
/*
|
| 267 |
@media (max-width: 600px) {
|
| 268 |
.tooltip-panel {
|
| 269 |
top: auto;
|
|
@@ -275,7 +284,7 @@ progress::-moz-progress-bar {
|
|
| 275 |
max-width: 94vw;
|
| 276 |
min-width: 0;
|
| 277 |
max-height: 55vh;
|
| 278 |
-
padding:
|
| 279 |
font-size: 13.5px;
|
| 280 |
}
|
| 281 |
.tooltip-close {
|
|
@@ -288,16 +297,36 @@ progress::-moz-progress-bar {
|
|
| 288 |
.tooltip-image {
|
| 289 |
max-height: 22vh;
|
| 290 |
}
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
}
|
| 298 |
-
.
|
|
|
|
|
|
|
|
|
|
| 299 |
top: 6px;
|
| 300 |
right: 6px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 301 |
}
|
| 302 |
}
|
| 303 |
|
|
@@ -315,3 +344,17 @@ progress::-moz-progress-bar {
|
|
| 315 |
#application-canvas { width: 100%; height: 100%; display: block; }
|
| 316 |
html, body { margin: 0; padding: 0; height: 100%; }
|
| 317 |
.progress-dialog p { margin: 0; padding: 5px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
/* viewer.css */
|
| 3 |
|
| 4 |
/* Widget container styling */
|
|
|
|
| 116 |
position: absolute;
|
| 117 |
top: 50%; left: 50%;
|
| 118 |
transform: translate(-50%, -50%);
|
| 119 |
+
background: rgba(242,240,239,0.9);
|
| 120 |
color: #545454;
|
| 121 |
border: 1px solid #ddd;
|
| 122 |
border-radius: 10px;
|
|
|
|
| 126 |
box-shadow: none;
|
| 127 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 128 |
z-index: 1010;
|
| 129 |
+
max-width: 90vw; /* Do not exceed viewport width */
|
| 130 |
+
max-height: 90%; /* <<< NEW: Do not exceed 90% of viewer container */
|
| 131 |
+
overflow-y: auto; /* Scroll vertically if needed */
|
| 132 |
+
overflow-x: auto; /* Prevent overflow horizontally */
|
| 133 |
box-sizing: border-box;
|
| 134 |
}
|
| 135 |
+
|
| 136 |
.help-close {
|
| 137 |
position: absolute;
|
| 138 |
top: 8px;
|
|
|
|
| 182 |
:-moz-full-screen .widget-button,
|
| 183 |
:-ms-fullscreen .widget-button { z-index: 10000; }
|
| 184 |
|
| 185 |
+
/* --------- TOOLTIP PANEL ----------- */
|
| 186 |
+
/* ...rest of your CSS remains unchanged... */
|
| 187 |
+
|
| 188 |
/* --------- TOOLTIP PANEL ----------- */
|
| 189 |
.tooltip-panel {
|
| 190 |
position: absolute;
|
|
|
|
| 195 |
color: #545454;
|
| 196 |
border: 1px solid #ddd;
|
| 197 |
border-radius: 6px;
|
| 198 |
+
padding: 20px 20px 16px 16px; /* Extra top/right for button */
|
| 199 |
max-width: 340px;
|
| 200 |
width: 92vw;
|
| 201 |
min-width: 180px;
|
|
|
|
| 208 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
| 209 |
overflow: auto;
|
| 210 |
box-sizing: border-box;
|
| 211 |
+
position: absolute;
|
| 212 |
}
|
| 213 |
|
| 214 |
+
/* Ensure content does not go under close button */
|
| 215 |
.tooltip-content {
|
| 216 |
width: 100%;
|
| 217 |
min-width: 160px;
|
|
|
|
| 224 |
margin-top: 0;
|
| 225 |
}
|
| 226 |
|
| 227 |
+
/* CLOSE BUTTON AS SQUARE WITH ROUNDED CORNERS */
|
| 228 |
.tooltip-close {
|
| 229 |
position: absolute;
|
| 230 |
top: 12px;
|
|
|
|
| 253 |
outline: none;
|
| 254 |
}
|
| 255 |
|
| 256 |
+
/* Tooltip text and image */
|
| 257 |
.tooltip-text {
|
| 258 |
margin-bottom: 10px;
|
| 259 |
font-size: 14px;
|
|
|
|
| 272 |
box-sizing: border-box;
|
| 273 |
}
|
| 274 |
|
| 275 |
+
/* --- MOBILE adjustments --- */
|
| 276 |
@media (max-width: 600px) {
|
| 277 |
.tooltip-panel {
|
| 278 |
top: auto;
|
|
|
|
| 284 |
max-width: 94vw;
|
| 285 |
min-width: 0;
|
| 286 |
max-height: 55vh;
|
| 287 |
+
padding: 16px 10px 12px 10px;
|
| 288 |
font-size: 13.5px;
|
| 289 |
}
|
| 290 |
.tooltip-close {
|
|
|
|
| 297 |
.tooltip-image {
|
| 298 |
max-height: 22vh;
|
| 299 |
}
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
/* --- Mobile adjustments --- */
|
| 304 |
+
@media (max-width: 600px) {
|
| 305 |
+
.tooltip-panel {
|
| 306 |
+
top: auto;
|
| 307 |
+
bottom: 8px;
|
| 308 |
+
right: 3vw;
|
| 309 |
+
left: 3vw;
|
| 310 |
+
transform: none;
|
| 311 |
+
width: auto;
|
| 312 |
+
max-width: 94vw;
|
| 313 |
+
min-width: 0;
|
| 314 |
+
max-height: 55vh;
|
| 315 |
+
padding: 28px 14px 12px 12px; /* extra for top, right */
|
| 316 |
+
font-size: 13.5px;
|
| 317 |
}
|
| 318 |
+
.tooltip-content {
|
| 319 |
+
min-width: 0;
|
| 320 |
+
}
|
| 321 |
+
.tooltip-close {
|
| 322 |
top: 6px;
|
| 323 |
right: 6px;
|
| 324 |
+
width: 26px;
|
| 325 |
+
height: 26px;
|
| 326 |
+
font-size: 15px;
|
| 327 |
+
}
|
| 328 |
+
.tooltip-image {
|
| 329 |
+
max-height: 22vh;
|
| 330 |
}
|
| 331 |
}
|
| 332 |
|
|
|
|
| 344 |
#application-canvas { width: 100%; height: 100%; display: block; }
|
| 345 |
html, body { margin: 0; padding: 0; height: 100%; }
|
| 346 |
.progress-dialog p { margin: 0; padding: 5px; }
|
| 347 |
+
|
| 348 |
+
@media (max-width: 600px) {
|
| 349 |
+
.menu-content {
|
| 350 |
+
width: 85vw;
|
| 351 |
+
max-height: 90%;
|
| 352 |
+
overflow-y: auto;
|
| 353 |
+
padding: 40px 18px 14px;
|
| 354 |
+
font-size: 14px;
|
| 355 |
+
}
|
| 356 |
+
.menu-content .help-close {
|
| 357 |
+
top: 6px;
|
| 358 |
+
right: 6px;
|
| 359 |
+
}
|
| 360 |
+
}
|