From d2a4b399fa4872ff228943e29237037189d50eb5 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 28 Mar 2016 17:17:37 +0800 Subject: add form horizontal code --- src/forms.less | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/forms.less') diff --git a/src/forms.less b/src/forms.less index 110b747..8d4cbc4 100644 --- a/src/forms.less +++ b/src/forms.less @@ -2,6 +2,29 @@ .form-group:not(:last-child) { margin-bottom: 1rem; } +.form-horizontal { + .col-12, + .col-11, + .col-10, + .col-9, + .col-8, + .col-7, + .col-6, + .col-5, + .col-4, + .col-3, + .col-2, + .col-1 { + float: left; + } + .form-label { + padding: .8rem .4rem; + } + .form-checkbox, + .form-radio { + margin: .5rem 0; + } +} // Form element: Input boxes .form-input { position: relative; -- cgit v1.3.1-23-gd82d