summaryrefslogtreecommitdiffstats
path: root/tpl/views/badge.pug
blob: e1aa9e2646910135de7edd9952e7cb316758e7db (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
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(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(--colors--blue-static--${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'