124 lines
2.5 KiB
SCSS
124 lines
2.5 KiB
SCSS
// The platform's look: Material 3 from the brand seeds (olive primary, teal tertiary),
|
|
// Roboto for text and Rajdhani for headings, served from the app (internal network).
|
|
@use '@angular/material' as mat;
|
|
@use './theme-colors' as brand;
|
|
|
|
:root {
|
|
--color-primary: #a8c243;
|
|
--color-text: #081839;
|
|
--color-text-secondary: #7a7a7a;
|
|
--color-background: #f7f8f6;
|
|
--color-surface: #ffffff;
|
|
--color-border: #e3e7df;
|
|
--color-action: #5f9ea0;
|
|
--color-action-hover: #f1f6f6;
|
|
--font-body: 'Roboto', sans-serif;
|
|
--font-heading: 'Rajdhani', 'Roboto Condensed', sans-serif;
|
|
--header-height: 72px;
|
|
--space-1: 4px;
|
|
--space-2: 8px;
|
|
--space-3: 12px;
|
|
--space-4: 16px;
|
|
--space-6: 24px;
|
|
--space-7: 32px;
|
|
--radius: 4px;
|
|
}
|
|
|
|
html {
|
|
height: 100%;
|
|
@include mat.theme(
|
|
(
|
|
color: (
|
|
primary: brand.$primary-palette,
|
|
tertiary: brand.$tertiary-palette,
|
|
theme-type: light,
|
|
),
|
|
typography: Roboto,
|
|
density: 0,
|
|
)
|
|
);
|
|
// Indicator pages use small corners, as today.
|
|
--mat-sys-corner-extra-small: 2px;
|
|
--mat-sys-corner-small: 2px;
|
|
--mat-sys-corner-medium: 4px;
|
|
--mat-sys-corner-large: 4px;
|
|
--mat-sys-corner-extra-large: 6px;
|
|
}
|
|
|
|
body {
|
|
color-scheme: light;
|
|
background: var(--color-background);
|
|
color: var(--color-text);
|
|
font-family: var(--font-body);
|
|
margin: 0;
|
|
min-height: 100%;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
font-family: var(--font-body);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.page {
|
|
box-sizing: border-box;
|
|
margin: 0 auto;
|
|
max-width: 1440px;
|
|
padding: var(--space-6) clamp(16px, 3.2vw, 48px) var(--space-7);
|
|
width: 100%;
|
|
}
|
|
|
|
.page h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 500;
|
|
margin: 0 0 var(--space-1);
|
|
}
|
|
|
|
.page .subtitle {
|
|
color: var(--color-text-secondary);
|
|
margin: 0 0 var(--space-4);
|
|
}
|
|
|
|
.muted {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.card {
|
|
background: var(--color-surface);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
box-sizing: border-box;
|
|
padding: var(--space-4);
|
|
}
|
|
|
|
table.plain {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 14px;
|
|
}
|
|
|
|
table.plain th,
|
|
table.plain td {
|
|
border-bottom: 1px solid var(--color-border);
|
|
padding: 6px 8px;
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
table.plain th {
|
|
color: var(--color-text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
// Cards are white on the light background, as today (no M3 surface tint).
|
|
html {
|
|
--mat-card-outlined-container-color: var(--color-surface);
|
|
--mat-card-elevated-container-color: var(--color-surface);
|
|
--mat-card-outlined-outline-color: var(--color-border);
|
|
}
|
|
|
|
.nowrap {
|
|
white-space: nowrap;
|
|
}
|