大量修改UI
This commit is contained in:
+360
-312
@@ -1,133 +1,187 @@
|
||||
/* messages-page.css · 对齐 public/exact/messages.html · 仅 token,scoped 在 .msg-* */
|
||||
/* 消息中心 · 对照影擎 messages。仅 scope 在 .msg-page,不改共享 .btn/.pill/.input */
|
||||
.msg-page {
|
||||
--klein: #002fa7;
|
||||
--st-muted: #6f747c;
|
||||
--st-text: #17181a;
|
||||
--st-black: #101012;
|
||||
--st-line: rgba(34, 42, 54, 0.09);
|
||||
--st-shadow: 0 8px 20px rgba(20, 27, 38, 0.09);
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
box-sizing: border-box;
|
||||
margin: -24px -28px -60px;
|
||||
padding: 52px clamp(40px, 3.2vw, 68px) 48px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
.msg-page .page-head {
|
||||
margin-bottom: 0;
|
||||
@media (max-width: 1100px) {
|
||||
.msg-page { margin: -28px -24px -48px; }
|
||||
}
|
||||
.msg-head-actions {
|
||||
|
||||
.msg-page .page-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: flex-start;
|
||||
gap: 14px;
|
||||
margin-bottom: 6px;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
.msg-page .page-head h1 { font-size: 28px; }
|
||||
.msg-page .page-head .sub { margin-top: 6px; font-size: 15px; color: var(--st-muted); }
|
||||
|
||||
.msg-back {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex: 0 0 36px;
|
||||
margin-top: 4px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(28, 34, 43, 0.12);
|
||||
background: #fff;
|
||||
color: var(--st-text);
|
||||
cursor: pointer;
|
||||
}
|
||||
.msg-back:hover { background: rgba(34, 42, 54, 0.05); }
|
||||
.msg-back:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 47, 167, 0.28); }
|
||||
.msg-back svg { width: 18px; height: 18px; display: block; }
|
||||
|
||||
.msg-head-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
|
||||
|
||||
.msg-ghost,
|
||||
.msg-primary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
gap: 9px;
|
||||
border-radius: 11px;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
}
|
||||
.msg-ghost {
|
||||
min-width: 132px;
|
||||
height: 46px;
|
||||
padding: 0 18px;
|
||||
color: var(--st-text);
|
||||
border: 1px solid rgba(28, 34, 43, 0.12);
|
||||
background: rgba(34, 42, 54, 0.05);
|
||||
}
|
||||
.msg-ghost:hover:not(:disabled) { background: rgba(34, 42, 54, 0.10); }
|
||||
.msg-ghost:disabled {
|
||||
color: rgba(28, 34, 43, 0.36);
|
||||
border-color: rgba(28, 34, 43, 0.07);
|
||||
background: rgba(34, 42, 54, 0.025);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
.msg-ghost svg, .msg-primary svg {
|
||||
display: block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
.msg-ghost-sm { min-width: 0; height: 38px; padding: 0 14px; }
|
||||
.msg-primary {
|
||||
min-width: 0;
|
||||
height: 42px;
|
||||
padding: 0 18px;
|
||||
color: #fff;
|
||||
border: 0;
|
||||
background: var(--klein);
|
||||
box-shadow: 0 9px 18px rgba(0, 47, 167, 0.18);
|
||||
}
|
||||
.msg-primary:hover { background: #002680; }
|
||||
.msg-primary.is-active,
|
||||
.msg-ghost.is-active {
|
||||
color: var(--klein);
|
||||
background: rgba(0, 47, 167, 0.09);
|
||||
border: 1px solid rgba(0, 47, 167, 0.18);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.msg-workbench {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
|
||||
/* 收件箱在面板内部滚动(.msg-list 已 overflow:auto)—— 把工作台收进视口高度,
|
||||
而不是让消息把整页撑高;减去 shell 头 + content 上下内边距 + 页头/页脚 */
|
||||
height: calc(100vh - 280px);
|
||||
min-height: 480px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
overflow: hidden;
|
||||
}
|
||||
.msg-panel {
|
||||
min-width: 0;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
grid-template-columns: 350px minmax(0, 1fr);
|
||||
height: calc(100vh - 260px);
|
||||
min-height: 620px;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--st-line);
|
||||
border-radius: 14px;
|
||||
background: rgba(34, 42, 54, 0.025);
|
||||
box-shadow: var(--st-shadow);
|
||||
}
|
||||
|
||||
.msg-inbox,
|
||||
.msg-detail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
.msg-inbox { border-right: 1px solid var(--border-faint); }
|
||||
.msg-panel-h {
|
||||
min-height: 58px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border-faint);
|
||||
background: transparent;
|
||||
.msg-inbox {
|
||||
border-right: 1px solid var(--st-line);
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
}
|
||||
.msg-panel-h .ti {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--accent-black);
|
||||
background: none;
|
||||
}
|
||||
.msg-panel-h .mono {
|
||||
margin-left: auto;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
color: var(--black-alpha-48);
|
||||
letter-spacing: .04em;
|
||||
|
||||
.msg-toolbar {
|
||||
padding: 18px;
|
||||
border-bottom: 1px solid rgba(34, 42, 54, 0.08);
|
||||
}
|
||||
.msg-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--border-faint);
|
||||
gap: 7px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.msg-filter {
|
||||
height: 30px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 10px;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--surface);
|
||||
color: var(--black-alpha-56);
|
||||
font-family: inherit;
|
||||
padding: 0 11px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
color: var(--st-muted);
|
||||
background: rgba(34, 42, 54, 0.055);
|
||||
font: inherit;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.msg-filter:hover {
|
||||
border-color: var(--black-alpha-24);
|
||||
color: var(--accent-black);
|
||||
background: var(--black-alpha-4);
|
||||
}
|
||||
.msg-filter:hover { background: rgba(34, 42, 54, 0.10); color: var(--st-text); }
|
||||
.msg-filter.active {
|
||||
border-color: var(--heat-20);
|
||||
background: var(--heat-12);
|
||||
color: var(--heat);
|
||||
font-weight: 600;
|
||||
color: #fff;
|
||||
background: var(--st-black);
|
||||
}
|
||||
.msg-filter .ct {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
letter-spacing: .02em;
|
||||
.msg-filter.is-muted {
|
||||
color: var(--st-muted);
|
||||
background: rgba(34, 42, 54, 0.03);
|
||||
}
|
||||
.msg-filter.active.is-muted {
|
||||
color: #fff;
|
||||
background: var(--st-black);
|
||||
}
|
||||
|
||||
.msg-search {
|
||||
position: relative;
|
||||
padding: 0 14px 12px;
|
||||
border-bottom: 1px solid var(--border-faint);
|
||||
}
|
||||
.msg-search svg {
|
||||
position: absolute;
|
||||
left: 26px;
|
||||
top: 10px;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
color: var(--black-alpha-48);
|
||||
pointer-events: none;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 0 13px;
|
||||
border: 1px solid rgba(34, 42, 54, 0.10);
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
color: var(--st-muted);
|
||||
}
|
||||
.msg-search input {
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
padding: 0 12px 0 32px;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--background-lighter);
|
||||
color: var(--accent-black);
|
||||
font-family: inherit;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
outline: none;
|
||||
}
|
||||
.msg-search input:focus {
|
||||
background: var(--surface);
|
||||
border-color: var(--heat-40);
|
||||
box-shadow: inset 0 0 0 1px var(--heat-40);
|
||||
color: var(--st-text);
|
||||
}
|
||||
|
||||
.msg-list {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@@ -137,239 +191,232 @@
|
||||
padding: 14px 16px 18px;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: var(--black-alpha-48);
|
||||
letter-spacing: .04em;
|
||||
color: var(--st-muted);
|
||||
}
|
||||
.msg-item {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 30px minmax(0, 1fr);
|
||||
gap: 10px;
|
||||
padding: 14px 16px;
|
||||
border: 0;
|
||||
border-bottom: 1px solid var(--border-faint);
|
||||
background: transparent;
|
||||
font-family: inherit;
|
||||
grid-template-columns: 38px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
padding: 16px 18px;
|
||||
text-align: left;
|
||||
border: 0;
|
||||
border-bottom: 1px solid rgba(34, 42, 54, 0.075);
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.msg-item:hover { background: var(--black-alpha-4); }
|
||||
.msg-item.active { background: var(--heat-12); }
|
||||
.msg-item.active::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 3px;
|
||||
background: var(--heat);
|
||||
.msg-item:hover { background: rgba(34, 42, 54, 0.04); }
|
||||
.msg-item.active {
|
||||
background: rgba(0, 47, 167, 0.07);
|
||||
box-shadow: inset 3px 0 var(--klein);
|
||||
}
|
||||
.msg-item.read .msg-item-title { color: var(--black-alpha-56); font-weight: 500; }
|
||||
.msg-type-ic {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-sm);
|
||||
background: var(--background-lighter);
|
||||
color: var(--black-alpha-72);
|
||||
}
|
||||
.msg-type-ic svg { width: 14px; height: 14px; }
|
||||
.msg-type-ic.task { background: var(--heat-12); border-color: var(--heat-20); color: var(--heat); }
|
||||
.msg-type-ic.team { background: var(--black-alpha-4); color: var(--accent-black); }
|
||||
.msg-type-ic.billing { background: var(--honey-bg); border-color: var(--honey-bd); color: var(--accent-honey); }
|
||||
.msg-type-ic.system { background: var(--black-alpha-7); color: var(--black-alpha-72); }
|
||||
/* display:block 将 span 提升为块级容器,确保 flex 子行(.msg-item-row/.msg-brief/.msg-item-foot)
|
||||
能正确换行堆叠;否则父 inline-span 与 grid 结合时文字在框内错位 */
|
||||
.msg-item-main { min-width: 0; display: block; }
|
||||
.msg-item-row {
|
||||
.msg-item-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
line-height: 0;
|
||||
border-radius: 9px;
|
||||
color: var(--klein);
|
||||
background: rgba(0, 47, 167, 0.09);
|
||||
flex: 0 0 34px;
|
||||
align-self: center;
|
||||
}
|
||||
.msg-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--heat);
|
||||
.msg-item-icon svg {
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.msg-item.read .msg-dot { display: none; }
|
||||
.msg-item-title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
.msg-item-icon.billing { color: #8a6a12; background: rgba(236, 183, 48, 0.14); }
|
||||
.msg-item-icon.system { color: #4c5360; background: rgba(34, 42, 54, 0.08); }
|
||||
.msg-item-icon.team { color: #138d3f; background: rgba(22, 184, 78, 0.10); }
|
||||
.msg-item strong {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--st-text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--accent-black);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.msg-time {
|
||||
flex-shrink: 0;
|
||||
color: var(--black-alpha-48);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
letter-spacing: .02em;
|
||||
.msg-item .msg-time {
|
||||
display: block;
|
||||
color: var(--st-muted);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
align-self: start;
|
||||
padding-top: 2px;
|
||||
}
|
||||
.msg-brief {
|
||||
margin-top: 4px;
|
||||
color: var(--black-alpha-56);
|
||||
.msg-item.read strong { color: var(--st-muted); font-weight: 500; }
|
||||
.msg-item p {
|
||||
margin: 5px 0 0;
|
||||
color: var(--st-muted);
|
||||
font-size: 12px;
|
||||
line-height: 1.55;
|
||||
/* 最多两行后省略:display:-webkit-box 建立块级盒受父 grid 列 min-width:0 约束;
|
||||
overflow-wrap + word-break 保证连续长字符串在列内折行而不溢出框;
|
||||
换行第二行与 .msg-item-main 左边界对齐 */
|
||||
line-height: 1.5;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
overflow-wrap: break-word;
|
||||
word-break: break-word;
|
||||
}
|
||||
.msg-item-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.msg-priority {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
height: 20px;
|
||||
padding: 0 7px;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-sm);
|
||||
background: var(--background-lighter);
|
||||
color: var(--black-alpha-56);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
letter-spacing: .02em;
|
||||
}
|
||||
/* 列表底部标签行:项目名过长时胶囊内单行省略——胶囊定高 20px,若放任文字换行
|
||||
第二行会溢出到胶囊框外(文字与框错位);inline-block + ellipsis 把长名收在框内 */
|
||||
.msg-item-foot .msg-priority {
|
||||
display: inline-block;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
line-height: 18px; /* 20px 高 - 上下 1px 边框,单行文字垂直居中 */
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
/* 优先级标签(更新/成功…)内容短且固定,不许被长项目名挤压到文字竖排 */
|
||||
.msg-item-foot .msg-priority:first-child { flex-shrink: 0; }
|
||||
.msg-priority.ok { background: var(--forest-bg); border-color: var(--forest-bd); color: var(--accent-forest); }
|
||||
.msg-priority.warn { background: var(--honey-bg); border-color: var(--honey-bd); color: var(--accent-honey); }
|
||||
.msg-priority.err { background: var(--crimson-bg); border-color: var(--crimson-bd); color: var(--accent-crimson); }
|
||||
.msg-priority.info { background: var(--heat-12); border-color: var(--heat-20); color: var(--heat); }
|
||||
|
||||
.msg-empty {
|
||||
min-height: 320px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
justify-items: center;
|
||||
gap: 8px;
|
||||
padding: 24px;
|
||||
color: var(--black-alpha-48);
|
||||
color: var(--st-muted);
|
||||
font-size: 13px;
|
||||
text-align: center;
|
||||
}
|
||||
.msg-empty svg { width: 24px; height: 24px; color: var(--black-alpha-40); }
|
||||
.msg-detail-empty {
|
||||
flex: 1;
|
||||
min-height: 520px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
gap: 8px;
|
||||
color: var(--black-alpha-48);
|
||||
text-align: center;
|
||||
.msg-empty svg { display: block; width: 24px; height: 24px; }
|
||||
.msg-empty .msg-ghost { margin-top: 6px; }
|
||||
.msg-mute-note {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
padding: 10px 18px;
|
||||
border-bottom: 1px solid rgba(34, 42, 54, 0.06);
|
||||
color: var(--st-muted);
|
||||
font-size: 12px;
|
||||
background: rgba(34, 42, 54, 0.03);
|
||||
}
|
||||
.msg-detail-empty .ic {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
.msg-mute-note .msg-ghost { flex: 0 0 auto; height: 30px; padding: 0 12px; }
|
||||
.msg-detail-empty-inner .msg-ghost { margin-top: 4px; }
|
||||
|
||||
@keyframes msg-skel {
|
||||
0% { background-position: -240px 0; }
|
||||
100% { background-position: 240px 0; }
|
||||
}
|
||||
.msg-skel-bar,
|
||||
.msg-skel-ico,
|
||||
.msg-skel-time,
|
||||
.msg-skel-more span {
|
||||
display: block;
|
||||
border-radius: 8px;
|
||||
background-color: rgba(34, 42, 54, 0.06);
|
||||
background-image: linear-gradient(90deg, transparent, rgba(34, 42, 54, 0.08), transparent);
|
||||
background-size: 240px 100%;
|
||||
background-repeat: no-repeat;
|
||||
animation: msg-skel 1.2s ease-in-out infinite;
|
||||
}
|
||||
.msg-skel-row {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--background-lighter);
|
||||
grid-template-columns: 38px minmax(0, 1fr) 36px;
|
||||
align-items: center;
|
||||
gap: 11px;
|
||||
padding: 16px 18px;
|
||||
border-bottom: 1px solid rgba(34, 42, 54, 0.06);
|
||||
}
|
||||
.msg-skel-ico { width: 34px; height: 34px; border-radius: 9px; }
|
||||
.msg-skel-copy { display: grid; gap: 8px; min-width: 0; }
|
||||
.msg-skel-bar { height: 12px; width: 72%; }
|
||||
.msg-skel-bar-sm { height: 10px; width: 88%; opacity: .85; }
|
||||
.msg-skel-row:nth-child(odd) .msg-skel-bar { width: 64%; }
|
||||
.msg-skel-row:nth-child(odd) .msg-skel-bar-sm { width: 76%; }
|
||||
.msg-skel-row:nth-child(3n) .msg-skel-bar { width: 80%; }
|
||||
.msg-skel-time { width: 28px; height: 10px; justify-self: end; }
|
||||
.msg-skel-more {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
min-height: 16px;
|
||||
}
|
||||
.msg-skel-more span { width: 6px; height: 6px; border-radius: 999px; }
|
||||
.msg-skel-more span:nth-child(2) { animation-delay: .15s; }
|
||||
.msg-skel-more span:nth-child(3) { animation-delay: .3s; }
|
||||
|
||||
.msg-detail-skel { flex: 1; min-height: 0; padding: 28px; }
|
||||
.msg-skel-title { height: 22px; width: 46%; margin-bottom: 14px; }
|
||||
.msg-skel-lead { height: 12px; width: 88%; margin-bottom: 10px; }
|
||||
.msg-skel-lead-2 { width: 62%; margin-bottom: 24px; }
|
||||
.msg-skel-summary {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
background: rgba(34, 42, 54, 0.04);
|
||||
}
|
||||
.msg-skel-kv {
|
||||
display: grid;
|
||||
grid-template-columns: 88px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
}
|
||||
.msg-skel-k { height: 11px; width: 52px; }
|
||||
.msg-skel-v { height: 12px; width: 42%; }
|
||||
.msg-skel-kv:nth-child(even) .msg-skel-v { width: 58%; }
|
||||
.msg-skel-kv:nth-child(3n) .msg-skel-v { width: 34%; }
|
||||
|
||||
.msg-detail {
|
||||
padding: 0;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
}
|
||||
.msg-detail-empty svg { width: 21px; height: 21px; }
|
||||
.msg-detail-body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 22px 24px 24px;
|
||||
padding: 28px;
|
||||
}
|
||||
.msg-detail-top {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
padding-bottom: 18px;
|
||||
border-bottom: 1px solid var(--border-faint);
|
||||
}
|
||||
.msg-detail-title {
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
.msg-detail-title h2 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
line-height: 1.35;
|
||||
.msg-detail h2 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 22px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -.012em;
|
||||
color: var(--accent-black);
|
||||
overflow-wrap: break-word;
|
||||
color: var(--st-text);
|
||||
line-height: 1.35;
|
||||
}
|
||||
.msg-detail-title .meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
color: var(--black-alpha-48);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
letter-spacing: .04em;
|
||||
}
|
||||
.msg-body-text {
|
||||
margin: 18px 0 0;
|
||||
color: var(--accent-black);
|
||||
.msg-detail-body > p {
|
||||
margin: 0 0 24px;
|
||||
color: var(--st-muted);
|
||||
font-size: 14px;
|
||||
line-height: 1.75;
|
||||
overflow-wrap: break-word;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.msg-props {
|
||||
.msg-summary {
|
||||
display: grid;
|
||||
grid-template-columns: 110px 1fr;
|
||||
gap: 10px 16px;
|
||||
margin-top: 18px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--background-lighter);
|
||||
grid-template-columns: 120px minmax(0, 1fr);
|
||||
gap: 14px 20px;
|
||||
padding: 20px;
|
||||
border-radius: 12px;
|
||||
background: rgba(34, 42, 54, 0.05);
|
||||
}
|
||||
.msg-props .k {
|
||||
color: var(--black-alpha-48);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
letter-spacing: .04em;
|
||||
}
|
||||
.msg-props .v {
|
||||
.msg-summary span { color: var(--st-muted); font-size: 13px; }
|
||||
.msg-summary strong {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: var(--st-text);
|
||||
min-width: 0;
|
||||
color: var(--accent-black);
|
||||
font-size: 13px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
.msg-props .v a { color: var(--heat); }
|
||||
.msg-related {
|
||||
justify-self: start;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: var(--klein);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
.msg-related:hover { color: #002680; }
|
||||
|
||||
.msg-timeline {
|
||||
margin-top: 18px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
border-radius: 12px;
|
||||
background: rgba(34, 42, 54, 0.04);
|
||||
}
|
||||
.msg-timeline-h {
|
||||
margin-bottom: 12px;
|
||||
color: var(--accent-black);
|
||||
color: var(--st-text);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -378,71 +425,72 @@
|
||||
grid-template-columns: 68px 1fr;
|
||||
gap: 12px;
|
||||
padding: 10px 0;
|
||||
border-top: 1px solid var(--border-faint);
|
||||
border-top: 1px solid rgba(34, 42, 54, 0.07);
|
||||
}
|
||||
.msg-step:first-of-type { border-top: 0; padding-top: 0; }
|
||||
.msg-step .t {
|
||||
color: var(--black-alpha-48);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
letter-spacing: .02em;
|
||||
}
|
||||
.msg-step .d {
|
||||
color: var(--black-alpha-72);
|
||||
font-size: 12.5px;
|
||||
line-height: 1.55;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
.msg-step .t { color: var(--st-muted); font-size: 12px; }
|
||||
.msg-step .d { color: var(--st-text); font-size: 13px; line-height: 1.55; }
|
||||
|
||||
.msg-log {
|
||||
margin-top: 14px;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border-faint);
|
||||
border-radius: var(--r-md);
|
||||
background: var(--accent-black);
|
||||
color: var(--accent-white);
|
||||
border-radius: 12px;
|
||||
background: var(--st-black);
|
||||
color: #fff;
|
||||
font-family: var(--font-mono);
|
||||
font-size: 11px;
|
||||
line-height: 1.7;
|
||||
letter-spacing: .02em;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/* 查看日志:后端缺 log 字段时的占位(壳照出、内容留白,不造假) */
|
||||
.msg-log-empty {
|
||||
color: var(--accent-white);
|
||||
opacity: .48;
|
||||
}
|
||||
.msg-log-empty { opacity: .48; }
|
||||
|
||||
.msg-detail-f {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 14px 16px;
|
||||
border-top: 1px solid var(--border-faint);
|
||||
background: var(--background-lighter);
|
||||
padding: 14px 20px;
|
||||
border-top: 1px solid rgba(34, 42, 54, 0.08);
|
||||
background: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
.msg-detail-f .spacer { flex: 1; }
|
||||
/* 「查看日志」展开中的高亮(单橙锚点,alpha 表达态,不换 hue) */
|
||||
.msg-detail-f .btn.is-active {
|
||||
border-color: var(--heat-20);
|
||||
background: var(--heat-12);
|
||||
color: var(--heat);
|
||||
|
||||
.msg-detail-empty {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
color: var(--st-muted);
|
||||
text-align: center;
|
||||
}
|
||||
/* 底栏带图标的 ghost 动作(静音同类)图标与文字间距 */
|
||||
.msg-detail-f .btn svg { margin-right: 6px; }
|
||||
.msg-foot-note {
|
||||
.msg-detail-empty-inner {
|
||||
display: grid;
|
||||
justify-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.msg-detail-empty .ic {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--black-alpha-48);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10.5px;
|
||||
letter-spacing: .04em;
|
||||
justify-content: center;
|
||||
line-height: 0;
|
||||
border-radius: 12px;
|
||||
background: rgba(34, 42, 54, 0.07);
|
||||
}
|
||||
.msg-foot-note a { color: var(--heat); cursor: pointer; }
|
||||
@media (max-width: 1280px) {
|
||||
.msg-workbench { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
|
||||
.msg-detail-empty .ic svg {
|
||||
display: block;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.msg-skel-bar,
|
||||
.msg-skel-ico,
|
||||
.msg-skel-time,
|
||||
.msg-skel-more span { animation: none; }
|
||||
}
|
||||
@media (max-width: 860px) {
|
||||
.msg-workbench { grid-template-columns: 1fr; }
|
||||
.msg-inbox { border-right: 0; border-bottom: 1px solid var(--border-faint); }
|
||||
.msg-workbench { grid-template-columns: 1fr; height: auto; }
|
||||
.msg-inbox { border-right: 0; border-bottom: 1px solid var(--st-line); }
|
||||
.msg-list { max-height: 360px; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user