Files
DndGamePlayer/app/renderer/editor/EditorApp.module.css
T
Ivan Fontosh 2fa20da94d Лицензия, редактор, пульт и сборка
- Main: license service, IPC, router; закрытие окон; yauzl закрытие zip (EMFILE), zipRead тест
- Editor: стабильный projectState без мигания, логотип и меню, строки UI, LayoutShell overlay
- Control: ластик для всех типов эффектов, затухание/нарастание музыки при смене сцены
- Сборка: vite, build/dev scripts, obfuscate-main и build-env скрипты с тестами; package.json

Made-with: Cursor
2026-04-19 20:11:24 +08:00

651 lines
9.9 KiB
CSS

.topBarRow {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
}
.brandButton {
display: flex;
align-items: center;
gap: 10px;
border: none;
background: transparent;
cursor: pointer;
padding: 0;
color: inherit;
font: inherit;
}
.brandLogo {
flex-shrink: 0;
display: block;
}
.brandTitle {
font-weight: 700;
}
.fileToolbar {
display: flex;
align-items: center;
gap: 14px;
color: var(--text2);
}
.fileMenuTrigger {
border: none;
background: transparent;
color: var(--text2);
cursor: pointer;
padding: 0;
font: inherit;
}
.flex1 {
flex: 1;
}
.appVersion {
flex-shrink: 0;
font-size: var(--text-xs);
color: var(--text2);
user-select: none;
}
.headerActions {
display: flex;
align-items: center;
gap: 10px;
}
.editorSidebar {
height: 100%;
min-height: 0;
display: grid;
grid-template-rows: auto 1fr;
padding: 12px;
border-right: 1px solid var(--stroke);
background: var(--editor-column-bg);
overflow: hidden;
}
.editorGraphHost {
height: 100%;
min-height: 0;
min-width: 0;
display: flex;
flex-direction: column;
background: var(--bg0);
overflow: hidden;
}
.editorInspector {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
padding: 14px;
border-left: 1px solid var(--stroke);
background: var(--editor-column-bg);
}
.gridTools {
display: grid;
gap: 10px;
}
.spacer14 {
height: 14px;
}
.sidebarScroll {
overflow: auto;
padding-right: 2px;
min-height: 0;
align-self: stretch;
}
.sceneListGrid {
display: grid;
gap: 12px;
align-content: start;
justify-items: stretch;
}
.centerEmpty {
height: 100%;
flex: 1;
background: var(--bg0);
}
.inspectorTitle {
font-weight: 800;
margin-bottom: 12px;
flex-shrink: 0;
}
.inspectorScroll {
flex: 1;
min-height: 0;
overflow: auto;
padding-right: 4px;
}
.muted {
color: var(--text2);
}
.fileMenu {
position: fixed;
min-width: 220px;
border-radius: var(--radius-md);
border: 1px solid var(--stroke);
background: var(--color-surface-elevated-2);
box-shadow: var(--shadow-lg);
padding: 6px;
display: grid;
gap: 4px;
z-index: var(--z-file-menu);
}
.fileMenuItem {
text-align: left;
padding: 10px;
border-radius: var(--radius-sm);
border: none;
background: transparent;
color: var(--text0);
cursor: pointer;
font: inherit;
}
.modalBackdrop {
position: fixed;
inset: 0;
z-index: var(--z-modal-backdrop);
border: none;
padding: 0;
margin: 0;
background: var(--color-scrim);
cursor: default;
}
.modalDialog {
position: fixed;
z-index: var(--z-modal);
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 520px;
max-width: calc(100vw - 32px);
border-radius: var(--radius-lg);
border: 1px solid var(--stroke);
background: var(--color-surface-elevated);
box-shadow: var(--shadow-xl);
padding: 16px;
display: grid;
gap: 12px;
}
.modalHeader {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.modalTitle {
font-weight: 900;
font-size: var(--text-lg);
}
.modalClose {
border: none;
background: var(--panel2);
color: var(--text2);
border-radius: var(--radius-sm);
width: 34px;
height: 34px;
cursor: pointer;
font-size: 18px;
line-height: 1;
}
.fieldGrid {
display: grid;
gap: 6px;
}
.fieldLabel {
color: var(--text2);
font-size: var(--text-xs);
font-weight: 800;
}
.fieldError {
color: var(--color-danger);
font-size: var(--text-xs);
}
.selectInput {
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
border-radius: var(--radius-sm);
border: 1px solid var(--stroke);
background: var(--bg0);
color: var(--text0);
font: inherit;
}
.rowFlex {
display: flex;
gap: 8px;
align-items: center;
}
.modalFooter {
display: flex;
justify-content: flex-end;
gap: 10px;
margin-top: 4px;
}
.licenseBlockTitle {
font-weight: 900;
font-size: var(--text-lg);
margin-bottom: 8px;
}
.licenseTextarea {
width: 100%;
min-height: 120px;
box-sizing: border-box;
padding: 10px;
border-radius: var(--radius-sm);
border: 1px solid var(--stroke);
background: var(--bg0);
color: var(--text0);
font: inherit;
resize: vertical;
}
.eulaScroll {
max-height: min(52vh, 420px);
overflow: auto;
padding: 10px;
border-radius: var(--radius-sm);
border: 1px solid var(--stroke);
background: var(--bg0);
white-space: pre-wrap;
font-size: var(--text-sm);
line-height: 1.45;
}
.fileSuffix {
color: var(--text2);
font-size: var(--text-xs);
flex-shrink: 0;
}
.projectPicker {
display: grid;
gap: 12px;
min-height: 0;
}
.projectPickerTitle {
font-weight: 900;
}
.projectPickerForm {
display: grid;
gap: 10px;
}
.spacer6 {
height: 6px;
}
.sectionLabel {
color: var(--text2);
font-size: var(--text-xs);
font-weight: 900;
letter-spacing: 0.6px;
}
.projectListScroll {
overflow: auto;
padding-right: 2px;
}
.projectList {
display: grid;
gap: 10px;
}
.projectCard {
display: flex;
align-items: flex-start;
gap: 8px;
padding: 12px;
border-radius: 14px;
border: 1px solid var(--stroke);
background: var(--color-overlay-dark-2);
}
.projectCardBody {
flex: 1;
min-width: 0;
cursor: pointer;
border-radius: 10px;
}
.projectCardMenuBtn {
flex-shrink: 0;
margin: -4px -4px 0 0;
border: none;
background: transparent;
color: var(--text2);
cursor: pointer;
padding: 4px 8px;
border-radius: var(--radius-sm);
font-size: 18px;
line-height: 1;
}
.projectCardMenuBtn:hover {
background: var(--panel2);
color: var(--text0);
}
.projectCardName {
font-weight: 800;
}
.projectCardMeta {
color: var(--text2);
font-size: var(--text-xs);
}
.sceneInspector {
display: grid;
gap: 10px;
}
.labelSm {
color: var(--text2);
font-size: var(--text-xs);
font-weight: 700;
}
.spacer8 {
height: 8px;
}
.textarea {
min-height: 92px;
padding: 12px;
border-radius: var(--radius-md);
border: 1px solid var(--stroke);
background: var(--color-overlay-dark-3);
resize: none;
color: var(--text1);
outline: none;
}
.hint {
color: var(--text2);
font-size: var(--text-xs);
line-height: 1.4;
}
.previewBox {
border-radius: var(--radius-md);
border: 1px solid var(--stroke);
overflow: hidden;
background: var(--color-overlay-dark-3);
aspect-ratio: 16 / 9;
max-height: 140px;
display: flex;
align-items: center;
justify-content: center;
}
.videoCover {
width: 100%;
height: 100%;
object-fit: cover;
}
.previewEmpty {
color: var(--text2);
font-size: var(--text-xs);
padding: 12px;
}
.actionsRow {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.checkboxLabel {
display: flex;
gap: 8px;
align-items: center;
color: var(--text2);
}
.checkboxLabelSm {
display: flex;
gap: 6px;
align-items: center;
cursor: pointer;
}
.spanSm {
font-size: var(--text-xs);
font-weight: 700;
}
.spanXs {
font-size: 11px;
}
.audioDrop {
border-radius: var(--radius-md);
border: 1px dashed var(--stroke2);
padding: 10px;
display: grid;
gap: 8px;
}
.audioList {
display: grid;
gap: 6px;
max-height: 160px;
overflow: auto;
}
.audioRow {
font-size: var(--text-xs);
padding: 6px 8px;
border-radius: var(--radius-xs);
background: var(--color-overlay-dark-3);
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
min-width: 0;
}
.audioName {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.audioControls {
color: var(--text2);
flex-shrink: 0;
display: flex;
gap: 8px;
align-items: center;
min-width: 0;
}
.audioRemove {
flex-shrink: 0;
min-width: 28px;
min-height: 28px;
padding: 4px;
margin: -4px;
border: none;
background: transparent;
color: var(--text-muted-on-dark);
cursor: pointer;
line-height: 1;
display: grid;
place-items: center;
}
.audioRemove:hover {
color: rgba(255, 255, 255, 0.72);
}
.audioRemoveIcon {
display: block;
opacity: 0.92;
}
.hintBlock {
color: var(--text2);
}
.sceneCard {
border-radius: var(--scene-tile-radius);
overflow: hidden;
cursor: grab;
border: 1px solid transparent;
box-sizing: border-box;
background: transparent;
}
.sceneCard:not(.sceneCardActive):hover {
background: var(--scene-list-hover-bg);
}
.sceneCardActive {
border-color: var(--scene-list-selected-border);
background: var(--scene-list-selected-bg);
}
.sceneThumb {
height: 92px;
position: relative;
box-sizing: border-box;
padding: 8px;
}
.sceneThumbInner {
width: 100%;
height: 100%;
border-radius: 10px;
overflow: hidden;
}
.sceneThumbVideo {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.sceneThumbEmpty {
height: 92px;
position: relative;
box-sizing: border-box;
padding: 8px;
}
.sceneThumbEmptyInner {
width: 100%;
height: 100%;
border-radius: 10px;
background: var(--bg0);
}
.sceneCardBody {
padding: 10px;
display: grid;
gap: 6px;
}
.sceneCardHeader {
display: flex;
align-items: center;
gap: 8px;
}
.badgeCurrent {
font-size: var(--text-xs);
color: var(--accent2);
}
.sceneMenuBtn {
margin-left: auto;
border: none;
background: var(--panel2);
border-radius: var(--radius-xs);
padding: 4px 10px;
cursor: pointer;
color: var(--text2);
line-height: 1;
font-size: 16px;
flex-shrink: 0;
}
.sceneCardTitle {
font-weight: 750;
}
.menuBackdrop {
position: fixed;
inset: 0;
z-index: var(--z-menu-backdrop);
border: none;
padding: 0;
margin: 0;
background: transparent;
cursor: default;
}
.sceneCtxMenu {
position: fixed;
z-index: var(--z-file-menu);
min-width: 160px;
padding: 6px;
border-radius: var(--radius-sm);
border: 1px solid var(--stroke);
background: var(--color-surface-menu);
box-shadow: var(--shadow-menu);
display: grid;
gap: 2px;
}
.sceneCtxDanger {
text-align: left;
padding: 8px 10px;
border-radius: var(--radius-xs);
border: none;
background: transparent;
color: var(--color-danger);
font-size: 13px;
cursor: pointer;
width: 100%;
}