From 697e0f01f549f9d09ec6d45b6ef5efbf0afaf58f Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Tue, 26 Nov 2024 22:54:02 +0100 Subject: [PATCH] Added input sections stubs, Added textarea basic rules Update index.php, inputs.php, and 3 more files... --- htdocs/index.php | 43 +++++++++++------- htdocs/parts/core/inputs.php | 77 ++++++++++++++++++++++++++++++++ htdocs/parts/examples/inputs.php | 37 +++++++++++++++ htdocs/parts/sidebar.php | 10 +++++ scss/site/input.scss | 21 ++++++--- 5 files changed, 166 insertions(+), 22 deletions(-) create mode 100644 htdocs/parts/core/inputs.php create mode 100644 htdocs/parts/examples/inputs.php diff --git a/htdocs/index.php b/htdocs/index.php index 14482e2..3f62cf9 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -58,55 +58,64 @@ - + + - + - + - + - + - + - + - + - + - - + - + - + + + + + - + - + - + - + + + + + diff --git a/htdocs/parts/core/inputs.php b/htdocs/parts/core/inputs.php new file mode 100644 index 0000000..4248ea8 --- /dev/null +++ b/htdocs/parts/core/inputs.php @@ -0,0 +1,77 @@ + + + +
+

Inputs + +

+
+
+ +
+ ℹ️ Check the Examples > Inputs section for styled examples. +
+ +
+ + + + label+input[type=text] + +
+ +
+ + + + label+input[type=password] + +
+ +
+ + + + label+input[type=number] + +
+ +
+ +
+ +
+ + + + (input[type=radio]+label+br)*3 + +
+ +
+ +
+ +
+ + + + (input[type=checkbox]+label+br)*3 + +
+ +
+ + + + label+textarea + +
+ +
diff --git a/htdocs/parts/examples/inputs.php b/htdocs/parts/examples/inputs.php new file mode 100644 index 0000000..7f48020 --- /dev/null +++ b/htdocs/parts/examples/inputs.php @@ -0,0 +1,37 @@ + + + +
+

Inputs + +

+
+
+ +

Basic inputs

+ +
+ + + + label+input[type=text].p-xxs.border.r-m + +
+ +
+ + + + label+textarea.p-xxs.border.r-m.w-full.ta-resize-v + + +
+ +

TODO: Add other types

+
diff --git a/htdocs/parts/sidebar.php b/htdocs/parts/sidebar.php index e4916f8..51bb3e0 100644 --- a/htdocs/parts/sidebar.php +++ b/htdocs/parts/sidebar.php @@ -80,6 +80,11 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) { Tables

+ +

+ Inputs +

+
@@ -112,6 +117,11 @@ if(basename(__FILE__) == basename($_SERVER["SCRIPT_FILENAME"])) {
Examples