A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
/**
* @file style.ts — the panel's own CSS.
*
* Written against the editor's theme VARIABLES, which are in scope inside a
* contributed panel — not against its class names, which are internal and would
* silently restyle this the day one of them is renamed.
*/
export const CSS = `
.mixer { display: flex; gap: 8px; padding: 10px; overflow-x: auto; align-items: flex-start; height: 100%; }
.mixer-empty { padding: 16px; color: var(--text-faint); font-size: var(--fs-body); }
.mixer-strip {
display: flex; flex-direction: column; gap: 6px;
min-width: 190px; padding: 8px;
background: var(--srf-2); border: 1px solid var(--groove); border-radius: 6px;
}
.mixer-head { display: flex; align-items: center; gap: 6px; }
.mixer-name { flex: 1; font-size: var(--fs-body); font-weight: 500; color: var(--text); }
.mixer-row { display: flex; align-items: center; gap: 6px; }
.mixer-row input[type='range'] { flex: 1; min-width: 0; accent-color: var(--star); }
.mixer-num { width: 26px; text-align: right; font-family: var(--font-mono); font-size: var(--fs-detail); color: var(--text-faint); }
.mixer-label { font-size: var(--fs-detail); color: var(--text-faint); }
.mixer-icon {
display: grid; place-items: center; width: 22px; height: 22px;
background: none; border: 0; border-radius: 4px; color: var(--text-faint); cursor: pointer;
}
.mixer-icon:hover { background: var(--srf-3); color: var(--text); }
.mixer-icon.is-on { color: var(--star); }
.mixer-select {
background: var(--inset); color: var(--text);
border: 1px solid var(--groove); border-radius: 4px;
font-size: var(--fs-detail); padding: 2px 4px; min-width: 0;
}
.mixer-fx {
display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
padding: 4px; background: var(--srf-3); border-radius: 4px;
}
.mixer-num-field { display: flex; align-items: center; gap: 3px; font-size: var(--fs-detail); color: var(--text-faint); }
.mixer-num-field input {
width: 52px; background: var(--inset); color: var(--text);
border: 1px solid var(--groove); border-radius: 4px; font-size: var(--fs-detail); padding: 2px 4px;
}
.mixer-add {
display: flex; align-items: center; gap: 5px; align-self: stretch;
padding: 8px 12px; background: none; cursor: pointer;
border: 1px dashed var(--groove); border-radius: 6px;
color: var(--text-faint); font-size: var(--fs-body); white-space: nowrap;
}
.mixer-add:hover { color: var(--text); border-color: var(--star); }
`;
/** The rail glyph: three faders at three settings. `currentColor`, so the rail
* owns hover and theme. */
export const RAIL_ICON = `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="1.7" stroke-linecap="round"><path d="M6 3v18M12 3v18M18 3v18"/><path
d="M3 8h6M9 15h6M15 6h6"/></svg>`;