From 41ec3e49d63ea45d8aee4f26eeccfedaa20a7f7d Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Thu, 17 Aug 2017 18:54:07 +0800 Subject: Add Grid offset, more margin and padding utilities --- src/forms.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/forms.less') diff --git a/src/forms.less b/src/forms.less index 616f53d..bc9b571 100644 --- a/src/forms.less +++ b/src/forms.less @@ -109,20 +109,23 @@ legend { border-radius: @border-radius; color: inherit; font-size: @font-size; + height: @control-size; line-height: @line-height; outline: none; padding: @control-padding-v @control-padding-h; vertical-align: middle; width: 100%; + &[size], &[multiple] { + height: auto; + option { padding: @unit-h @unit-1; } } - &:not([multiple]) { + &:not([multiple]):not([size]) { background: @bg-color-light url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23667189' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right (@control-icon-size / 2) center / .4rem .5rem; - height: @control-size; padding-right: @control-icon-size + @control-padding-h; } &:focus { -- cgit v1.3.1-23-gd82d