diff options
Diffstat (limited to 'tpl/objects')
| -rw-r--r-- | tpl/objects/action-menu.pug | 9 | ||||
| -rw-r--r-- | tpl/objects/backdrop.pug | 3 | ||||
| -rw-r--r-- | tpl/objects/dialog.pug | 16 | ||||
| -rw-r--r-- | tpl/objects/heading.pug | 42 | ||||
| -rw-r--r-- | tpl/objects/rule.pug | 8 |
5 files changed, 45 insertions, 33 deletions
diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index 8c1a584..e8cecb2 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug | |||
| @@ -2,14 +2,7 @@ include icon.pug | |||
| 2 | include status-indicator.pug | 2 | include status-indicator.pug |
| 3 | 3 | ||
| 4 | mixin action-menu | 4 | mixin action-menu |
| 5 | - | 5 | .o-action-menu.u-ps.t-raised |
| 6 | let classes = { | ||
| 7 | 'o-action-menu': true, | ||
| 8 | 'o-action-menu--static': true, | ||
| 9 | 't-raised': true | ||
| 10 | } | ||
| 11 | |||
| 12 | div(class=classes) | ||
| 13 | block | 6 | block |
| 14 | 7 | ||
| 15 | mixin action-menu-item | 8 | mixin action-menu-item |
diff --git a/tpl/objects/backdrop.pug b/tpl/objects/backdrop.pug new file mode 100644 index 0000000..6ad72d7 --- /dev/null +++ b/tpl/objects/backdrop.pug | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | mixin backdrop | ||
| 2 | .o-backdrop.u-ps(style={ width: '100%', 'min-height': '5em' }) | ||
| 3 | block | ||
diff --git a/tpl/objects/dialog.pug b/tpl/objects/dialog.pug new file mode 100644 index 0000000..2cbbd4f --- /dev/null +++ b/tpl/objects/dialog.pug | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | include rule.pug | ||
| 2 | include button.pug | ||
| 3 | include heading.pug | ||
| 4 | |||
| 5 | mixin dialog(title) | ||
| 6 | .o-dialog.t-raised | ||
| 7 | header.o-dialog__header | ||
| 8 | +div-heading('lg')(class='o-dialog__title') | ||
| 9 | = title | ||
| 10 | +rule('medium') | ||
| 11 | section.o-dialog__body | ||
| 12 | block | ||
| 13 | footer.o-dialog__footer | ||
| 14 | +a-button(outline=true)= 'Cancel' | ||
| 15 | = ' ' | ||
| 16 | +a-button(outline=true variant='primary')= 'Continue' | ||
diff --git a/tpl/objects/heading.pug b/tpl/objects/heading.pug index 546df43..a0de4af 100644 --- a/tpl/objects/heading.pug +++ b/tpl/objects/heading.pug | |||
| @@ -1,34 +1,34 @@ | |||
| 1 | mixin h1-heading | 1 | mixin h1-heading(level) |
| 2 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 2 | - let classes = ['o-heading', 'o-heading--' + level] |
| 3 | h1(class=classes) | 3 | h1(class=classes)&attributes(attributes) |
| 4 | block | 4 | block |
| 5 | 5 | ||
| 6 | mixin h2-heading | 6 | mixin h2-heading(level) |
| 7 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 7 | - let classes = ['o-heading', 'o-heading--' + level] |
| 8 | h2(class=classes) | 8 | h2(class=classes)&attributes(attributes) |
| 9 | block | 9 | block |
| 10 | 10 | ||
| 11 | mixin h3-heading | 11 | mixin h3-heading(level) |
| 12 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 12 | - let classes = ['o-heading', 'o-heading--' + level] |
| 13 | h3(class=classes) | 13 | h3(class=classes)&attributes(attributes) |
| 14 | block | 14 | block |
| 15 | 15 | ||
| 16 | mixin h4-heading | 16 | mixin h4-heading(level) |
| 17 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 17 | - let classes = ['o-heading', 'o-heading--' + level] |
| 18 | h4(class=classes) | 18 | h4(class=classes)&attributes(attributes) |
| 19 | block | 19 | block |
| 20 | 20 | ||
| 21 | mixin h5-heading | 21 | mixin h5-heading(level) |
| 22 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 22 | - let classes = ['o-heading', 'o-heading--' + level] |
| 23 | h5(class=classes) | 23 | h5(class=classes)&attributes(attributes) |
| 24 | block | 24 | block |
| 25 | 25 | ||
| 26 | mixin h6-heading | 26 | mixin h6-heading(level) |
| 27 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 27 | - let classes = ['o-heading', 'o-heading--' + level] |
| 28 | h6(class=classes) | 28 | h6(class=classes)&attributes(attributes) |
| 29 | block | 29 | block |
| 30 | 30 | ||
| 31 | mixin div-heading | 31 | mixin div-heading(level) |
| 32 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | 32 | - let classes = ['o-heading', 'o-heading--' + level] |
| 33 | div(class=classes) | 33 | div(class=classes)&attributes(attributes) |
| 34 | block | 34 | block |
diff --git a/tpl/objects/rule.pug b/tpl/objects/rule.pug index 958ff18..63a039f 100644 --- a/tpl/objects/rule.pug +++ b/tpl/objects/rule.pug | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | mixin rule | 1 | mixin rule(level) |
| 2 | - | 2 | - |
| 3 | let classes = { | 3 | let classes = { |
| 4 | 'o-rule': true, | 4 | 'o-rule': true, |
| 5 | 'o-rule--labelled': !!block | 5 | 'o-rule--labelled': !!block, |
| 6 | ['o-rule--' + level]: true | ||
| 6 | } | 7 | } |
| 7 | classes['o-rule--' + attributes.level] = true | ||
| 8 | 8 | ||
| 9 | div(class=classes) | 9 | div(class=classes) |
| 10 | if block | 10 | if block |
