From 9a5a0912ef5f4091ac9078a739efc0f631d35566 Mon Sep 17 00:00:00 2001 From: xavijam Date: Wed, 18 Jan 2017 10:52:44 +0100 Subject: [PATCH 1/2] Adding has-icon class for text input --- src/scss/cdb-components/forms/inputs.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scss/cdb-components/forms/inputs.scss b/src/scss/cdb-components/forms/inputs.scss index f71069f..1a612b6 100644 --- a/src/scss/cdb-components/forms/inputs.scss +++ b/src/scss/cdb-components/forms/inputs.scss @@ -51,6 +51,9 @@ background: $cThirdBackground; cursor: default; } + &.has-icon { + padding-right: 40px; + } &.has-error { @include default-form-error-style(); } From 6a941f43f73b220f526aaa7b6cc108c638dfa8fc Mon Sep 17 00:00:00 2001 From: xavijam Date: Wed, 18 Jan 2017 10:54:13 +0100 Subject: [PATCH 2/2] Using mainSize variable --- src/scss/cdb-components/forms/inputs.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scss/cdb-components/forms/inputs.scss b/src/scss/cdb-components/forms/inputs.scss index 1a612b6..149674b 100644 --- a/src/scss/cdb-components/forms/inputs.scss +++ b/src/scss/cdb-components/forms/inputs.scss @@ -52,7 +52,7 @@ cursor: default; } &.has-icon { - padding-right: 40px; + padding-right: $mainSize * 4; } &.has-error { @include default-form-error-style();