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
+ +

+ Inputs +

+

Cards diff --git a/scss/site/input.scss b/scss/site/input.scss index 8af442d..45a3533 100644 --- a/scss/site/input.scss +++ b/scss/site/input.scss @@ -132,9 +132,20 @@ button + button, .button-link + .button-link > button { //} } -textarea { - &.no-resize { - resize: none; - } -} \ No newline at end of file +// TODO: Move to core ! +.ta-resize { + resize: both; +} + +.ta-resize-h { + resize: horizontal; +} + +.ta-resize-v { + resize: vertical; +} + +.ta-resize-none { + resize: none; +}