diff options
Diffstat (limited to 'tpl/views')
-rw-r--r-- | tpl/views/action-button.pug | 109 | ||||
-rw-r--r-- | tpl/views/badge.pug | 69 | ||||
-rw-r--r-- | tpl/views/button.pug | 231 | ||||
-rw-r--r-- | tpl/views/card.pug | 70 | ||||
-rw-r--r-- | tpl/views/dialog.pug | 4 | ||||
-rw-r--r-- | tpl/views/divider.pug | 23 | ||||
-rw-r--r-- | tpl/views/emoji.pug | 8 | ||||
-rw-r--r-- | tpl/views/form.pug | 2 | ||||
-rw-r--r-- | tpl/views/menu.pug | 2 | ||||
-rw-r--r-- | tpl/views/popover.pug | 2 | ||||
-rw-r--r-- | tpl/views/text-field.pug | 6 |
11 files changed, 275 insertions, 251 deletions
diff --git a/tpl/views/action-button.pug b/tpl/views/action-button.pug deleted file mode 100644 index 8fbf9ea..0000000 --- a/tpl/views/action-button.pug +++ /dev/null | |||
@@ -1,109 +0,0 @@ | |||
1 | mixin view-action-button | ||
2 | +view('action-button', 'Action button') | ||
3 | .c-box | ||
4 | +action-button(size='sm')= 'Idle' | ||
5 | = ' ' | ||
6 | +action-button= 'Idle' | ||
7 | = ' ' | ||
8 | +action-button(size='lg')= 'Idle' | ||
9 | = ' ' | ||
10 | +action-button(size='xl')= 'Idle' | ||
11 | |||
12 | .c-box | ||
13 | +action-button(icon='trash' size='sm') | ||
14 | = ' ' | ||
15 | +action-button(icon='trash') | ||
16 | = ' ' | ||
17 | +action-button(icon='trash' size='lg') | ||
18 | = ' ' | ||
19 | +action-button(icon='trash' size='xl') | ||
20 | |||
21 | .c-box | ||
22 | +action-button(pill=true size='sm')= 'Idle' | ||
23 | = ' ' | ||
24 | +action-button(pill=true)= 'Idle' | ||
25 | = ' ' | ||
26 | +action-button(pill=true size='lg')= 'Idle' | ||
27 | = ' ' | ||
28 | +action-button(pill=true size='xl')= 'Idle' | ||
29 | |||
30 | .c-box | ||
31 | +action-button(pill=true icon='trash' size='sm') | ||
32 | = ' ' | ||
33 | +action-button(pill=true icon='trash') | ||
34 | = ' ' | ||
35 | +action-button(pill=true icon='trash' size='lg') | ||
36 | = ' ' | ||
37 | +action-button(pill=true icon='trash' size='xl') | ||
38 | |||
39 | .c-box | ||
40 | +action-button= 'Label' | ||
41 | = ' ' | ||
42 | +action-button(icon='trash')= 'Label' | ||
43 | = ' ' | ||
44 | +action-button(icon='trash') | ||
45 | |||
46 | .c-box | ||
47 | +action-button(quiet=true)= 'Label' | ||
48 | = ' ' | ||
49 | +action-button(quiet=true icon='trash')= 'Label' | ||
50 | = ' ' | ||
51 | +action-button(quiet=true icon='trash') | ||
52 | |||
53 | .c-box | ||
54 | +action-button= 'Idle' | ||
55 | = ' ' | ||
56 | +action-button(selected=true)= 'Selected' | ||
57 | = ' ' | ||
58 | +action-button(disabled=true)= 'Disabled' | ||
59 | = ' ' | ||
60 | +action-button(selected=true disabled=true)= 'Selected + disabled' | ||
61 | |||
62 | .c-box | ||
63 | +action-button(quiet=true )= 'Idle' | ||
64 | = ' ' | ||
65 | +action-button(quiet=true selected=true)= 'Selected' | ||
66 | = ' ' | ||
67 | +action-button(quiet=true disabled=true)= 'Disabled' | ||
68 | = ' ' | ||
69 | +action-button(quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
70 | |||
71 | .c-box | ||
72 | +action-button(pill=true)= 'Idle' | ||
73 | = ' ' | ||
74 | +action-button(pill=true selected=true)= 'Selected' | ||
75 | = ' ' | ||
76 | +action-button(pill=true disabled=true)= 'Disabled' | ||
77 | = ' ' | ||
78 | +action-button(pill=true selected=true disabled=true)= 'Selected + disabled' | ||
79 | |||
80 | .c-box | ||
81 | +action-button(pill=true quiet=true)= 'Idle' | ||
82 | = ' ' | ||
83 | +action-button(pill=true quiet=true selected=true)= 'Selected' | ||
84 | = ' ' | ||
85 | +action-button(pill=true quiet=true disabled=true)= 'Disabled' | ||
86 | = ' ' | ||
87 | +action-button(pill=true quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
88 | |||
89 | each theme in ['static-black', 'static-white'] | ||
90 | - | ||
91 | const bg = theme.startsWith('static-black') ? 500 : 1000; | ||
92 | |||
93 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | ||
94 | +action-button(theme=theme)= 'Idle' | ||
95 | = ' ' | ||
96 | +action-button(theme=theme selected=true)= 'Selected' | ||
97 | = ' ' | ||
98 | +action-button(theme=theme disabled=true)= 'Disabled' | ||
99 | = ' ' | ||
100 | +action-button(theme=theme selected=true disabled=true)= 'Selected + disabled' | ||
101 | |||
102 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | ||
103 | +action-button(theme=theme quiet=true)= 'Idle' | ||
104 | = ' ' | ||
105 | +action-button(theme=theme quiet=true selected=true)= 'Selected' | ||
106 | = ' ' | ||
107 | +action-button(theme=theme quiet=true disabled=true)= 'Disabled' | ||
108 | = ' ' | ||
109 | +action-button(theme=theme quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
diff --git a/tpl/views/badge.pug b/tpl/views/badge.pug deleted file mode 100644 index cc1f346..0000000 --- a/tpl/views/badge.pug +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | mixin view-badge | ||
2 | +view('badge', 'Badge') | ||
3 | .c-box | ||
4 | +badge(size='sm' href='#')= '50' | ||
5 | = ' ' | ||
6 | +badge(href='#')= '100' | ||
7 | = ' ' | ||
8 | +badge(size='lg' href='#')= '200' | ||
9 | = ' ' | ||
10 | +badge(size='xl' href='#')= '300' | ||
11 | |||
12 | .c-box | ||
13 | +badge(pill=true size='sm' href='#')= '50' | ||
14 | = ' ' | ||
15 | +badge(pill=true href='#')= '100' | ||
16 | = ' ' | ||
17 | +badge(pill=true size='lg' href='#')= '200' | ||
18 | = ' ' | ||
19 | +badge(pill=true size='xl' href='#')= '300' | ||
20 | |||
21 | .c-box | ||
22 | +badge(icon='image' size='sm' href='#')= '50' | ||
23 | = ' ' | ||
24 | +badge(icon='image' href='#')= '100' | ||
25 | = ' ' | ||
26 | +badge(icon='image' size='lg' href='#')= '200' | ||
27 | = ' ' | ||
28 | +badge(icon='image' size='xl' href='#')= '300' | ||
29 | |||
30 | .c-box | ||
31 | +badge(pill=true icon='image' size='sm' href='#')= '50' | ||
32 | = ' ' | ||
33 | +badge(pill=true icon='image' href='#')= '100' | ||
34 | = ' ' | ||
35 | +badge(pill=true icon='image' size='lg' href='#')= '200' | ||
36 | = ' ' | ||
37 | +badge(pill=true icon='image' size='xl' href='#')= '300' | ||
38 | |||
39 | .c-box | ||
40 | +badge(href='#')= '100' | ||
41 | = ' ' | ||
42 | +badge(quiet=true href='#')= '100' | ||
43 | = ' ' | ||
44 | +badge(pill=true href='#')= '100' | ||
45 | = ' ' | ||
46 | +badge(quiet=true pill=true href='#')= '100' | ||
47 | |||
48 | each theme in ['accent', 'positive', 'negative', 'warning'] | ||
49 | .c-box | ||
50 | +badge(theme)(href='#')= 'new' | ||
51 | = ' ' | ||
52 | +badge(theme)(quiet=true href='#')= 'new' | ||
53 | = ' ' | ||
54 | +badge(theme)(pill=true href='#')= 'new' | ||
55 | = ' ' | ||
56 | +badge(theme)(quiet=true pill=true href='#')= 'new' | ||
57 | |||
58 | each theme in ['static-black', 'static-white'] | ||
59 | - | ||
60 | const bg = theme.startsWith('static-black') ? 500 : 1000; | ||
61 | |||
62 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | ||
63 | +badge(theme)(href='#')= 'new' | ||
64 | = ' ' | ||
65 | +badge(theme)(quiet=true href='#')= 'new' | ||
66 | = ' ' | ||
67 | +badge(theme)(pill=true href='#')= 'new' | ||
68 | = ' ' | ||
69 | +badge(theme)(quiet=true pill=true href='#')= 'new' | ||
diff --git a/tpl/views/button.pug b/tpl/views/button.pug index edd8ef6..4b8c59f 100644 --- a/tpl/views/button.pug +++ b/tpl/views/button.pug | |||
@@ -1,85 +1,206 @@ | |||
1 | mixin view-button | 1 | mixin view-button |
2 | +view('button', 'Button') | 2 | +view('button', 'Button') |
3 | .c-box | 3 | .c-box |
4 | +a-button(size='sm')= 'Button' | 4 | +button(size='sm')= 'Idle' |
5 | = ' ' | 5 | = ' ' |
6 | +a-button= 'Button' | 6 | +button= 'Idle' |
7 | = ' ' | 7 | = ' ' |
8 | +a-button(size='lg')= 'Button' | 8 | +button(size='lg')= 'Idle' |
9 | = ' ' | 9 | = ' ' |
10 | +a-button(size='xl')= 'Button' | 10 | +button(size='xl')= 'Idle' |
11 | br | ||
12 | br | ||
13 | +button(icon='trash' size='sm') | ||
14 | = ' ' | ||
15 | +button(icon='trash') | ||
16 | = ' ' | ||
17 | +button(icon='trash' size='lg') | ||
18 | = ' ' | ||
19 | +button(icon='trash' size='xl') | ||
20 | br | ||
21 | br | ||
22 | +button(icon='user' size='sm')= 'Idle' | ||
23 | = ' ' | ||
24 | +button(icon='user')= 'Idle' | ||
25 | = ' ' | ||
26 | +button(icon='user' size='lg')= 'Idle' | ||
27 | = ' ' | ||
28 | +button(icon='user' size='xl')= 'Idle' | ||
11 | 29 | ||
12 | .c-box | 30 | .c-box |
13 | +a-button(size='sm' outline=true)= 'Button' | 31 | +button(pill=true size='sm')= 'Idle' |
32 | = ' ' | ||
33 | +button(pill=true)= 'Idle' | ||
34 | = ' ' | ||
35 | +button(pill=true size='lg')= 'Idle' | ||
36 | = ' ' | ||
37 | +button(pill=true size='xl')= 'Idle' | ||
38 | br | ||
39 | br | ||
40 | +button(pill=true icon='trash' size='sm') | ||
41 | = ' ' | ||
42 | +button(pill=true icon='trash') | ||
14 | = ' ' | 43 | = ' ' |
15 | +a-button(outline=true)= 'Button' | 44 | +button(pill=true icon='trash' size='lg') |
16 | = ' ' | 45 | = ' ' |
17 | +a-button(size='lg' outline=true)= 'Button' | 46 | +button(pill=true icon='trash' size='xl') |
47 | br | ||
48 | br | ||
49 | +button(pill=true icon='user' size='sm')= 'Idle' | ||
50 | = ' ' | ||
51 | +button(pill=true icon='user')= 'Idle' | ||
52 | = ' ' | ||
53 | +button(pill=true icon='user' size='lg')= 'Idle' | ||
18 | = ' ' | 54 | = ' ' |
19 | +a-button(size='xl' outline=true)= 'Button' | 55 | +button(pill=true icon='user' size='xl')= 'Idle' |
20 | 56 | ||
21 | .c-box | 57 | .c-box |
22 | +a-button(postIcon='arrow-right' size='sm')= 'Button' | 58 | +button= 'Label' |
23 | = ' ' | 59 | = ' ' |
24 | +a-button(postIcon='arrow-right')= 'Button' | 60 | +button(icon='trash')= 'Label' |
25 | = ' ' | 61 | = ' ' |
26 | +a-button(postIcon='arrow-right' size='lg')= 'Button' | 62 | +button(icon='trash') |
63 | br | ||
64 | br | ||
65 | +button(quiet=true)= 'Label' | ||
27 | = ' ' | 66 | = ' ' |
28 | +a-button(postIcon='arrow-right' size='xl')= 'Button' | 67 | +button(quiet=true icon='trash')= 'Label' |
68 | = ' ' | ||
69 | +button(quiet=true icon='trash') | ||
29 | 70 | ||
30 | .c-box | 71 | .c-box |
31 | .l-button-group | 72 | +button= 'Idle' |
32 | +a-button= 'Button' | 73 | = ' ' |
33 | +a-button(disabled=true)= 'Button' | 74 | +button(highlighted=true)= 'Highlighted' |
34 | +a-button(outline=true)= 'Button' | 75 | = ' ' |
35 | +a-button(outline=true disabled=true)= 'Button' | 76 | +button(selected=true)= 'Selected' |
77 | = ' ' | ||
78 | +button(disabled=true)= 'Disabled' | ||
79 | = ' ' | ||
80 | +button(selected=true disabled=true)= 'Selected + disabled' | ||
81 | br | ||
36 | br | 82 | br |
37 | .l-button-group | 83 | +button(badge=true)= 'Idle' |
38 | +a-button(icon='trash') | 84 | = ' ' |
39 | +a-button(disabled=true icon='trash') | 85 | +button(badge=true highlighted=true)= 'Highlighted' |
40 | +a-button(outline=true icon='trash') | 86 | = ' ' |
41 | +a-button(outline=true disabled=true icon='trash') | 87 | +button(badge=true selected=true)= 'Selected' |
88 | = ' ' | ||
89 | +button(badge=true disabled=true)= 'Disabled' | ||
90 | = ' ' | ||
91 | +button(badge=true selected=true disabled=true)= 'Selected + disabled' | ||
92 | br | ||
93 | br | ||
94 | +button(quiet=true)= 'Idle' | ||
95 | = ' ' | ||
96 | +button(quiet=true highlighted=true)= 'Highlighted' | ||
97 | = ' ' | ||
98 | +button(quiet=true selected=true)= 'Selected' | ||
99 | = ' ' | ||
100 | +button(quiet=true disabled=true)= 'Disabled' | ||
101 | = ' ' | ||
102 | +button(quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
42 | 103 | ||
43 | each theme in ['primary', 'accent', 'negative'] | 104 | .c-box |
105 | +button(pill=true)= 'Idle' | ||
106 | = ' ' | ||
107 | +button(pill=true highlighted=true)= 'Highlighted' | ||
108 | = ' ' | ||
109 | +button(pill=true selected=true)= 'Selected' | ||
110 | = ' ' | ||
111 | +button(pill=true disabled=true)= 'Disabled' | ||
112 | = ' ' | ||
113 | +button(pill=true selected=true disabled=true)= 'Selected + disabled' | ||
114 | br | ||
115 | br | ||
116 | +button(pill=true badge=true)= 'Idle' | ||
117 | = ' ' | ||
118 | +button(pill=true badge=true highlighted=true)= 'Highlighted' | ||
119 | = ' ' | ||
120 | +button(pill=true badge=true selected=true)= 'Selected' | ||
121 | = ' ' | ||
122 | +button(pill=true badge=true disabled=true)= 'Disabled' | ||
123 | = ' ' | ||
124 | +button(pill=true badge=true selected=true disabled=true)= 'Selected + disabled' | ||
125 | br | ||
126 | br | ||
127 | +button(pill=true quiet=true)= 'Idle' | ||
128 | = ' ' | ||
129 | +button(pill=true quiet=true highlighted=true)= 'Highlighted' | ||
130 | = ' ' | ||
131 | +button(pill=true quiet=true selected=true)= 'Selected' | ||
132 | = ' ' | ||
133 | +button(pill=true quiet=true disabled=true)= 'Disabled' | ||
134 | = ' ' | ||
135 | +button(pill=true quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
136 | |||
137 | each theme, i in ['accent', 'positive', 'negative', 'warning'] | ||
44 | .c-box | 138 | .c-box |
45 | .l-button-group | 139 | +button(theme=theme)= 'Idle' |
46 | +a-button(variant=theme)= 'Button' | 140 | = ' ' |
47 | +a-button(variant=theme disabled=true)= 'Button' | 141 | +button(theme=theme highlighted=true)= 'Highlighted' |
48 | +a-button(variant=theme outline=true)= 'Button' | 142 | = ' ' |
49 | +a-button(variant=theme outline=true disabled=true)= 'Button' | 143 | +button(theme=theme selected=true)= 'Selected' |
144 | = ' ' | ||
145 | +button(theme=theme disabled=true)= 'Disabled' | ||
146 | = ' ' | ||
147 | +button(theme=theme selected=true disabled=true)= 'Selected + disabled' | ||
50 | br | 148 | br |
51 | .l-button-group | 149 | br |
52 | +a-button(variant=theme icon='trash') | 150 | +button(theme=theme badge=true)= 'Idle' |
53 | +a-button(variant=theme disabled=true icon='trash') | 151 | = ' ' |
54 | +a-button(variant=theme outline=true icon='trash') | 152 | +button(theme=theme badge=true highlighted=true)= 'Highlighted' |
55 | +a-button(variant=theme outline=true disabled=true icon='trash') | 153 | = ' ' |
154 | +button(theme=theme badge=true selected=true)= 'Selected' | ||
155 | = ' ' | ||
156 | +button(theme=theme badge=true disabled=true)= 'Disabled' | ||
157 | = ' ' | ||
158 | +button(theme=theme badge=true selected=true disabled=true)= 'Selected + disabled' | ||
159 | br | ||
160 | br | ||
161 | +button(theme=theme quiet=true)= 'Idle' | ||
162 | = ' ' | ||
163 | +button(theme=theme quiet=true highlighted=true)= 'Highlighted' | ||
164 | = ' ' | ||
165 | +button(theme=theme quiet=true selected=true)= 'Selected' | ||
166 | = ' ' | ||
167 | +button(theme=theme quiet=true disabled=true)= 'Disabled' | ||
168 | = ' ' | ||
169 | +button(theme=theme quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
56 | 170 | ||
57 | each theme in ['static-black', 'static-white'] | 171 | each theme in ['static-black', 'static-white'] |
58 | - | 172 | - |
59 | const bg = theme.startsWith('static-black') ? 500 : 1000; | 173 | const bg = theme.startsWith('static-black') ? 500 : 1000; |
60 | 174 | ||
61 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | 175 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) |
62 | .l-button-group | 176 | +button(theme=theme)= 'Idle' |
63 | +a-button(variant=theme)= 'Button' | 177 | = ' ' |
64 | +a-button(variant=theme disabled=true)= 'Button' | 178 | +button(theme=theme highlighted=true)= 'Highlighted' |
65 | +a-button(variant=theme outline=true)= 'Button' | 179 | = ' ' |
66 | +a-button(variant=theme outline=true disabled=true)= 'Button' | 180 | +button(theme=theme selected=true)= 'Selected' |
181 | = ' ' | ||
182 | +button(theme=theme disabled=true)= 'Disabled' | ||
183 | = ' ' | ||
184 | +button(theme=theme selected=true disabled=true)= 'Selected + disabled' | ||
185 | br | ||
186 | br | ||
187 | +button(theme=theme badge=true)= 'Idle' | ||
188 | = ' ' | ||
189 | +button(theme=theme badge=true highlighted=true)= 'Highlighted' | ||
190 | = ' ' | ||
191 | +button(theme=theme badge=true selected=true)= 'Selected' | ||
192 | = ' ' | ||
193 | +button(theme=theme badge=true disabled=true)= 'Disabled' | ||
194 | = ' ' | ||
195 | +button(theme=theme badge=true selected=true disabled=true)= 'Selected + disabled' | ||
67 | br | 196 | br |
68 | .l-button-group | ||
69 | +a-button(variant=theme icon='trash') | ||
70 | +a-button(variant=theme disabled=true icon='trash') | ||
71 | +a-button(variant=theme outline=true icon='trash') | ||
72 | +a-button(variant=theme outline=true disabled=true icon='trash') | ||
73 | |||
74 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | ||
75 | .l-button-group | ||
76 | +a-button(variant=theme primary=true)= 'Button' | ||
77 | +a-button(variant=theme primary=true disabled=true)= 'Button' | ||
78 | +a-button(variant=theme primary=true outline=true)= 'Button' | ||
79 | +a-button(variant=theme primary=true outline=true disabled=true)= 'Button' | ||
80 | br | 197 | br |
81 | .l-button-group | 198 | +button(theme=theme quiet=true)= 'Idle' |
82 | +a-button(variant=theme primary=true icon='trash') | 199 | = ' ' |
83 | +a-button(variant=theme primary=true disabled=true icon='trash') | 200 | +button(theme=theme quiet=true highlighted=true)= 'Highlighted' |
84 | +a-button(variant=theme primary=true outline=true icon='trash') | 201 | = ' ' |
85 | +a-button(variant=theme primary=true outline=true disabled=true icon='trash') | 202 | +button(theme=theme quiet=true selected=true)= 'Selected' |
203 | = ' ' | ||
204 | +button(theme=theme quiet=true disabled=true)= 'Disabled' | ||
205 | = ' ' | ||
206 | +button(theme=theme quiet=true selected=true disabled=true)= 'Selected + disabled' | ||
diff --git a/tpl/views/card.pug b/tpl/views/card.pug index 633cf01..e982925 100644 --- a/tpl/views/card.pug +++ b/tpl/views/card.pug | |||
@@ -1,6 +1,63 @@ | |||
1 | mixin view-card | 1 | mixin view-card |
2 | +view('card', 'Card')(wide=true) | 2 | +view('card', 'Card')(wide=true) |
3 | .l-card-list | ||
4 | +card(href='#' class='l-card-list__card') | ||
5 | +card-body | ||
6 | strong= 'Lorem ipsum dolor' | ||
7 | = 'sit amet' | ||
8 | +card(href='#' class='l-card-list__card' shadow=true) | ||
9 | +card-body | ||
10 | strong= 'Lorem ipsum dolor' | ||
11 | = 'sit amet' | ||
12 | +card(href='#' class='l-card-list__card' borderless=true) | ||
13 | +card-body | ||
14 | strong= 'Lorem ipsum dolor' | ||
15 | = 'sit amet' | ||
16 | +card(href='#' class='l-card-list__card' shadow=true borderless=true) | ||
17 | +card-body | ||
18 | strong= 'Lorem ipsum dolor' | ||
19 | = 'sit amet' | ||
20 | |||
21 | +divider('faint')(class='u-mb-700') | ||
22 | |||
23 | .l-card-list.l-card-list--merge | ||
24 | +card(href='#' class='l-card-list__card' borderless=true) | ||
25 | +card-body | ||
26 | strong= 'Lorem ipsum dolor' | ||
27 | = 'sit amet' | ||
28 | +card(href='#' class='l-card-list__card' borderless=true) | ||
29 | +card-body | ||
30 | strong= 'Lorem ipsum dolor' | ||
31 | = 'sit amet' | ||
32 | +card(href='#' class='l-card-list__card' borderless=true) | ||
33 | +card-body | ||
34 | strong= 'Lorem ipsum dolor' | ||
35 | = 'sit amet' | ||
36 | |||
37 | +divider('faint')(class='u-mb-700') | ||
38 | |||
39 | .l-card-list.l-card-list--merge.l-card-list--borderless.l-card-list--shadow | ||
40 | +card(href='#' class='l-card-list__card' borderless=true) | ||
41 | +card-body | ||
42 | strong= 'Lorem ipsum dolor' | ||
43 | = 'sit amet' | ||
44 | +card(href='#' class='l-card-list__card' borderless=true) | ||
45 | +card-body | ||
46 | strong= 'Lorem ipsum dolor' | ||
47 | = 'sit amet' | ||
48 | +card(href='#' class='l-card-list__card' borderless=true) | ||
49 | +card-body | ||
50 | strong= 'Lorem ipsum dolor' | ||
51 | = 'sit amet' | ||
52 | |||
53 | +divider('faint')(class='u-mb-700') | ||
54 | |||
3 | .l-card-list.l-card-list--masonry | 55 | .l-card-list.l-card-list--masonry |
56 | +card(thumbnail=true href='#' class='l-card-list__card') | ||
57 | +card-image(src='Drawing_Half.png') | ||
58 | +card-body | ||
59 | +card-title= 'XS Heading' | ||
60 | |||
4 | +card(href='#' class='l-card-list__card') | 61 | +card(href='#' class='l-card-list__card') |
5 | +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '21 / 9' }) | 62 | +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '21 / 9' }) |
6 | +card-avatar(src='avatar.png') | 63 | +card-avatar(src='avatar.png') |
@@ -26,29 +83,30 @@ mixin view-card | |||
26 | +card-body | 83 | +card-body |
27 | .l-media | 84 | .l-media |
28 | .l-media__block | 85 | .l-media__block |
29 | +badge('positive')(quiet=true icon='repeat' href='#') | 86 | +button(theme='positive' badge=true pill=true size='sm' icon='repeat' href='#') |
30 | strong= '12' | 87 | strong= '12' |
31 | .l-media__block | 88 | .l-media__block |
32 | +badge('warning')(quiet=true icon='star' href='#') | 89 | +button(theme='warning' badge=true pill=true size='sm' icon='star' href='#') |
33 | strong= '34' | 90 | strong= '34' |
34 | .l-media__block.u-mis-auto | 91 | .l-media__block.u-mis-auto |
35 | +a-button(primary=true)= 'Reply' | 92 | +button(selected=true)= 'Reply' |
36 | 93 | ||
37 | +card(quiet=true href='#' class='l-card-list__card') | 94 | +card(quiet=true href='#' class='l-card-list__card') |
38 | +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '21 / 9' }) | 95 | +card-image(src='Drawing_Half.png' style={ 'aspect-ratio': '21 / 9' }) |
96 | +button(badge=true selected=true)= 'Drawings' | ||
39 | +card-body | 97 | +card-body |
40 | +card-title= 'XS Heading' | 98 | +card-title= 'XS Heading' |
41 | +card-content | 99 | +card-content |
42 | p= loremIpsum | 100 | p= loremIpsum |
43 | p= loremIpsum | 101 | p= loremIpsum |
44 | 102 | ||
45 | each layout in ['grid', 'masonry', 'masonry-h'] | 103 | each layout in ['grid', 'grid-sm', 'masonry', 'masonry-h'] |
46 | - | 104 | - |
47 | let quiet = true | 105 | let quiet = true |
48 | 106 | ||
49 | let classes = { | 107 | let classes = { |
50 | 'l-card-list': true, | 108 | 'l-card-list': true, |
51 | 'l-card-list--aspect-5/4': layout === 'grid', | 109 | 'l-card-list--aspect-5/4': ['grid', 'grid-sm'].includes(layout), |
52 | 'l-card-list--quiet': quiet, | 110 | 'l-card-list--quiet': quiet, |
53 | } | 111 | } |
54 | classes[`l-card-list--${layout}`] = true; | 112 | classes[`l-card-list--${layout}`] = true; |
@@ -59,7 +117,7 @@ mixin view-card | |||
59 | div(class=classes) | 117 | div(class=classes) |
60 | each img, i in ['Drawing_Half.png', '0000 Cover@0.5x.webp', 'avatar.png', '01 Design Cody.png', 'avatar.png', 'Drawing_Half.png'] | 118 | each img, i in ['Drawing_Half.png', '0000 Cover@0.5x.webp', 'avatar.png', '01 Design Cody.png', 'avatar.png', 'Drawing_Half.png'] |
61 | +card(quiet=quiet href='#' class='l-card-list__card') | 119 | +card(quiet=quiet href='#' class='l-card-list__card') |
62 | +card-image(src=img class='l-card-list__card-image') | 120 | +card-image(src=img list=true) |
63 | +card-body | 121 | +card-body |
64 | .l-media | 122 | .l-media |
65 | .l-media__block.l-media__block--main | 123 | .l-media__block.l-media__block--main |
diff --git a/tpl/views/dialog.pug b/tpl/views/dialog.pug index 5a659dd..9c2e520 100644 --- a/tpl/views/dialog.pug +++ b/tpl/views/dialog.pug | |||
@@ -53,8 +53,8 @@ mixin view-dialog | |||
53 | +dialog | 53 | +dialog |
54 | +slot('header') | 54 | +slot('header') |
55 | .l-media__block.l-flex | 55 | .l-media__block.l-flex |
56 | +action-button(quiet=true icon='chevron-left') | 56 | +button(quiet=true icon='chevron-left') |
57 | +action-button(quiet=true icon='chevron-right') | 57 | +button(quiet=true icon='chevron-right') |
58 | .l-media__block.l-media__block--main | 58 | .l-media__block.l-media__block--main |
59 | +div-heading('xl')(class="u-mt-0")= 'Tags' | 59 | +div-heading('xl')(class="u-mt-0")= 'Tags' |
60 | +slot('sidebar') | 60 | +slot('sidebar') |
diff --git a/tpl/views/divider.pug b/tpl/views/divider.pug index e2f2e01..5429ab5 100644 --- a/tpl/views/divider.pug +++ b/tpl/views/divider.pug | |||
@@ -12,24 +12,45 @@ mixin view-divider | |||
12 | 12 | ||
13 | .c-box | 13 | .c-box |
14 | +div-heading('xs')= 'Heading' | 14 | +div-heading('xs')= 'Heading' |
15 | +divider('quiet') | ||
16 | p= loremIpsum | ||
17 | |||
18 | .c-box | ||
19 | +div-heading('xs')= 'Heading' | ||
15 | +divider('faint') | 20 | +divider('faint') |
16 | p= loremIpsum | 21 | p= loremIpsum |
17 | 22 | ||
18 | .c-box | 23 | .c-box |
19 | +divider('strong')= 'Strong' | 24 | +divider('strong')= 'Strong' |
20 | +divider('medium')= 'Medium' | 25 | +divider('medium')= 'Medium' |
26 | +divider('quiet')= 'Quiet' | ||
21 | +divider('faint')= 'Faint' | 27 | +divider('faint')= 'Faint' |
22 | +divider('strong') | 28 | +divider('strong') |
23 | +divider('medium') | 29 | +divider('medium') |
30 | +divider('quiet') | ||
24 | +divider('faint') | 31 | +divider('faint') |
25 | 32 | ||
33 | .c-box | ||
34 | .l-media(style="height: 1em") | ||
35 | +divider('strong')(vertical=true class="l-media__block") | ||
36 | +divider('medium')(vertical=true class="l-media__block") | ||
37 | +divider('quiet')(vertical=true class="l-media__block") | ||
38 | +divider('faint')(vertical=true class="l-media__block") | ||
39 | .l-media(style="height: 1em") | ||
40 | +divider('strong')(dot=true class="l-media__block") | ||
41 | +divider('medium')(dot=true class="l-media__block") | ||
42 | +divider('quiet')(dot=true class="l-media__block") | ||
43 | +divider('faint')(dot=true class="l-media__block") | ||
44 | |||
26 | each theme in ['accent', 'negative'] | 45 | each theme in ['accent', 'negative'] |
27 | .c-box | 46 | .c-box |
28 | +divider('strong')(color=theme)= 'Strong' | 47 | +divider('strong')(color=theme)= 'Strong' |
29 | +divider('medium')(color=theme)= 'Medium' | 48 | +divider('medium')(color=theme)= 'Medium' |
49 | +divider('quiet')(color=theme)= 'Quiet' | ||
30 | +divider('faint')(color=theme)= 'Faint' | 50 | +divider('faint')(color=theme)= 'Faint' |
31 | +divider('strong')(color=theme) | 51 | +divider('strong')(color=theme) |
32 | +divider('medium')(color=theme) | 52 | +divider('medium')(color=theme) |
53 | +divider('quiet')(color=theme) | ||
33 | +divider('faint')(color=theme) | 54 | +divider('faint')(color=theme) |
34 | 55 | ||
35 | each theme in ['static-black', 'static-white'] | 56 | each theme in ['static-black', 'static-white'] |
@@ -39,7 +60,9 @@ mixin view-divider | |||
39 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | 60 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) |
40 | +divider('strong')(color=theme)= 'Strong' | 61 | +divider('strong')(color=theme)= 'Strong' |
41 | +divider('medium')(color=theme)= 'Medium' | 62 | +divider('medium')(color=theme)= 'Medium' |
63 | +divider('quiet')(color=theme)= 'Quiet' | ||
42 | +divider('faint')(color=theme)= 'Faint' | 64 | +divider('faint')(color=theme)= 'Faint' |
43 | +divider('strong')(color=theme) | 65 | +divider('strong')(color=theme) |
44 | +divider('medium')(color=theme) | 66 | +divider('medium')(color=theme) |
67 | +divider('quiet')(color=theme) | ||
45 | +divider('faint')(color=theme) | 68 | +divider('faint')(color=theme) |
diff --git a/tpl/views/emoji.pug b/tpl/views/emoji.pug index 3d01ca7..d6e2b56 100644 --- a/tpl/views/emoji.pug +++ b/tpl/views/emoji.pug | |||
@@ -1,14 +1,14 @@ | |||
1 | mixin view-emoji | 1 | mixin view-emoji |
2 | +view('emoji', 'Emoji') | 2 | +view('emoji', 'Emoji') |
3 | .c-box | 3 | .c-box |
4 | +action-button(icon='trash') | 4 | +button(icon='trash') |
5 | = ' ' | 5 | = ' ' |
6 | +action-button | 6 | +button |
7 | +emoji('drgn')(size='icon') | 7 | +emoji('drgn')(size='icon') |
8 | = ' ' | 8 | = ' ' |
9 | +action-button(icon='trash' quiet=true) | 9 | +button(icon='trash' quiet=true) |
10 | = ' ' | 10 | = ' ' |
11 | +action-button(quiet=true) | 11 | +button(quiet=true) |
12 | +emoji('drgn')(size='icon') | 12 | +emoji('drgn')(size='icon') |
13 | 13 | ||
14 | .c-box | 14 | .c-box |
diff --git a/tpl/views/form.pug b/tpl/views/form.pug index 5b24757..ca9e224 100644 --- a/tpl/views/form.pug +++ b/tpl/views/form.pug | |||
@@ -27,4 +27,4 @@ mixin view-form | |||
27 | +checkbox= 'I\'ve read and accept the terms and conditions' | 27 | +checkbox= 'I\'ve read and accept the terms and conditions' |
28 | 28 | ||
29 | +form-item('') | 29 | +form-item('') |
30 | +a-button(variant='primary')= 'Register' | 30 | +button(variant='primary')= 'Register' |
diff --git a/tpl/views/menu.pug b/tpl/views/menu.pug index 7c5df03..682f8bb 100644 --- a/tpl/views/menu.pug +++ b/tpl/views/menu.pug | |||
@@ -2,7 +2,7 @@ mixin view-menu | |||
2 | +view('menu', 'Menu') | 2 | +view('menu', 'Menu') |
3 | .c-box | 3 | .c-box |
4 | div(style={ display: 'flex', 'flex-direction': 'column', 'align-items': 'flex-start' }) | 4 | div(style={ display: 'flex', 'flex-direction': 'column', 'align-items': 'flex-start' }) |
5 | +action-button(quiet=true selected=true)= 'Menu' | 5 | +button(quiet=true selected=true)= 'Menu' |
6 | +popover | 6 | +popover |
7 | +menu | 7 | +menu |
8 | +menu-slot(class='l-media') | 8 | +menu-slot(class='l-media') |
diff --git a/tpl/views/popover.pug b/tpl/views/popover.pug index b269596..bd78471 100644 --- a/tpl/views/popover.pug +++ b/tpl/views/popover.pug | |||
@@ -1,6 +1,6 @@ | |||
1 | mixin view-popover | 1 | mixin view-popover |
2 | +view('popover', 'Popover') | 2 | +view('popover', 'Popover') |
3 | .c-box | 3 | .c-box |
4 | +action-button(quiet=true selected=true)= 'Popover' | 4 | +button(quiet=true selected=true)= 'Popover' |
5 | +popover | 5 | +popover |
6 | = loremIpsum | 6 | = loremIpsum |
diff --git a/tpl/views/text-field.pug b/tpl/views/text-field.pug index 165e2ce..4309ff6 100644 --- a/tpl/views/text-field.pug +++ b/tpl/views/text-field.pug | |||
@@ -16,8 +16,8 @@ mixin view-text-field | |||
16 | div | 16 | div |
17 | +text-field(placeholder='Just landed in L.A.' class="u-p-50") | 17 | +text-field(placeholder='Just landed in L.A.' class="u-p-50") |
18 | +slot('pre') | 18 | +slot('pre') |
19 | +action-button(quiet=true class='l-media__block')= 'Volpeon' | 19 | +button(quiet=true class='l-media__block')= 'Volpeon' |
20 | +divider('vertical')(class='u-mis-50') | 20 | +divider('vertical')(class='u-mis-50') |
21 | +slot('post') | 21 | +slot('post') |
22 | +action-button(quiet=true icon='smile' class='l-media__block') | 22 | +button(quiet=true icon='smile' class='l-media__block') |
23 | +action-button(quiet=true icon='send' class='l-media__block') | 23 | +button(quiet=true icon='send' class='l-media__block') |