angular/adev/shared-docs/styles/docs/_table.scss
Kam c3d69aeaaa fix(docs-infra): prevent inline code wrapping in CLI reference table
Inline code elements inside table cells inherited `width: 100%` from
the global code styles, causing short codes like `s`, `dev` to stack
vertically instead of rendering on the same line. Add `min-width` to
table cells containing code to ensure proper inline layout.

(cherry picked from commit c8e23d3a9d)
2026-04-14 18:29:30 +03:00

46 lines
906 B
SCSS

// Table
@mixin docs-table {
.docs-table {
overflow-x: auto;
table {
width: 100%;
border-collapse: collapse;
margin-block: 1rem;
font-size: 0.875rem;
line-height: 160%;
letter-spacing: -0.00875rem;
}
th {
text-align: left;
padding-block: 0.4rem;
padding-inline-end: 1.5rem;
border-block: 1px solid var(--senary-contrast);
font-size: 0.75rem;
font-weight: 600;
}
tr {
td {
padding-block: 0.85rem;
vertical-align: top;
&:not(:last-child) {
padding-inline-end: 1rem;
}
}
td:first-child {
padding-inline-end: 1.62rem;
vertical-align: top;
min-width: 10ch;
}
td:has(code) {
min-width: 8ch;
}
&:not(:last-child) {
border-block-end: 1px solid var(--senary-contrast);
}
}
}
}