Spaces:
Running
Running
Mobile layout: stacked panels, horizontal tool rail, scrolling page
Browse files- studio.html +18 -0
studio.html
CHANGED
|
@@ -154,6 +154,24 @@
|
|
| 154 |
opacity: 0; transition: opacity .15s;
|
| 155 |
}
|
| 156 |
.example:hover .ex-run { opacity: 1; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
</style>
|
| 158 |
</head>
|
| 159 |
<body>
|
|
|
|
| 154 |
opacity: 0; transition: opacity .15s;
|
| 155 |
}
|
| 156 |
.example:hover .ex-run { opacity: 1; }
|
| 157 |
+
|
| 158 |
+
/* ---------- mobile: stack everything, page scrolls ---------- */
|
| 159 |
+
@media (max-width: 900px) {
|
| 160 |
+
body { overflow: auto; }
|
| 161 |
+
header { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
|
| 162 |
+
#main { flex-direction: column; height: auto; }
|
| 163 |
+
#rail {
|
| 164 |
+
order: 1; width: 100%; flex-direction: row; padding: 8px 10px; gap: 6px;
|
| 165 |
+
overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border);
|
| 166 |
+
}
|
| 167 |
+
.tool-sep { display: none; }
|
| 168 |
+
#side { order: 2; width: 100%; min-width: 0; }
|
| 169 |
+
#viewport { order: 3; min-height: 0; }
|
| 170 |
+
#stage-wrap { flex: none; height: 62vh; margin: 10px 10px 0 10px; }
|
| 171 |
+
#code-panel { height: 170px; margin: 10px 10px 0 10px; }
|
| 172 |
+
#statusbar { position: sticky; bottom: 0; }
|
| 173 |
+
#signin { padding: 7px 12px; }
|
| 174 |
+
}
|
| 175 |
</style>
|
| 176 |
</head>
|
| 177 |
<body>
|