blob: 90fdabe7c8387457f288a066741233e0d9ccdb98 (
plain) (
blame)
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
61
62
63
64
65
66
67
68
69
|
mixin view-badge
+view('badge', 'Badge')
.c-box
+badge(size='sm' href='#')= '50'
= ' '
+badge(href='#')= '100'
= ' '
+badge(size='lg' href='#')= '200'
= ' '
+badge(size='xl' href='#')= '300'
.c-box
+badge(pill=true size='sm' href='#')= '50'
= ' '
+badge(pill=true href='#')= '100'
= ' '
+badge(pill=true size='lg' href='#')= '200'
= ' '
+badge(pill=true size='xl' href='#')= '300'
.c-box
+badge(icon='image' size='sm' href='#')= '50'
= ' '
+badge(icon='image' href='#')= '100'
= ' '
+badge(icon='image' size='lg' href='#')= '200'
= ' '
+badge(icon='image' size='xl' href='#')= '300'
.c-box
+badge(pill=true icon='image' size='sm' href='#')= '50'
= ' '
+badge(pill=true icon='image' href='#')= '100'
= ' '
+badge(pill=true icon='image' size='lg' href='#')= '200'
= ' '
+badge(pill=true icon='image' size='xl' href='#')= '300'
.c-box
+badge(href='#')= '100'
= ' '
+badge(quiet=true href='#')= '100'
= ' '
+badge(pill=true href='#')= '100'
= ' '
+badge(quiet=true pill=true href='#')= '100'
each theme in ['accent', 'positive', 'negative', 'warning']
.c-box
+badge(theme)(href='#')= 'new'
= ' '
+badge(theme)(quiet=true href='#')= 'new'
= ' '
+badge(theme)(pill=true href='#')= 'new'
= ' '
+badge(theme)(quiet=true pill=true href='#')= 'new'
each theme in ['static-black', 'static-white']
-
const bg = theme.startsWith('static-black') ? 500 : 1000;
.c-box(style=`background-color: var(--static-colors--blue--${bg});`)
+badge(theme)(href='#')= 'new'
= ' '
+badge(theme)(quiet=true href='#')= 'new'
= ' '
+badge(theme)(pill=true href='#')= 'new'
= ' '
+badge(theme)(quiet=true pill=true href='#')= 'new'
|