Mark your name on the line
Six classes change how a credited name is marked. The markup stays the same.
The code for what is on screen
import { creditHTML } from '@nodsto/credit';
import '@nodsto/credit/credit.css';
import '@nodsto/templates/inline-marks/inline-marks.css';
const html = creditHTML(record, { className: 'nods-as-marker' });Add one class to the credit.
The credit stays one line in somebody else’s footer, at the size and weight of the text around it. A line style changes the mark on your name and nothing else.
Choose one of the six marks.
A mark is still at rest. It answers a pointer, the keyboard, and its card for as long as the card is open.
- Designed by Marigold
nods-as-markerA stroke of highlighter under the name, which fills.
- Designed by Marigold
nods-as-codeThe name as an element, in the page’s monospace, with a caret.
- Designed by Marigold
nods-as-discA small record before the name, which turns.
- Designed by Marigold
nods-as-dimensionThe name between two strokes, on a line struck from the middle.
- Designed by Marigold
nods-as-swatchesThe palette as the rule under the name.
- Designed by Marigold
nods-as-waveA wave under the name, which runs.
Set the colour a mark is drawn in.
site.css
footer .nods {
--nods-mark: #ffd84a;
--nods-disc-label: #e8401c;
--nods-palette: linear-gradient(90deg, #1f2a44 0 20%, #c8553d 0 40%, #e9dcc3 0 60%, #7a8f6a 0 80%, #f2b84b 0);
}| Token | Read by | What it sets |
|---|---|---|
--nods-mark | nods-as-marker | The highlighter’s colour. |
--nods-mono | nods-as-code | The monospace the code style sets the name in. |
--nods-code-ink | nods-as-code | The colour of the brackets around the name. |
--nods-disc-label | nods-as-disc | The colour of the record’s label. |
--nods-palette | nods-as-swatches | The palette, as a gradient with hard stops. |
The palette is one token because a gradient with hard stops is what the rule under the name is drawn with.
Next, open a card from the credit.