- useSeoLabels(): the L8 dictionary (en, pl) of the page's content locale (resolve locale, then html_lang, then en), overridable and extendable in app.config.ts under seo.labels; no i18n dependency - seo-tokens.css (spacing, colour, small type, breadcrumb separator) and seo-base.css (.seo-visually-hidden, the focus ring of layer links), loaded before the app's CSS and styling only .seo-* classes
29 lines
996 B
CSS
29 lines
996 B
CSS
/* SEO layer base styles. Only .seo-* classes, never a bare element or
|
|
another layer's classes; values come from seo-tokens.css, and the app's
|
|
own CSS (loaded after the layers') wins. The breadcrumb, pagination and
|
|
HTML sitemap rules land with their components. */
|
|
|
|
/* Visually hidden, still read by screen readers (the new-tab hint inside
|
|
external links, labels of icon-only controls). */
|
|
.seo-visually-hidden {
|
|
position: absolute !important;
|
|
width: 1px !important;
|
|
height: 1px !important;
|
|
padding: 0 !important;
|
|
margin: -1px !important;
|
|
overflow: hidden !important;
|
|
clip: rect(0, 0, 0, 0) !important;
|
|
clip-path: inset(50%) !important;
|
|
white-space: nowrap !important;
|
|
border: 0 !important;
|
|
}
|
|
|
|
/* The focus ring of every layer link: 2px in the accent colour. */
|
|
.seo-breadcrumbs a:focus-visible,
|
|
.seo-pagination a:focus-visible,
|
|
.seo-sitemap a:focus-visible,
|
|
.seo-sitemap-link:focus-visible {
|
|
outline: 2px solid var(--seo-color-accent);
|
|
outline-offset: 2px;
|
|
}
|