From f932673fb4f6e6444cfdb50f5df4a4ab8465a038 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 11:24:41 +0100 Subject: Improved form --- tpl/index.pug | 2 +- tpl/objects/form.pug | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl') 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 +rule(level='medium') +box - +form + +form(labelsAlign="left") +form-item('Username') +text-field(placeholder='Example: Volpeon') 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 mixin form form(class={ 'l-form': true, + 'l-form--labels-left': attributes.labelsAlign === 'left', 'l-form--labels-right': attributes.labelsAlign === 'right', 'l-form--labels-above': attributes.labelsAlign === 'above' }) -- cgit v1.2.3-70-g09d2