mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(docs-infra): keep footer headings on a single line
The "Community translations" column heading wrapped to two lines while
the other footer headings stayed on one. Add a `white-space: nowrap`
rule on the footer headings, scoped to the wide (4-column) layout. The
breakpoint is driven by a shared `$columns-breakpoint` variable so the
nowrap rule and the grid's 2-column collapse stay in sync.
(cherry picked from commit af14ce16cf)
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
@use '@angular/docs/styles/media-queries' as mq;
|
||||
|
||||
$columns-breakpoint: 600px;
|
||||
|
||||
.adev-footer-columns {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 2rem;
|
||||
|
||||
@container footer (max-width: 600px) {
|
||||
@container footer (max-width: #{$columns-breakpoint}) {
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
}
|
||||
}
|
||||
@@ -33,6 +35,10 @@
|
||||
font-weight: 600;
|
||||
margin-block-end: 1.75rem;
|
||||
letter-spacing: -0.00875rem;
|
||||
|
||||
@container footer (min-width: #{$columns-breakpoint + 1px}) {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
|
||||
Reference in New Issue
Block a user