aboutsummaryrefslogtreecommitdiff
path: root/examples/form/signup.css
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-18 09:40:18 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-18 09:40:18 +0530
commitc8cdbd8d6669b1eb1a5d2389893c2460bef73d76 (patch)
treed2b7d380b3c513bc9d4a8e9b155dac73588ae2d8 /examples/form/signup.css
parentb749eb0ee945ca1cf9c9aa0ad16cb4dd6873de04 (diff)
downloadcss-everything-c8cdbd8d6669b1eb1a5d2389893c2460bef73d76.tar.gz
css-everything-c8cdbd8d6669b1eb1a5d2389893c2460bef73d76.zip
feat: adds instance element access + gets the todo example functional
Diffstat (limited to 'examples/form/signup.css')
-rw-r--r--examples/form/signup.css17
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/form/signup.css b/examples/form/signup.css
index e633243..3433b87 100644
--- a/examples/form/signup.css
+++ b/examples/form/signup.css
@@ -4,10 +4,11 @@
max-width: 700px;
margin: 1rem auto;
- --cssx-disgustingly-set-innerhtml: "<h1 class='form-title'>Sign-<b>Up</b></h1>";
+ --count: '0';
+ --cssx-disgustingly-set-innerhtml:
+ "<h1 class='form-title'>Sign-<b>Up</b></h1>";
--cssx-children: form#form;
- --count: '0';
}
.form-title {
@@ -25,11 +26,15 @@
#form {
display: block;
- --cssx-on-submit: prevent-default() add-class(form, 'submitting')
- request('/examples/') remove-class(form, 'submitting')
- add-class(form, 'submitted');
+ --cssx-on-submit:
+ prevent-default()
+ add-class(form, 'submitting')
+ request('/examples/')
+ remove-class(form, 'submitting')
+ add-class(form, 'submitted')
+ ;
- --cssx-children: input#input-email input#input-password actions #message;
+ --cssx-children: input#input-email input#input-password #actions #message;
}
#form.submitted #message::after {
display: block;