From 56bd527a8ba8427b81e8e8604b3870b01a11fe8b Mon Sep 17 00:00:00 2001 From: wvengen Date: Thu, 9 Jan 2014 10:51:48 +0100 Subject: [PATCH] keep white input background with package class [ci skip] --- .../stylesheets/bootstrap_and_overrides.css.less | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/bootstrap_and_overrides.css.less b/app/assets/stylesheets/bootstrap_and_overrides.css.less index 6f70a2e1..002ae8cc 100644 --- a/app/assets/stylesheets/bootstrap_and_overrides.css.less +++ b/app/assets/stylesheets/bootstrap_and_overrides.css.less @@ -281,16 +281,21 @@ tr.unavailable { display: inline; } -// show package icon after amount of package numbers +// show package icon after amount of wholesale units +.package-image (@align) { + background-image: url(package-bg.png); + background-repeat: no-repeat; + background-position: @align center; +} input.package { - background: url(package-bg.png) no-repeat right center; + .package-image(right); // disabled and readonly definitions though &[disabled], &[readonly] { background-color: @inputDisabledBackground; } } i.package { - background: url(package-bg.png) no-repeat left center; + .package-image(left); min-width: 18px; font-style: normal; padding-left: 20px;