CSS was not being imported! Fixed: ✅ Added 'import ../styles/global.css' to BaseLayout.astro ✅ Rewrote CSS with plain CSS (not @apply which wasn't working) ✅ Cookie banner has inline styles as backup ✅ Font size: 16px base ✅ Solid colors: green-600 (#16a34a), gray-900 (#111827) ✅ Footer has policy links Build: 12 pages ✅
48 lines
990 B
TypeScript
48 lines
990 B
TypeScript
import type {Point as UnistPoint} from 'unist'
|
|
|
|
export {location} from './lib/index.js'
|
|
|
|
/**
|
|
* Accessors for index.
|
|
*/
|
|
export interface Location {
|
|
/**
|
|
* Get the `offset` from a line/column based `Point` in the bound indices;
|
|
* returns `undefined` when given out of bounds input.
|
|
*
|
|
* @param point
|
|
* Line/column based `Point`.
|
|
* @returns
|
|
* Offset.
|
|
*/
|
|
toOffset(point?: PointLike | null | undefined): number | undefined
|
|
/**
|
|
* Get the line/column based `Point` for `offset` in the bound indices;
|
|
* returns `undefined` when given out of bounds input.
|
|
*
|
|
* @param offset
|
|
* Offset.
|
|
* @returns
|
|
* `Point`.
|
|
*/
|
|
toPoint(offset?: number | null | undefined): UnistPoint | undefined
|
|
}
|
|
|
|
/**
|
|
* Point from `unist`, allowed as input.
|
|
*/
|
|
interface PointLike {
|
|
/**
|
|
* Column.
|
|
*/
|
|
column?: number | null | undefined
|
|
/**
|
|
* Line.
|
|
*/
|
|
line?: number | null | undefined
|
|
/**
|
|
* Offset.
|
|
*/
|
|
offset?: number | null | undefined
|
|
}
|