summaryrefslogtreecommitdiffstats
path: root/tpl/views/divider.pug
blob: ee7b372109a4b4851e7cb32c30675760da15d7cc (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
mixin view-divider 
    +view('divider', 'Divider')
        .c-box
            +div-heading('lg')= 'Heading'
            +divider('strong')
            p= loremIpsum

        .c-box
            +div-heading('sm')= 'Heading'
            +divider('medium')
            p= loremIpsum

        .c-box
            +div-heading('xs')= 'Heading'
            +divider('faint')
            p= loremIpsum

        .c-box
            +divider('strong')= 'Strong'
            +divider('medium')= 'Medium'
            +divider('faint')= 'Faint'
            +divider('strong')
            +divider('medium')
            +divider('faint')

        each theme in ['blue', 'purple', 'red', 'green', 'yellow']
            .c-box
                +divider('strong')(color=theme)= 'Strong'
                +divider('medium')(color=theme)= 'Medium'
                +divider('faint')(color=theme)= 'Faint'
                +divider('strong')(color=theme)
                +divider('medium')(color=theme)
                +divider('faint')(color=theme)

        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});`)
                +divider('strong')(color=theme)= 'Strong'
                +divider('medium')(color=theme)= 'Medium'
                +divider('faint')(color=theme)= 'Faint'
                +divider('strong')(color=theme)
                +divider('medium')(color=theme)
                +divider('faint')(color=theme)