This commit is contained in:
398
www/style.css
398
www/style.css
@@ -26,6 +26,8 @@ body {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
min-height: 100vh;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* —— MiR 3-column navigation (rail + flyout + content) —— */
|
||||
@@ -200,6 +202,8 @@ body {
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
box-shadow: -2px 0 12px rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
@@ -1002,7 +1006,18 @@ canvas {
|
||||
}
|
||||
.content.content--dashboard {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
max-width: 1100px;
|
||||
max-width: none;
|
||||
align-items: stretch;
|
||||
align-content: stretch;
|
||||
padding: 16px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.content.content--dashboard > #pageOverview {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
.content.content--config {
|
||||
grid-template-columns: var(--leftPaneW, 460px) 10px 1fr;
|
||||
@@ -1339,8 +1354,384 @@ canvas {
|
||||
.missionConfigGrid { display: grid; gap: 12px; }
|
||||
.missionConfigGrid .rowWide { grid-template-columns: 1fr; gap: 6px; }
|
||||
|
||||
.dashboardPage { display: grid; gap: 16px; min-width: 0; width: 100%; }
|
||||
.dashboardToolbar { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.dashboardShell {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
box-shadow: var(--shadow);
|
||||
overflow: hidden;
|
||||
}
|
||||
.dashboardContent {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
padding: 20px 24px 24px;
|
||||
}
|
||||
.dashboardListView,
|
||||
.dashboardCreateView,
|
||||
.dashboardDesignerView {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.dashboardListView[hidden],
|
||||
.dashboardCreateView[hidden],
|
||||
.dashboardDesignerView[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
.dashboardListHeader {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.dashboardListTitle {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.dashboardListSub {
|
||||
margin: 6px 0 0;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.dashboardListHelp {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--border);
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: var(--muted);
|
||||
}
|
||||
.dashboardListHeaderActions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
||||
.dashboardCreateBtn { font-weight: 700; }
|
||||
|
||||
.dashboardCreateHeader {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 20px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.dashboardCreateTitle {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
color: var(--text);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.dashboardCreateSub {
|
||||
margin: 6px 0 0;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.dashboardCreateBackBtn { white-space: nowrap; }
|
||||
.dashboardCreateForm {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-self: stretch;
|
||||
}
|
||||
.dashboardCreatePanel {
|
||||
border: 1px solid #c8d4e0;
|
||||
background: #fff;
|
||||
padding: 20px 24px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
}
|
||||
.dashboardCreateField {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
.dashboardCreateField label {
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.06em;
|
||||
color: #334155;
|
||||
}
|
||||
.dashboardCreateField input {
|
||||
width: 100%;
|
||||
padding: 9px 12px;
|
||||
border: 1px solid #c8d4e0;
|
||||
border-radius: 4px;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
background: #fff;
|
||||
box-sizing: border-box;
|
||||
color: #64748b;
|
||||
}
|
||||
.dashboardCreateField input:focus {
|
||||
outline: none;
|
||||
border-color: #64748b;
|
||||
color: #0f172a;
|
||||
}
|
||||
.dashboardCreateActions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.dashboardMirBtn {
|
||||
border-radius: 6px;
|
||||
padding: 8px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
border: 1px solid #c8d4e0;
|
||||
background: #f8fafc;
|
||||
color: #334155;
|
||||
}
|
||||
.dashboardMirBtn:hover {
|
||||
background: #f1f5f9;
|
||||
border-color: #94a3b8;
|
||||
}
|
||||
.dashboardCreateSubmitBtn,
|
||||
.dashboardPermissionsApplyBtn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-weight: 700;
|
||||
background: #22a06b !important;
|
||||
border-color: #1a8f5c !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
.dashboardCreateSubmitBtn:hover,
|
||||
.dashboardPermissionsApplyBtn:hover {
|
||||
background: #1a8f5c !important;
|
||||
border-color: #178052 !important;
|
||||
}
|
||||
.dashboardCreateSubmitIcon {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
}
|
||||
.dashboardCreateCancelBtn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.dashboardCreateCancelIcon { font-size: 13px; line-height: 1; }
|
||||
|
||||
.dashboardPermissionsDialog .missionDialogBody { display: grid; gap: 14px; }
|
||||
.dashboardPermissionsIntro {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
line-height: 1.45;
|
||||
}
|
||||
.dashboardPermissionsList {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 10px;
|
||||
}
|
||||
.dashboardPermissionsList label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #0f172a;
|
||||
cursor: pointer;
|
||||
width: auto;
|
||||
}
|
||||
.dashboardPermissionsList input[type="checkbox"] {
|
||||
width: 16px !important;
|
||||
height: 16px;
|
||||
min-width: 16px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
flex: 0 0 auto;
|
||||
border-radius: 3px;
|
||||
accent-color: #2563eb;
|
||||
}
|
||||
|
||||
.dashboardListBar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.dashboardFilter { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; }
|
||||
.dashboardFilterLabel { font-size: 13px; color: var(--muted); white-space: nowrap; }
|
||||
.dashboardFilterInput {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
max-width: none;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
font: inherit;
|
||||
background: #fff;
|
||||
}
|
||||
.dashboardListCount { font-size: 13px; color: var(--muted); white-space: nowrap; }
|
||||
.dashboardPagination { display: flex; align-items: center; gap: 4px; margin-left: auto; }
|
||||
.dashboardPageLabel { font-size: 13px; color: var(--muted); padding: 0 8px; white-space: nowrap; }
|
||||
.dashboardPageBtn:disabled { opacity: 0.35; cursor: not-allowed; }
|
||||
.dashboardTableWrap {
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
align-self: stretch;
|
||||
overflow: visible;
|
||||
border: 1px solid #c8d4e0;
|
||||
border-radius: 0;
|
||||
background: #fff;
|
||||
}
|
||||
.dashboardTable {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
font-size: 14px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
.dashboardTable thead {
|
||||
background: #eef2f6;
|
||||
}
|
||||
.dashboardTable th,
|
||||
.dashboardTable td {
|
||||
padding: 0 16px;
|
||||
height: 52px;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
border-bottom: 1px solid #d8e0e8;
|
||||
border-right: 1px solid #d8e0e8;
|
||||
}
|
||||
.dashboardTable th:last-child,
|
||||
.dashboardTable td:last-child { border-right: none; }
|
||||
.dashboardTable th {
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
color: #334155;
|
||||
}
|
||||
.dashboardTableStatusCol { width: 56px; text-align: center; padding: 0 8px; }
|
||||
.dashboardTable th.dashboardTableStatusCol { width: 56px; }
|
||||
.dashboardTableNameCell { width: auto; font-weight: 600; color: #0f172a; }
|
||||
.dashboardTableCreatedCell { width: 24%; color: #334155; }
|
||||
.dashboardTableFuncCol { width: 168px; }
|
||||
.dashboardTable tbody tr:last-child td { border-bottom: none; }
|
||||
.dashboardTable tbody tr:hover:not(.dashboardTableEmptyRow) { background: #f8fafc; }
|
||||
.dashboardTableRow.is-default .dashboardTableNameCell,
|
||||
.dashboardTableRow.is-default .dashboardTableCreatedCell { color: #94a3b8; }
|
||||
.dashboardTableRow.is-active .dashboardTableNameCell { color: #0f172a; }
|
||||
.dashboardTableEmptyRow td {
|
||||
height: 120px;
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
.dashboardActiveMark {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 999px;
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
background: #22a06b;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
.dashboardActiveMark--placeholder {
|
||||
visibility: hidden;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
.dashboardFuncBtns { display: flex; gap: 8px; align-items: center; justify-content: flex-start; }
|
||||
.dashboardFuncBtn {
|
||||
appearance: none;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border: 1px solid #c8d4e0;
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
cursor: pointer;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
}
|
||||
.dashboardFuncBtn:hover:not(:disabled) { border-color: #94a3b8; background: #f8fafc; }
|
||||
.dashboardFuncBtn:disabled { opacity: 0.28; cursor: not-allowed; }
|
||||
.dashboardFuncIcon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
display: block;
|
||||
background: currentColor;
|
||||
color: #64748b;
|
||||
}
|
||||
.dashboardFuncBtn:hover:not(:disabled) .dashboardFuncIcon { color: #334155; }
|
||||
.dashboardFuncIcon--design {
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3c-1.5 2.4-3.6 4.5-6 6 1.5 1.5 3.6 3.6 6 6 1.5-2.4 3.6-4.5 6-6-2.4-1.5-4.5-3.6-6-6zm0 3.8c.9 1.1 2 2.2 3.2 3.2-1.2 1-2.3 2.1-3.2 3.2-.9-1.1-2-2.2-3.2-3.2 1.2-1 2.3-2.1 3.2-3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3c-1.5 2.4-3.6 4.5-6 6 1.5 1.5 3.6 3.6 6 6 1.5-2.4 3.6-4.5 6-6-2.4-1.5-4.5-3.6-6-6zm0 3.8c.9 1.1 2 2.2 3.2 3.2-1.2 1-2.3 2.1-3.2 3.2-.9-1.1-2-2.2-3.2-3.2 1.2-1 2.3-2.1 3.2-3.2z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
}
|
||||
.dashboardFuncIcon--edit {
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 17.5V20h2.5L17 9.5 14.5 7 4 17.5zm14.7-9.8a1 1 0 0 0 0-1.4l-1.8-1.8a1 1 0 0 0-1.4 0l-1.3 1.3 3.2 3.2 1.3-1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 17.5V20h2.5L17 9.5 14.5 7 4 17.5zm14.7-9.8a1 1 0 0 0 0-1.4l-1.8-1.8a1 1 0 0 0-1.4 0l-1.3 1.3 3.2 3.2 1.3-1.3z'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
}
|
||||
.dashboardFuncIcon--delete {
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 6l12 12M18 6L6 18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
}
|
||||
.dashboardTableWrap.is-empty .dashboardTable thead { display: none; }
|
||||
.dashboardDesignerHeader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.dashboardDesignerTitle { margin: 0; font-size: 18px; font-weight: 800; }
|
||||
.dashboardDesignerBody {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
.dashboardDesignerEmpty { text-align: center; padding: 24px 0; }
|
||||
.dashboardPage { display: grid; gap: 0; min-width: 0; width: 100%; }
|
||||
.dashboardMain { min-width: 0; }
|
||||
.dashboardGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
||||
@@ -1441,7 +1832,6 @@ canvas {
|
||||
}
|
||||
.dashboardCancelBtn:hover:not(:disabled) { background: #fee2e2; }
|
||||
.dashboardCancelBtn:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
.dashboardInfoCard .dashboardInfoGrid { display: grid; gap: 8px; }
|
||||
.dashboardEmpty { text-align: center; padding: 12px 0 0; }
|
||||
|
||||
@media (max-width: 1100px) {
|
||||
|
||||
Reference in New Issue
Block a user