blob: 72c3ea77981ea813f0c6a0c739fe246e666aee39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
extends ../_layout/_docs-layout.pug
block variables
- var slug = 'chips'
- var parent = 'components'
- var title = 'Chips - Components - Spectre.css CSS Framework'
- var description = 'Chips are complex entities in small blocks. Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development.'
block docs-content
+docs-heading('chips', 'Chips')
include ../_layout/_ad-g.pug
p Chips are complex entities in small blocks.
.docs-demo.columns
.column.col-12
span.chip
| Crime
span.chip
| Drama
span.chip
| Biography
a.btn.btn-clear(href="#" aria-label="Close" role="button")
span.chip
| Mystery
a.btn.btn-clear(href="#" aria-label="Close" role="button")
.column.col-12
.chip
figure.avatar.avatar-sm(data-initial="TS" style="background-color: #5755d9;")
| Tony Stark
.chip
img.avatar.avatar-sm(src="../img/avatar-1.png" alt="Thor Odinson")
| Thor Odinson
.chip
img.avatar.avatar-sm(src="../img/avatar-4.png" alt="Steve Rogers")
| Steve Rogers
p
| Add a container element with the #[code chip] class.
| And add child text element, buttons or avatars with the #[code avatar] class.
pre.code(data-lang='HTML')
code
:highlight(lang="html")
<span class="chip">Crime</span>
<span class="chip">
Biography
<a href="#" class="btn btn-clear" aria-label="Close" role="button"></a>
</span>
<div class="chip">
<img src="img/avatar-1.png" class="avatar avatar-sm">
Yan Zhu
<a href="#" class="btn btn-clear" aria-label="Close" role="button"></a>
</div>
include ../_layout/_ad-c.pug
include ../_layout/_footer.pug
|