Spaces:
Running on Zero
Running on Zero
refactor
Browse files
film.py
CHANGED
|
@@ -41,7 +41,7 @@ button.go:hover{background:#ef1b1b}
|
|
| 41 |
#bug .txt{max-width:360px;font:500 12px var(--sans);color:#d3def2;line-height:1.25}
|
| 42 |
/* body */
|
| 43 |
#main{flex:1;min-height:0;display:flex}
|
| 44 |
-
#stage{flex:1;min-width:0;
|
| 45 |
svg#field{width:100%;height:100%;display:block;touch-action:none;user-select:none}
|
| 46 |
#viewbar{position:absolute;top:10px;left:10px;display:flex;gap:6px;flex-wrap:wrap;z-index:3}
|
| 47 |
#viewbar .grp{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:rgba(5,15,34,.86);backdrop-filter:blur(3px)}
|
|
@@ -100,7 +100,8 @@ select{background:var(--navy3);color:var(--ink);border:1px solid var(--line);bor
|
|
| 100 |
.rt svg{width:34px;height:34px;display:block}
|
| 101 |
.rt .cap{padding:0 14px 8px;color:var(--mute);font-size:11.5px}
|
| 102 |
svg#field.drawing{cursor:crosshair}
|
| 103 |
-
#tools{
|
|
|
|
| 104 |
#tools button{width:50px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 0 4px;border-radius:8px;font:700 10.5px var(--cond);letter-spacing:.8px;text-transform:uppercase}
|
| 105 |
#tools button .ic{font-size:18px;line-height:20px;font-family:var(--sans)}
|
| 106 |
#tools button.on{background:var(--blue)}#tools button:hover:not(.on):not(:disabled){background:#17376a}
|
|
@@ -120,15 +121,6 @@ svg#field.drawing{cursor:crosshair}
|
|
| 120 |
<div id="bug"></div>
|
| 121 |
<div id="main">
|
| 122 |
<div id="stage">
|
| 123 |
-
<div id="viewbar">
|
| 124 |
-
<div class="grp" id="gmode"></div>
|
| 125 |
-
<div class="grp" id="gcam"><button data-c="fixed">Coach</button><button data-c="follow">Follow</button><button data-c="full">Full</button></div>
|
| 126 |
-
<div class="grp"><button id="bghost">Other hash</button></div>
|
| 127 |
-
</div>
|
| 128 |
-
<div id="legend"></div>
|
| 129 |
-
<svg id="field" xmlns="http://www.w3.org/2000/svg"></svg>
|
| 130 |
-
<div id="chy"></div>
|
| 131 |
-
<div id="layers"></div><div id="toast"></div>
|
| 132 |
<div id="tools">
|
| 133 |
<span class="lab">Players</span>
|
| 134 |
<button data-t="move" id="tmove" title="Move (V): scrub to a moment, drag a player to where he should be, or drag the cyan points"><span class="ic">✥</span>Move</button>
|
|
@@ -145,6 +137,17 @@ svg#field.drawing{cursor:crosshair}
|
|
| 145 |
<button id="bredo" title="Redo (Ctrl+Shift+Z)"><span class="ic">↷</span>Redo</button>
|
| 146 |
<button id="bclr" title="Clear all ink (right-click one mark to delete it)"><span class="ic">✕</span>Clear</button>
|
| 147 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
</div>
|
| 149 |
<div id="side"></div>
|
| 150 |
</div>
|
|
|
|
| 41 |
#bug .txt{max-width:360px;font:500 12px var(--sans);color:#d3def2;line-height:1.25}
|
| 42 |
/* body */
|
| 43 |
#main{flex:1;min-height:0;display:flex}
|
| 44 |
+
#stage{flex:1;min-width:0;display:flex;background:#04101f}
|
| 45 |
svg#field{width:100%;height:100%;display:block;touch-action:none;user-select:none}
|
| 46 |
#viewbar{position:absolute;top:10px;left:10px;display:flex;gap:6px;flex-wrap:wrap;z-index:3}
|
| 47 |
#viewbar .grp{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:rgba(5,15,34,.86);backdrop-filter:blur(3px)}
|
|
|
|
| 100 |
.rt svg{width:34px;height:34px;display:block}
|
| 101 |
.rt .cap{padding:0 14px 8px;color:var(--mute);font-size:11.5px}
|
| 102 |
svg#field.drawing{cursor:crosshair}
|
| 103 |
+
#tools{flex:none;width:68px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 5px;background:var(--navy2);border-right:1px solid var(--line);overflow-y:auto}
|
| 104 |
+
#fw{flex:1;min-width:0;position:relative}
|
| 105 |
#tools button{width:50px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:1px;padding:5px 0 4px;border-radius:8px;font:700 10.5px var(--cond);letter-spacing:.8px;text-transform:uppercase}
|
| 106 |
#tools button .ic{font-size:18px;line-height:20px;font-family:var(--sans)}
|
| 107 |
#tools button.on{background:var(--blue)}#tools button:hover:not(.on):not(:disabled){background:#17376a}
|
|
|
|
| 121 |
<div id="bug"></div>
|
| 122 |
<div id="main">
|
| 123 |
<div id="stage">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
<div id="tools">
|
| 125 |
<span class="lab">Players</span>
|
| 126 |
<button data-t="move" id="tmove" title="Move (V): scrub to a moment, drag a player to where he should be, or drag the cyan points"><span class="ic">✥</span>Move</button>
|
|
|
|
| 137 |
<button id="bredo" title="Redo (Ctrl+Shift+Z)"><span class="ic">↷</span>Redo</button>
|
| 138 |
<button id="bclr" title="Clear all ink (right-click one mark to delete it)"><span class="ic">✕</span>Clear</button>
|
| 139 |
</div>
|
| 140 |
+
<div id="fw">
|
| 141 |
+
<div id="viewbar">
|
| 142 |
+
<div class="grp" id="gmode"></div>
|
| 143 |
+
<div class="grp" id="gcam"><button data-c="fixed">Coach</button><button data-c="follow">Follow</button><button data-c="full">Full</button></div>
|
| 144 |
+
<div class="grp"><button id="bghost">Other hash</button></div>
|
| 145 |
+
</div>
|
| 146 |
+
<div id="legend"></div>
|
| 147 |
+
<svg id="field" xmlns="http://www.w3.org/2000/svg"></svg>
|
| 148 |
+
<div id="chy"></div>
|
| 149 |
+
<div id="layers"></div><div id="toast"></div>
|
| 150 |
+
</div>
|
| 151 |
</div>
|
| 152 |
<div id="side"></div>
|
| 153 |
</div>
|