style(admin-web): refresh publish article modal to flat neutral palette
Swap the gradient hero, rounded shadows, and blue-tinted accents for a neutral card system (gray-50/100 surfaces, indigo eyebrow chip, blue-500 selection ring), tighten checkmark sizing with a fade-in transition, and normalise list/tag spacing so the modal reads consistently with the rest of admin-web. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -608,73 +608,79 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
.publish-modal {
|
.publish-modal {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 20px;
|
gap: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__hero {
|
.publish-modal__hero {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) auto;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
gap: 16px;
|
gap: 24px;
|
||||||
padding: 18px 20px;
|
padding: 24px;
|
||||||
border: 1px solid #dce6f4;
|
border: 1px solid #e5e7eb;
|
||||||
border-radius: 16px;
|
border-radius: 12px;
|
||||||
background:
|
background: #ffffff;
|
||||||
radial-gradient(circle at top right, rgba(30, 64, 175, 0.08), transparent 32%),
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 4px 8px -2px rgba(0, 0, 0, 0.02);
|
||||||
linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__eyebrow {
|
.publish-modal__eyebrow {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 12px;
|
||||||
|
padding: 4px 10px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
color: #1d4ed8;
|
color: #4f46e5;
|
||||||
letter-spacing: 0.08em;
|
background: #e0e7ff;
|
||||||
|
border-radius: 6px;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__hero h3 {
|
.publish-modal__hero h3 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #0f172a;
|
color: #111827;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
line-height: 1.45;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__hero p {
|
.publish-modal__hero p {
|
||||||
margin: 10px 0 0;
|
margin: 8px 0 0;
|
||||||
color: #526072;
|
color: #6b7280;
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
line-height: 1.7;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__hero-metrics {
|
.publish-modal__hero-metrics {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, minmax(88px, 1fr));
|
grid-template-columns: repeat(3, minmax(96px, 1fr));
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
min-width: 300px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__metric {
|
.publish-modal__metric {
|
||||||
padding: 14px 16px;
|
padding: 16px;
|
||||||
border-radius: 14px;
|
border-radius: 8px;
|
||||||
background: rgba(255, 255, 255, 0.92);
|
background: #f9fafb;
|
||||||
border: 1px solid #e5edf8;
|
border: 1px solid #f3f4f6;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__metric strong {
|
.publish-modal__metric strong {
|
||||||
display: block;
|
display: block;
|
||||||
color: #0f172a;
|
color: #111827;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__metric span {
|
.publish-modal__metric span {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: 8px;
|
margin-top: 6px;
|
||||||
color: #64748b;
|
color: #6b7280;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__section {
|
.publish-modal__section {
|
||||||
@@ -694,9 +700,9 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
|
|
||||||
.publish-modal__section-header h3 {
|
.publish-modal__section-header h3 {
|
||||||
margin: 0 0 6px;
|
margin: 0 0 6px;
|
||||||
color: #0f172a;
|
color: #1f2937;
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__section-header--inline h3 {
|
.publish-modal__section-header--inline h3 {
|
||||||
@@ -704,25 +710,25 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.required-star {
|
.required-star {
|
||||||
color: #ff4d4f;
|
color: #ef4444;
|
||||||
margin-right: 4px;
|
margin-right: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.muted {
|
.muted {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #64748b;
|
color: #6b7280;
|
||||||
font-size: 13px;
|
font-size: 14px;
|
||||||
line-height: 1.7;
|
line-height: 1.6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__loading {
|
.publish-modal__loading {
|
||||||
padding: 8px 0;
|
padding: 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__list {
|
.publish-modal__list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 8px;
|
gap: 10px;
|
||||||
max-height: 380px;
|
max-height: 380px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
@@ -733,7 +739,7 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
width: 6px;
|
width: 6px;
|
||||||
}
|
}
|
||||||
.publish-modal__list::-webkit-scrollbar-thumb {
|
.publish-modal__list::-webkit-scrollbar-thumb {
|
||||||
background: #cbd5e1;
|
background: #d1d5db;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -742,8 +748,8 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 12px 16px;
|
padding: 14px 16px;
|
||||||
border: 1px solid #e2e8f0;
|
border: 1px solid #e5e7eb;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -752,25 +758,26 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__list-item:hover:not(.publish-modal__list-item--disabled) {
|
.publish-modal__list-item:hover:not(.publish-modal__list-item--disabled) {
|
||||||
border-color: #94a3b8;
|
border-color: #d1d5db;
|
||||||
background: #f8fafc;
|
background: #f9fafb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__list-item--active {
|
.publish-modal__list-item--active {
|
||||||
border-color: #355dff;
|
border-color: #3b82f6;
|
||||||
background: #f0f4ff;
|
background: #eff6ff;
|
||||||
|
box-shadow: 0 0 0 1px #3b82f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__list-item--disabled {
|
.publish-modal__list-item--disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
opacity: 0.65;
|
opacity: 0.6;
|
||||||
background: #f8fafc;
|
background: #f9fafb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__identity {
|
.publish-modal__identity {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 14px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
@@ -785,40 +792,48 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
.publish-modal__check {
|
.publish-modal__check {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
border: 1px solid #c7d4e5;
|
border: 1px solid #d1d5db;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
transition: all 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__list-item--active .publish-modal__check {
|
.publish-modal__list-item--active .publish-modal__check {
|
||||||
background: #355dff;
|
background: #3b82f6;
|
||||||
border-color: #355dff;
|
border-color: #3b82f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__check-inner {
|
.publish-modal__check-inner {
|
||||||
width: 7px;
|
width: 6px;
|
||||||
height: 7px;
|
height: 10px;
|
||||||
border-right: 2px solid #fff;
|
border-right: 2px solid #fff;
|
||||||
border-bottom: 2px solid #fff;
|
border-bottom: 2px solid #fff;
|
||||||
transform: rotate(45deg) translate(-1px, -1px);
|
transform: rotate(45deg) translate(-1px, -2px);
|
||||||
|
opacity: 0;
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.publish-modal__list-item--active .publish-modal__check-inner {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__avatar {
|
.publish-modal__avatar {
|
||||||
width: 36px;
|
width: 38px;
|
||||||
height: 36px;
|
height: 38px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__avatar img {
|
.publish-modal__avatar img {
|
||||||
@@ -834,16 +849,16 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__identity-copy strong {
|
.publish-modal__identity-copy strong {
|
||||||
color: #0f172a;
|
color: #111827;
|
||||||
font-size: 14px;
|
font-size: 15px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.3;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__identity-copy span {
|
.publish-modal__identity-copy span {
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
color: #64748b;
|
color: #6b7280;
|
||||||
font-size: 12px;
|
font-size: 13px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
}
|
}
|
||||||
@@ -862,27 +877,32 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__state-pill--immediate {
|
.publish-modal__state-pill--immediate {
|
||||||
background: #edfdf2;
|
background: #ecfdf5;
|
||||||
color: #15803d;
|
color: #059669;
|
||||||
border: 1px solid #bbf7d0;
|
border: 1px solid #a7f3d0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__state-pill--queued {
|
.publish-modal__state-pill--queued {
|
||||||
background: #fff7e6;
|
background: #fffbeb;
|
||||||
color: #b45309;
|
color: #d97706;
|
||||||
border: 1px solid #fef08a;
|
border: 1px solid #fde68a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__state-pill--unavailable {
|
.publish-modal__state-pill--unavailable {
|
||||||
background: #fff1f2;
|
background: #fef2f2;
|
||||||
color: #be123c;
|
color: #dc2626;
|
||||||
border: 1px solid #fecdd3;
|
border: 1px solid #fecaca;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__tags {
|
.publish-modal__tags {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 8px;
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.publish-modal__tags .ant-tag {
|
||||||
|
margin: 0;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__cover-body {
|
.publish-modal__cover-body {
|
||||||
@@ -903,23 +923,21 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 124px;
|
min-height: 124px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 1px dashed #d3dceb;
|
border: 1px dashed #d1d5db;
|
||||||
border-radius: 20px;
|
border-radius: 8px;
|
||||||
background:
|
background: #f9fafb;
|
||||||
radial-gradient(circle at top, rgba(70, 102, 255, 0.08), transparent 45%),
|
color: #6b7280;
|
||||||
#fbfcff;
|
|
||||||
color: #687588;
|
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__cover-preview:hover {
|
.publish-modal__cover-preview:hover {
|
||||||
border-color: #90a7ff;
|
border-color: #6366f1;
|
||||||
box-shadow: 0 14px 34px rgba(67, 87, 255, 0.12);
|
color: #6366f1;
|
||||||
transform: translateY(-1px);
|
background: #f5f3ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__cover-preview img {
|
.publish-modal__cover-preview img {
|
||||||
@@ -930,7 +948,7 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__cover-plus {
|
.publish-modal__cover-plus {
|
||||||
font-size: 24px;
|
font-size: 20px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -942,16 +960,17 @@ function normalizePlatformUid(value?: string | null): string {
|
|||||||
height: 28px;
|
height: 28px;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background: rgba(20, 30, 50, 0.68);
|
background: rgba(17, 24, 39, 0.7);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
transition: background 0.2s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.publish-modal__cover-remove:hover {
|
.publish-modal__cover-remove:hover {
|
||||||
background: rgba(20, 30, 50, 0.82);
|
background: rgba(17, 24, 39, 0.9);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
|
|||||||
Reference in New Issue
Block a user