From 7c223a18af54e9cfbd2a9866a75aed11d5fbfa89 Mon Sep 17 00:00:00 2001 From: Dragan Babic Date: Thu, 4 Apr 2013 12:27:30 +0200 Subject: [PATCH 1/3] Future-proofing the .auto class. --- css/uni-form.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/css/uni-form.css b/css/uni-form.css index 8373497..5f371d0 100755 --- a/css/uni-form.css +++ b/css/uni-form.css @@ -238,7 +238,7 @@ .uni-form .inline-labels .ctrl-holder > ul .input-file, .uni-form .inline-labels .ctrl-holder > ul .input-textarea { float: none; - display: block; + display: inline-block; width: 100%; } @@ -308,6 +308,7 @@ .uni-form .auto { width: auto !important; height: auto !important; + display: inline-block !important; } .uni-form .small, From 2db7bbbb1233e97f60aad4bfe1462630b1b99237 Mon Sep 17 00:00:00 2001 From: Dragan Babic Date: Thu, 4 Apr 2013 12:41:53 +0200 Subject: [PATCH 2/3] Add the sized inputs right margin only if they are next to another input. --- css/uni-form.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css/uni-form.css b/css/uni-form.css index 5f371d0..13c642f 100755 --- a/css/uni-form.css +++ b/css/uni-form.css @@ -311,9 +311,9 @@ display: inline-block !important; } -.uni-form .small, -.uni-form .medium, -.uni-form .auto { +.uni-form .small + input, +.uni-form .medium + input, +.uni-form .auto + input { margin-right: 4px !important; } From 094caf302ca813e99cfa87647b7311472c22a880 Mon Sep 17 00:00:00 2001 From: Dragan Babic Date: Thu, 4 Apr 2013 12:41:53 +0200 Subject: [PATCH 3/3] Add the sized inputs right margin only if they are next to another input. --- css/uni-form.css | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/css/uni-form.css b/css/uni-form.css index 5f371d0..7f8081e 100755 --- a/css/uni-form.css +++ b/css/uni-form.css @@ -311,9 +311,14 @@ display: inline-block !important; } -.uni-form .small, -.uni-form .medium, -.uni-form .auto { +/* Make spacing in between two inputs */ + +.uni-form .small + input, +.uni-form .medium + input, +.uni-form .auto + input, +.uni-form .small + select, +.uni-form .medium + select, +.uni-form .auto + select { margin-right: 4px !important; }