summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-06 11:08:53 +0100
committerVolpeon <git@volpeon.ink>2022-02-06 11:08:53 +0100
commitaefacb0a07a9ef66172dfccb24714717585f86b1 (patch)
tree37107453c3da350d7bcbdc7d4d77f4f514b58622 /tpl/objects
parentAdded checkbox and switch (diff)
downloadiro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.tar.gz
iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.tar.bz2
iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.zip
Added form
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/form.pug13
1 files changed, 13 insertions, 0 deletions
diff --git a/tpl/objects/form.pug b/tpl/objects/form.pug
new file mode 100644
index 0000000..496ed48
--- /dev/null
+++ b/tpl/objects/form.pug
@@ -0,0 +1,13 @@
1include field-label.pug
2
3mixin form
4 form(class={
5 'l-form': true,
6 'l-form--labels-right': attributes.labelsAlign === 'right',
7 'l-form--labels-above': attributes.labelsAlign === 'above'
8 })
9 block
10
11mixin form-item(label, hint=null)
12 +field-label(label, hint)(class='l-form__item' labelClass='l-form__item-label' contentClass='l-form__item-content')
13 block