添加 hallmark 技能
This commit is contained in:
13
skills/hallmark/references/components/s2-hanging.md
Normal file
13
skills/hallmark/references/components/s2-hanging.md
Normal file
@@ -0,0 +1,13 @@
|
||||
### S2 · Hanging
|
||||
Heading floats above the section in negative space; no border, no rule.
|
||||
*Use when:* the content has a quiet, room-to-breathe energy.
|
||||
*Don't confuse with:* S3 Sticky-pinned (which moves with scroll).
|
||||
|
||||
```html
|
||||
<header class="head-hang">
|
||||
<h2>…</h2>
|
||||
</header>
|
||||
```
|
||||
```css
|
||||
.head-hang { padding-block: var(--space-3xl) var(--space-xl); }
|
||||
```
|
||||
Reference in New Issue
Block a user