示例工程 53-code-signing-notarization
53-code-signing-notarization/app/src/styles/app.css
.app {
min-height: 100vh;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
height: 60px;
padding: 0 20px;
border-bottom: 1px solid var(--border);
background: linear-gradient(180deg, #ffffff, #f8fafc);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
}
.logo {
display: grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 9px;
background: #0f172a;
color: #ffffff;
font-size: 13px;
font-weight: 700;
}
.brand h1 {
margin: 0;
font-size: 15px;
}
.header-side {
display: flex;
align-items: center;
gap: 7px;
}
.pill {
padding: 2px 8px;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--muted);
font-size: 10px;
}
.ok-pill {
border-color: #86efac;
background: #f0fdf4;
color: #166534;
}
.bad-pill {
border-color: #fecaca;
background: #fef2f2;
color: #991b1b;
}
.warn-pill {
border-color: #fcd34d;
background: #fffbeb;
color: #92400e;
}
.banner {
margin: 12px 20px 0;
padding: 8px 11px;
border: 1px solid #fcd34d;
border-radius: 8px;
background: #fffbeb;
color: #92400e;
font-size: 11px;
}
.layout {
display: grid;
grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
gap: 12px;
padding: 12px 20px 20px;
}
.column {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
}
.card-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
margin-bottom: 7px;
}
.card h2 {
margin: 0;
font-size: 12.5px;
}
.small {
font-size: 10.5px;
}
.btn {
height: 28px;
padding: 0 9px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--surface);
color: var(--text);
font-size: 10.5px;
}
.btn:hover {
border-color: var(--primary);
}
.actions {
display: flex;
align-items: center;
gap: 4px;
}
.plan-head {
display: flex;
flex-direction: column;
gap: 3px;
margin-bottom: 6px;
}
.plan-head b {
font-size: 12px;
}
.steps,
.limits,
.tools,
.env,
.checks,
.activity {
margin: 0;
padding: 0;
list-style: none;
}
.step-row {
display: grid;
grid-template-columns: 20px minmax(0, 1fr);
gap: 7px;
padding: 6px 0;
border-bottom: 1px solid var(--border);
}
.step-row:last-child {
border-bottom: none;
}
.step-no {
display: grid;
place-items: center;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--primary);
color: #ffffff;
font-family: var(--font-mono);
font-size: 8.5px;
}
.step-main {
min-width: 0;
}
.step-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
}
.step-head b {
font-size: 10px;
}
.step-command {
display: block;
margin: 3px 0;
padding: 5px 6px;
border: 1px solid var(--border);
border-radius: 6px;
background: #0f172a;
color: #e2e8f0;
font-size: 8.2px;
line-height: 1.5;
overflow-wrap: anywhere;
}
.step-note {
margin: 0;
line-height: 1.55;
}
.sub-head {
margin: 8px 0 3px;
color: var(--muted);
font-size: 9.2px;
font-weight: 600;
}
.limits li {
padding: 3px 0 3px 10px;
border-left: 2px solid #fcd34d;
margin-left: 2px;
font-size: 9.2px;
color: var(--muted);
}
.tag {
padding: 1px 6px;
border-radius: 999px;
background: var(--panel);
color: var(--muted);
font-size: 8.8px;
font-weight: 600;
white-space: nowrap;
text-align: center;
}
.tag.ok {
background: #dcfce7;
color: #166534;
}
.tag.bad {
background: #fee2e2;
color: #991b1b;
}
.tag.warn {
background: #fef3c7;
color: #92400e;
}
.tool-row,
.env-row {
display: grid;
grid-template-columns: 52px minmax(0, 1fr);
gap: 6px;
align-items: center;
padding: 3px 0;
border-bottom: 1px solid var(--border);
font-size: 9.2px;
}
.tool-row:last-child,
.env-row:last-child {
border-bottom: none;
}
.env-row {
grid-template-columns: 44px minmax(0, 1fr);
}
.env-note {
margin: 7px 0 0;
line-height: 1.55;
}
.check-row {
display: grid;
grid-template-columns: 38px minmax(0, 1fr) 96px;
align-items: center;
gap: 6px;
padding: 4px 0;
border-bottom: 1px solid var(--border);
font-size: 9.8px;
}
.check-row:last-child {
border-bottom: none;
}
.check-row code {
color: var(--muted);
font-size: 8.5px;
text-align: right;
overflow-wrap: anywhere;
}
.matrix {
width: 100%;
border-collapse: collapse;
font-size: 9.2px;
}
.matrix th,
.matrix td {
padding: 4px 5px;
border-bottom: 1px solid var(--border);
text-align: left;
vertical-align: top;
}
.matrix th {
color: var(--muted);
font-size: 8.8px;
font-weight: 600;
}
.activity {
max-height: 110px;
overflow: auto;
}
.event-row {
display: grid;
grid-template-columns: 56px 62px minmax(0, 1fr);
gap: 6px;
padding: 3px 0;
border-bottom: 1px solid var(--border);
font-size: 9.5px;
}
.event-row:last-child {
border-bottom: none;
}
.event-row .kind {
color: var(--primary);
}
body[data-shot="macos"] .plan-card {
border-color: #bfdbfe;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
body[data-shot="notarize"] .step-row[data-step="notarize"] {
background: #fffbeb;
outline: 2px solid #fcd34d;
outline-offset: -2px;
border-radius: 6px;
}
body[data-shot="matrix"] .readiness-card {
border-color: #86efac;
box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.08);
}
@media (max-width: 820px) {
.layout {
grid-template-columns: 1fr;
}
}