Spaces:
Runtime error
Runtime error
File size: 1,917 Bytes
46252cd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /* =============================================
PageHeader Component - Shared Styles
Consistent header styling for all pages
============================================= */
/* Grid so the three regions can re-order responsively: on desktop the title and actions share
the top row with the subtitle beneath; on mobile the subtitle follows the title directly and
the actions drop to the bottom (description should follow the title, not the call-to-action). */
.page-header {
display: grid;
grid-template-columns: 1fr auto;
grid-template-areas:
'title actions'
'subtitle subtitle';
align-items: center;
column-gap: 1rem;
margin-bottom: 1.5rem;
width: 100%;
}
.page-header__title-group {
grid-area: title;
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.page-header__title-group h1 {
margin: 0;
/* h1 styles inherited from global */
}
.page-header__badge {
display: inline-flex;
}
.page-header__actions {
grid-area: actions;
justify-self: end;
display: flex;
align-items: center;
gap: 0.75rem;
}
.page-header__subtitle {
grid-area: subtitle;
margin: 0;
margin-top: 0.5rem; /* Consistent 8px gap from title row */
font-size: 0.9375rem;
color: var(--text-muted);
line-height: 1.5;
}
/* Mobile Responsive: stack as title -> subtitle -> actions */
@media (max-width: 768px) {
.page-header {
grid-template-columns: 1fr;
grid-template-areas:
'title'
'subtitle'
'actions';
column-gap: 0;
}
.page-header__title-group h1 {
font-size: 1.5rem;
}
.page-header__actions {
justify-self: stretch;
margin-top: 0.25rem;
}
.page-header__subtitle {
font-size: 0.875rem;
}
}
@media (max-width: 480px) {
.page-header__actions > button,
.page-header__actions > .btn-primary,
.page-header__actions > .btn-secondary {
width: 100%;
justify-content: center;
}
}
|