summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-06 11:24:41 +0100
committerVolpeon <git@volpeon.ink>2022-02-06 11:24:41 +0100
commitf932673fb4f6e6444cfdb50f5df4a4ab8465a038 (patch)
tree75052efa371dacce844180e43dc929602b571d6d /tpl
parentAdded form (diff)
downloadiro-design-f932673fb4f6e6444cfdb50f5df4a4ab8465a038.tar.gz
iro-design-f932673fb4f6e6444cfdb50f5df4a4ab8465a038.tar.bz2
iro-design-f932673fb4f6e6444cfdb50f5df4a4ab8465a038.zip
Improved form
Diffstat (limited to 'tpl')
-rw-r--r--tpl/index.pug2
-rw-r--r--tpl/objects/form.pug1
2 files changed, 2 insertions, 1 deletions
diff --git a/tpl/index.pug b/tpl/index.pug
index 2ebb625..6971faa 100644
--- a/tpl/index.pug
+++ b/tpl/index.pug
@@ -276,7 +276,7 @@ html
276 +rule(level='medium') 276 +rule(level='medium')
277 277
278 +box 278 +box
279 +form 279 +form(labelsAlign="left")
280 +form-item('Username') 280 +form-item('Username')
281 +text-field(placeholder='Example: Volpeon') 281 +text-field(placeholder='Example: Volpeon')
282 282
diff --git a/tpl/objects/form.pug b/tpl/objects/form.pug
index 496ed48..24ac3f0 100644
--- a/tpl/objects/form.pug
+++ b/tpl/objects/form.pug
@@ -3,6 +3,7 @@ include field-label.pug
3mixin form 3mixin form
4 form(class={ 4 form(class={
5 'l-form': true, 5 'l-form': true,
6 'l-form--labels-left': attributes.labelsAlign === 'left',
6 'l-form--labels-right': attributes.labelsAlign === 'right', 7 'l-form--labels-right': attributes.labelsAlign === 'right',
7 'l-form--labels-above': attributes.labelsAlign === 'above' 8 'l-form--labels-above': attributes.labelsAlign === 'above'
8 }) 9 })