Spaces:
Running
Running
Create viewer.css
Browse files- viewer.css +51 -0
viewer.css
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Only loaded by the model viewer; the loading screen keeps normal page flow. */
|
| 2 |
+
[data-testid="stMainBlockContainer"] {
|
| 3 |
+
padding: 3rem 1.5rem .5rem;
|
| 4 |
+
max-width: none;
|
| 5 |
+
}
|
| 6 |
+
[data-testid="stMain"] { overflow: hidden; }
|
| 7 |
+
.st-key-chart_pane {
|
| 8 |
+
position: fixed;
|
| 9 |
+
top: 6.5rem;
|
| 10 |
+
left: 1.5rem;
|
| 11 |
+
right: 1.5rem;
|
| 12 |
+
width: auto !important;
|
| 13 |
+
height: calc(50dvh - 4rem) !important;
|
| 14 |
+
min-height: 140px;
|
| 15 |
+
overflow: hidden;
|
| 16 |
+
padding: .25rem;
|
| 17 |
+
}
|
| 18 |
+
.st-key-controls_pane {
|
| 19 |
+
position: fixed;
|
| 20 |
+
top: calc(50dvh + 3rem);
|
| 21 |
+
bottom: .75rem;
|
| 22 |
+
left: 1.5rem;
|
| 23 |
+
right: 1.5rem;
|
| 24 |
+
width: auto !important;
|
| 25 |
+
height: auto !important;
|
| 26 |
+
min-height: 0;
|
| 27 |
+
overflow-x: hidden;
|
| 28 |
+
overflow-y: auto;
|
| 29 |
+
overscroll-behavior: contain;
|
| 30 |
+
scrollbar-gutter: stable;
|
| 31 |
+
padding: .75rem 1rem;
|
| 32 |
+
border-top: 1px solid rgba(128, 128, 128, .25);
|
| 33 |
+
}
|
| 34 |
+
.st-key-controls_pane [data-testid="stSubheader"] { padding-top: 0; }
|
| 35 |
+
.st-key-controls_pane [data-testid="stMetricValue"] { font-size: 1.5rem; }
|
| 36 |
+
@media (min-width: 851px) and (max-width: 1250px) {
|
| 37 |
+
.st-key-control_columns > [data-testid="stLayoutWrapper"] > [data-testid="stHorizontalBlock"] { flex-wrap: wrap; }
|
| 38 |
+
.st-key-control_columns > [data-testid="stLayoutWrapper"] > [data-testid="stHorizontalBlock"] > [data-testid="stColumn"] {
|
| 39 |
+
width: calc(50% - 1rem) !important;
|
| 40 |
+
flex: 1 1 calc(50% - 1rem) !important;
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
@media (max-width: 850px) {
|
| 44 |
+
[data-testid="stMainBlockContainer"] { padding-left: .5rem; padding-right: .5rem; }
|
| 45 |
+
.st-key-chart_pane, .st-key-controls_pane { left: .5rem; right: .5rem; }
|
| 46 |
+
.st-key-control_columns > [data-testid="stLayoutWrapper"] > [data-testid="stHorizontalBlock"] { flex-direction: column; }
|
| 47 |
+
.st-key-control_columns > [data-testid="stLayoutWrapper"] > [data-testid="stHorizontalBlock"] > [data-testid="stColumn"] {
|
| 48 |
+
width: 100% !important;
|
| 49 |
+
flex: 1 1 auto !important;
|
| 50 |
+
}
|
| 51 |
+
}
|