Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +19 -23
index.html
CHANGED
|
@@ -88,45 +88,41 @@ select:hover,select:focus{border-color:var(--accent)}
|
|
| 88 |
#splash-content p{font-size:0.9rem;margin-bottom:24px}
|
| 89 |
#splash-content .cta{font-size:0.78rem;padding:8px 22px}
|
| 90 |
|
| 91 |
-
/* App: vertical
|
| 92 |
-
#app{flex-direction:column;height:
|
| 93 |
|
| 94 |
-
/* Sidebar → top panel */
|
| 95 |
-
#sidebar{width:100%;min-width:unset;flex-direction:column;gap:
|
| 96 |
border-right:none;border-bottom:1px solid var(--border);flex-shrink:0}
|
| 97 |
-
#sidebar h1{font-size:
|
| 98 |
#sidebar p.sub{display:none}
|
| 99 |
.control-group{flex-direction:row;align-items:center;gap:8px}
|
| 100 |
.control-group label{min-width:fit-content;margin:0;white-space:nowrap}
|
| 101 |
-
select{flex:1;min-width:0;font-size:0.78rem;padding:
|
| 102 |
-
|
| 103 |
-
/* Info card: horizontal legend */
|
| 104 |
-
.info-card{padding:10px}
|
| 105 |
-
.legend{flex-direction:row;flex-wrap:wrap;gap:6px}
|
| 106 |
-
.legend-item{font-size:0.6rem}
|
| 107 |
|
|
|
|
|
|
|
| 108 |
.credits{display:none}
|
| 109 |
|
| 110 |
-
/*
|
| 111 |
-
#main{flex:
|
| 112 |
-
#viewer-container{
|
| 113 |
#viewer-label{font-size:0.6rem;top:6px;left:8px;padding:2px 8px}
|
| 114 |
|
| 115 |
-
/* Fields panel: side by side
|
| 116 |
-
#fields-panel{height:
|
| 117 |
-
.field-title{font-size:0.
|
| 118 |
-
.field-canvas-wrap canvas{max-height:
|
| 119 |
}
|
| 120 |
|
| 121 |
/* Small phones */
|
| 122 |
@media(max-width:480px){
|
| 123 |
#splash-content h1{font-size:1.6rem}
|
| 124 |
#splash-content p{font-size:0.8rem}
|
| 125 |
-
#sidebar{padding:
|
| 126 |
-
.control-group{flex-direction:column;gap:
|
| 127 |
-
#
|
| 128 |
-
|
| 129 |
-
.field-canvas-wrap canvas{max-height:110px}
|
| 130 |
}
|
| 131 |
</style>
|
| 132 |
</head>
|
|
|
|
| 88 |
#splash-content p{font-size:0.9rem;margin-bottom:24px}
|
| 89 |
#splash-content .cta{font-size:0.78rem;padding:8px 22px}
|
| 90 |
|
| 91 |
+
/* App: vertical layout, calc-based so everything fits in viewport */
|
| 92 |
+
#app{flex-direction:column;height:100vh;overflow:hidden}
|
| 93 |
|
| 94 |
+
/* Sidebar → compact top panel */
|
| 95 |
+
#sidebar{width:100%;min-width:unset;flex-direction:column;gap:8px;padding:10px 14px;
|
| 96 |
border-right:none;border-bottom:1px solid var(--border);flex-shrink:0}
|
| 97 |
+
#sidebar h1{font-size:1rem}
|
| 98 |
#sidebar p.sub{display:none}
|
| 99 |
.control-group{flex-direction:row;align-items:center;gap:8px}
|
| 100 |
.control-group label{min-width:fit-content;margin:0;white-space:nowrap}
|
| 101 |
+
select{flex:1;min-width:0;font-size:0.78rem;padding:7px 30px 7px 8px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
|
| 103 |
+
/* Hide info card on mobile to save space */
|
| 104 |
+
.info-card{display:none}
|
| 105 |
.credits{display:none}
|
| 106 |
|
| 107 |
+
/* 3D viewer takes remaining space minus fields */
|
| 108 |
+
#main{flex:1;min-height:0;display:flex;flex-direction:column}
|
| 109 |
+
#viewer-container{flex:1;min-height:0}
|
| 110 |
#viewer-label{font-size:0.6rem;top:6px;left:8px;padding:2px 8px}
|
| 111 |
|
| 112 |
+
/* Fields panel: fixed height, side by side */
|
| 113 |
+
#fields-panel{height:200px;min-height:200px;max-height:200px;flex-shrink:0}
|
| 114 |
+
.field-title{font-size:0.7rem;margin-bottom:3px}
|
| 115 |
+
.field-canvas-wrap canvas{max-height:150px}
|
| 116 |
}
|
| 117 |
|
| 118 |
/* Small phones */
|
| 119 |
@media(max-width:480px){
|
| 120 |
#splash-content h1{font-size:1.6rem}
|
| 121 |
#splash-content p{font-size:0.8rem}
|
| 122 |
+
#sidebar{padding:8px 10px;gap:6px}
|
| 123 |
+
.control-group{flex-direction:column;gap:3px}
|
| 124 |
+
#fields-panel{height:170px;min-height:170px;max-height:170px}
|
| 125 |
+
.field-canvas-wrap canvas{max-height:125px}
|
|
|
|
| 126 |
}
|
| 127 |
</style>
|
| 128 |
</head>
|