mirror of
https://github.com/akudlay-ru/structure-commander.git
synced 2026-07-22 06:50:56 +00:00
394 lines
8.8 KiB
CSS
394 lines
8.8 KiB
CSS
/* ========================== Modal: общий пульт ========================== */
|
|
.structure-commander-modal {
|
|
max-width: 820px;
|
|
}
|
|
.structure-commander-small-modal {
|
|
max-width: 580px;
|
|
}
|
|
|
|
.structure-commander-section {
|
|
margin: 14px 0;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 8px;
|
|
background: var(--background-secondary);
|
|
}
|
|
.structure-commander-section h3 {
|
|
margin: 0 0 8px 0;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.structure-commander-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.structure-commander-buttons button {
|
|
cursor: pointer;
|
|
padding: 4px 10px;
|
|
}
|
|
.structure-commander-levels button {
|
|
min-width: 42px;
|
|
}
|
|
|
|
.structure-commander-note,
|
|
.structure-commander-muted {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.structure-radio-group,
|
|
.structure-radio-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
margin: 12px 0;
|
|
}
|
|
.structure-radio-title {
|
|
font-weight: 600;
|
|
margin-bottom: 2px;
|
|
}
|
|
.structure-radio-group label,
|
|
.structure-radio-block label {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.structure-modal-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* Renumber preview */
|
|
.structure-commander-preview {
|
|
margin: 14px 0 4px 0;
|
|
padding: 10px 12px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 8px;
|
|
background: var(--background-primary-alt, var(--background-secondary));
|
|
}
|
|
.structure-commander-preview h3 {
|
|
margin: 0 0 8px 0;
|
|
font-size: 14px;
|
|
}
|
|
.structure-preview-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
}
|
|
.structure-preview-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto 1fr;
|
|
gap: 8px;
|
|
font-family: var(--font-monospace);
|
|
font-size: 12px;
|
|
align-items: center;
|
|
}
|
|
.structure-preview-before { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
.structure-preview-arrow { color: var(--text-faint); }
|
|
.structure-preview-after { color: var(--text-normal); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
|
|
/* ========================== Боковая панель ========================== */
|
|
.structure-panel-root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.structure-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
flex: 0 0 auto;
|
|
}
|
|
.structure-panel-title {
|
|
font-weight: 700;
|
|
flex: 1 1 auto;
|
|
}
|
|
.structure-panel-level-select {
|
|
max-width: 100px;
|
|
}
|
|
.structure-panel-icon-btn {
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
.structure-panel-searchrow {
|
|
padding: 6px 8px 4px 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
}
|
|
.structure-panel-search {
|
|
width: 100%;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
background: var(--background-modifier-form-field);
|
|
color: var(--text-normal);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.structure-panel-body {
|
|
overflow: auto;
|
|
padding: 8px;
|
|
flex: 1 1 auto;
|
|
}
|
|
.structure-panel-file {
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
margin-bottom: 4px;
|
|
word-break: break-word;
|
|
}
|
|
.structure-panel-counter {
|
|
font-size: 11px;
|
|
color: var(--text-faint);
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.structure-panel-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
}
|
|
|
|
.structure-panel-item {
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
padding: 3px 8px;
|
|
line-height: 1.3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 13px;
|
|
border-left: 2px solid transparent;
|
|
}
|
|
.structure-panel-item:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
/* — уровни передаются ВИЗУАЛЬНО, без подписей H1/H2 — */
|
|
.structure-panel-level-1 {
|
|
font-weight: 700;
|
|
font-size: 14px;
|
|
color: var(--text-normal);
|
|
margin-left: 0;
|
|
}
|
|
.structure-panel-level-2 {
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
margin-left: 12px;
|
|
}
|
|
.structure-panel-level-3 {
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
margin-left: 24px;
|
|
}
|
|
.structure-panel-level-4 {
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
color: var(--text-muted);
|
|
margin-left: 36px;
|
|
}
|
|
.structure-panel-level-5 {
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
color: var(--text-muted);
|
|
margin-left: 48px;
|
|
font-size: 12px;
|
|
}
|
|
.structure-panel-level-6 {
|
|
font-weight: 400;
|
|
font-style: italic;
|
|
color: var(--text-faint);
|
|
margin-left: 60px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Подсветка активного заголовка */
|
|
.structure-panel-item-active {
|
|
background: var(--background-modifier-active-hover, var(--background-modifier-hover));
|
|
border-left-color: var(--interactive-accent);
|
|
}
|
|
|
|
.structure-panel-empty {
|
|
padding: 12px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* ========================== Toolbar над редактором ========================== */
|
|
.scmd-toolbar {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 6px;
|
|
height: auto;
|
|
min-height: 30px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
overflow-x: auto;
|
|
flex: 0 0 auto;
|
|
}
|
|
.scmd-toolbar.scmd-tb-empty .scmd-tb-btn {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
.scmd-toolbar.scmd-tb-empty .scmd-tb-btn-text {
|
|
pointer-events: auto; /* "Показать до" / "Экспорт" пусть остаются доступны */
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.scmd-tb-btn {
|
|
cursor: pointer;
|
|
padding: 2px 8px;
|
|
height: 24px;
|
|
min-width: 26px;
|
|
font-size: 13px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 5px;
|
|
background: var(--background-secondary);
|
|
color: var(--text-normal);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
white-space: nowrap;
|
|
}
|
|
.scmd-tb-btn:hover {
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
.scmd-tb-btn:active {
|
|
background: var(--background-modifier-active-hover);
|
|
}
|
|
.scmd-tb-btn-text {
|
|
font-size: 12px;
|
|
padding: 2px 10px;
|
|
}
|
|
.scmd-tb-disabled {
|
|
opacity: 0.55;
|
|
}
|
|
.scmd-tb-dd {
|
|
display: inline-flex;
|
|
}
|
|
|
|
/* ========================== Settings tab: таблица хоткеев ========================== */
|
|
.structure-settings-hotkeys table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 8px;
|
|
}
|
|
.structure-settings-hotkeys td {
|
|
padding: 4px 6px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
.structure-settings-hotkeys td:last-child {
|
|
font-family: var(--font-monospace);
|
|
color: var(--text-muted);
|
|
text-align: right;
|
|
}
|
|
|
|
/* ========================== Toolbar: spacer + кнопка скрытия ========================== */
|
|
.scmd-tb-spacer {
|
|
flex: 1 1 auto;
|
|
}
|
|
.scmd-tb-hide {
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
padding: 2px 8px;
|
|
color: var(--text-muted);
|
|
}
|
|
.scmd-tb-hide:hover {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
/* ========================== HotkeyCaptureModal ========================== */
|
|
.scmd-hk-current {
|
|
margin: 8px 0;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
}
|
|
.scmd-hk-capture {
|
|
margin: 12px 0;
|
|
padding: 14px 16px;
|
|
border: 2px dashed var(--background-modifier-border);
|
|
border-radius: 8px;
|
|
background: var(--background-secondary);
|
|
text-align: center;
|
|
font-family: var(--font-monospace);
|
|
font-size: 14px;
|
|
cursor: text;
|
|
outline: none;
|
|
user-select: none;
|
|
}
|
|
.scmd-hk-capture:focus {
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
.scmd-hk-capture.scmd-hk-captured {
|
|
border-style: solid;
|
|
border-color: var(--interactive-accent);
|
|
color: var(--text-normal);
|
|
background: var(--background-modifier-form-field);
|
|
}
|
|
|
|
/* ========================== Settings: список хоткеев команд ========================== */
|
|
.scmd-hk-section h3 {
|
|
margin-top: 0.5em;
|
|
}
|
|
.scmd-hk-section h4.scmd-hk-group {
|
|
margin: 18px 0 6px 0;
|
|
padding-bottom: 4px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
.scmd-hk-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.scmd-hk-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto auto auto;
|
|
gap: 8px;
|
|
align-items: center;
|
|
padding: 6px 0;
|
|
border-bottom: 1px solid var(--background-modifier-border-hover);
|
|
}
|
|
.scmd-hk-row-label {
|
|
font-size: 13px;
|
|
}
|
|
.scmd-hk-row-current {
|
|
font-family: var(--font-monospace);
|
|
font-size: 12px;
|
|
color: var(--text-normal);
|
|
padding: 2px 8px;
|
|
background: var(--background-secondary);
|
|
border-radius: 4px;
|
|
min-width: 140px;
|
|
text-align: center;
|
|
}
|
|
.scmd-hk-row-current.scmd-hk-row-empty {
|
|
color: var(--text-faint);
|
|
font-style: italic;
|
|
}
|
|
.scmd-hk-row-btn {
|
|
padding: 2px 10px;
|
|
font-size: 12px;
|
|
}
|
|
.scmd-hk-row-clear {
|
|
padding: 2px 8px;
|
|
font-size: 14px;
|
|
line-height: 1;
|
|
color: var(--text-muted);
|
|
}
|
|
.scmd-hk-row-clear:hover {
|
|
color: var(--text-error);
|
|
}
|