body { margin: 0; } .wreck { width: 18px; cursor: pointer; padding: 2px; fill: #eee; } .label { position: absolute; top: -0.2em; left: calc(100% + 0.4em); padding: 0.2em 0.4em; background: #000b; border-radius: 0.5em; border: 1px solid #444; pointer-events: none; width: max-content; font-family: sans-serif; font-size: 12px; color: #eee; } .future { opacity: 0.3; } .killed { opacity: 1; } .expired { opacity: 0.3; } .wreck:hover { opacity: 1; border: 3px solid #ff6a00; border-radius: 0.5em; } .wreck .label { display: none; } .wreck:hover .label { display: block; } .wreck::before { display: block; content: ''; position: absolute; bottom: 1px; right: 1px; width: 6px; height: 6px; overflow: hidden; } .teamA::before { background: #cc0899; } .teamB::before { background: #14ea6a; } #container { width: 100%; height: 100vh; overflow: hidden; max-width: unset; } .toolbar-wrap { max-width: 26em; position: absolute; width: 100%; left: max(-100%, -26em); top: 0; transition: left 0.3s; z-index: 10000; } .toolbar-wrap.enabled { left: 0; } .toolbar-wrap button { position: absolute; top: 1em; right: -7em; background: #282828; border: 1px solid #504945; color: #ebdbd2; width: 6em; padding: 0.5em; transition: right 0.3s; } .toolbar-wrap.enabled button { right: 1em; } .toolbar-wrap button:hover { background: #504945; } .toolbar-wrap button:active { background: #665c54; } .toolbar-wrap button:focus, .toolbar-wrap button:active { outline: none; } #toolbar { background: #282828; padding: 0em 1em; width: 100%; max-width: 100%; border-right: 1px solid #504945; overflow: auto; height: 100vh; box-sizing: border-box; }