diff --git a/pages/_includes/cards/form/layout.html b/pages/_includes/cards/form/layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..51ba064227c6317d9ff8863b274c0bd773be469a
--- /dev/null
+++ b/pages/_includes/cards/form/layout.html
@@ -0,0 +1,59 @@
+{% assign horizontal = include.horizontal | default: false %}
+
\ No newline at end of file
diff --git a/pages/_includes/parts/form/select.html b/pages/_includes/parts/form/select.html
index 4fbecb50e44bf5ac8edb2dbb0f1f70110aa54ec6..6115d6cc88a6103a16070256016eba7a273378d2 100644
--- a/pages/_includes/parts/form/select.html
+++ b/pages/_includes/parts/form/select.html
@@ -1,9 +1,9 @@
{% assign options = include.options | default: "One,Two,Three" | split: "," %}
-
{{ include.label | default: 'Select' }}
-
+
{{ include.label | default: 'Select' }}
+
diff --git a/pages/form-elements.html b/pages/form-elements.html
index 5a394bfe14f5ce688233128f703e197d6f27cfd1..1e206a8edb12674c3f7db50f3d3d5a2b70377f07 100644
--- a/pages/form-elements.html
+++ b/pages/form-elements.html
@@ -40,4 +40,12 @@ menu: forms
+
+
+ {% include cards/form/layout.html %}
+
+
+
+ {% include cards/form/layout.html horizontal=true title="Horizontal form" %}
+
diff --git a/pages/tmp3.html b/pages/tmp3.html
index 87158197ffe8ddcf3fd7a11a46f7fd1023bde573..80c1c28b8ad7c73f49a8462e422792e59d1eaf67 100644
--- a/pages/tmp3.html
+++ b/pages/tmp3.html
@@ -1,33 +1,12 @@
---
-tmp: true
---
-
-
+
+
+ {% include cards/form/layout.html %}
+
-
-
-
-
-
- {% include cards/card.html class="dropdown-menu" title="Card title" footer=true img-top=true %}
+
+ {% include cards/form/layout.html horizontal=true title="Horizontal form" %}
+
\ No newline at end of file
diff --git a/scss/ui/_buttons.scss b/scss/ui/_buttons.scss
index e6a15e77da2dde839970ddb1b436b417d38c4760..4f7c06239edfb9878fca4940d7d93de260e82ef8 100644
--- a/scss/ui/_buttons.scss
+++ b/scss/ui/_buttons.scss
@@ -69,6 +69,10 @@
padding-right: 1.5em;
padding-left: 1.5em;
border-radius: 10rem;
+
+ &[class*="btn-icon"]{
+ padding: 0.375rem 15px;
+ }
}
.btn-icon {
diff --git a/scss/ui/_forms.scss b/scss/ui/_forms.scss
index 14e4b842ad9fa73bc54e0d5681f99318be4d69d3..a307c0dc2828a11a75147189d2165a8a8fc12222 100644
--- a/scss/ui/_forms.scss
+++ b/scss/ui/_forms.scss
@@ -26,14 +26,27 @@ Form label
Form hint
*/
.form-hint {
+ display: block;
font-size: $small-font-size;
color: $text-muted;
- margin: 0 0 .75rem;
line-height: $line-height-sm;
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ & + .form-control {
+ margin-top: .25rem;
+ }
+
.form-label + & {
margin-top: -.5rem;
}
+
+ .form-control + &,
+ .form-select + & {
+ margin-top: .25rem;
+ }
}
/**