A purchase info badge is a badge with a beak that introduces a short purchase tip.
How to add it to a page. The file is components/css/badge.css.
Link the shared file once per page. Never copy the rules.
| Step | What to do |
|---|---|
| 1. Link | <link rel="stylesheet" href="/components/css/badge.css">. Both templates already have it. |
| 2. Build | A badge-purchase with a __tag (label + beak) and a __text. |
| 3. Choose | Good buy is the default. Add badge-purchase--know for Good to know. |
| Class | Use |
|---|---|
badge-purchase | The wrapper: badge and text, centered, 8px gap. Good buy (red). |
badge-purchase--know | Good to know (grey). |
badge-purchase__tag | Label and beak together. |
badge-purchase__label | The label. Text in sentence case; the CSS makes it upper case. |
badge-purchase__beak | The beak. Empty element. |
badge-purchase__text | The explanation. Links inside are underlined. |
--badge-purchase-bg on the wrapper.The component is one CSS file, shared by every page. Link it, never copy it.