Spaces:
Running
Running
Update style/style_template.css
Browse files- style/style_template.css +16 -14
style/style_template.css
CHANGED
|
@@ -1,12 +1,19 @@
|
|
| 1 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
/* Widget container styling */
|
| 4 |
.ply-widget-container {
|
| 5 |
-
position: relative;
|
| 6 |
width: 100%;
|
| 7 |
height: 0;
|
|
|
|
|
|
|
|
|
|
| 8 |
/* padding-bottom is set dynamically inline for aspect ratio */
|
| 9 |
-
background-color: black; /* Background color set to black for PlayCanvas compatibility */
|
| 10 |
}
|
| 11 |
|
| 12 |
/* When in fake fullscreen mode (iOS fallback) */
|
|
@@ -18,7 +25,6 @@
|
|
| 18 |
height: 100vh !important;
|
| 19 |
padding-bottom: 0 !important;
|
| 20 |
z-index: 9999 !important;
|
| 21 |
-
background-color: black;
|
| 22 |
}
|
| 23 |
|
| 24 |
/* GIF Preview styling */
|
|
@@ -49,11 +55,12 @@
|
|
| 49 |
left: 0;
|
| 50 |
width: 100%;
|
| 51 |
height: 100%;
|
| 52 |
-
background: black;
|
| 53 |
border: 1px solid #474558;
|
| 54 |
border-radius: 10px;
|
| 55 |
overflow: hidden;
|
| 56 |
box-sizing: border-box;
|
|
|
|
| 57 |
}
|
| 58 |
|
| 59 |
/* Canvas fills the viewer container */
|
|
@@ -61,7 +68,8 @@
|
|
| 61 |
width: 100%;
|
| 62 |
height: 100%;
|
| 63 |
display: block;
|
| 64 |
-
background-color: transparent;
|
|
|
|
| 65 |
}
|
| 66 |
|
| 67 |
/* Progress dialog styling (centered) */
|
|
@@ -71,7 +79,7 @@
|
|
| 71 |
left: 50%;
|
| 72 |
transform: translate(-50%, -50%);
|
| 73 |
border: none;
|
| 74 |
-
background: rgba(0,0,0,0.7);
|
| 75 |
padding: 20px;
|
| 76 |
border-radius: 5px;
|
| 77 |
z-index: 1000;
|
|
@@ -209,13 +217,7 @@ progress::-moz-progress-bar {
|
|
| 209 |
width: 100%;
|
| 210 |
height: 100%;
|
| 211 |
display: block;
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
html, body {
|
| 215 |
-
margin: 0;
|
| 216 |
-
padding: 0;
|
| 217 |
-
height: 100%;
|
| 218 |
-
overflow: hidden;
|
| 219 |
}
|
| 220 |
|
| 221 |
/* Error message styling */
|
|
|
|
| 1 |
+
/* Critical fixes for page scrolling */
|
| 2 |
+
html, body {
|
| 3 |
+
overflow: auto !important;
|
| 4 |
+
height: auto !important;
|
| 5 |
+
position: static !important;
|
| 6 |
+
}
|
| 7 |
|
| 8 |
/* Widget container styling */
|
| 9 |
.ply-widget-container {
|
| 10 |
+
position: relative !important;
|
| 11 |
width: 100%;
|
| 12 |
height: 0;
|
| 13 |
+
z-index: 1 !important;
|
| 14 |
+
touch-action: pan-x pan-y !important;
|
| 15 |
+
overflow: visible !important;
|
| 16 |
/* padding-bottom is set dynamically inline for aspect ratio */
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
/* When in fake fullscreen mode (iOS fallback) */
|
|
|
|
| 25 |
height: 100vh !important;
|
| 26 |
padding-bottom: 0 !important;
|
| 27 |
z-index: 9999 !important;
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
/* GIF Preview styling */
|
|
|
|
| 55 |
left: 0;
|
| 56 |
width: 100%;
|
| 57 |
height: 100%;
|
| 58 |
+
background: black;
|
| 59 |
border: 1px solid #474558;
|
| 60 |
border-radius: 10px;
|
| 61 |
overflow: hidden;
|
| 62 |
box-sizing: border-box;
|
| 63 |
+
touch-action: pan-x pan-y !important;
|
| 64 |
}
|
| 65 |
|
| 66 |
/* Canvas fills the viewer container */
|
|
|
|
| 68 |
width: 100%;
|
| 69 |
height: 100%;
|
| 70 |
display: block;
|
| 71 |
+
background-color: transparent;
|
| 72 |
+
touch-action: pan-x pan-y !important;
|
| 73 |
}
|
| 74 |
|
| 75 |
/* Progress dialog styling (centered) */
|
|
|
|
| 79 |
left: 50%;
|
| 80 |
transform: translate(-50%, -50%);
|
| 81 |
border: none;
|
| 82 |
+
background: rgba(0,0,0,0.7);
|
| 83 |
padding: 20px;
|
| 84 |
border-radius: 5px;
|
| 85 |
z-index: 1000;
|
|
|
|
| 217 |
width: 100%;
|
| 218 |
height: 100%;
|
| 219 |
display: block;
|
| 220 |
+
touch-action: pan-x pan-y !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 221 |
}
|
| 222 |
|
| 223 |
/* Error message styling */
|