From 7eba61861ac9c4c77ce8edb09559edb3dcb746b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Zs=C3=B3t=C3=A9r?= Date: Sun, 9 Feb 2014 10:40:58 +0100 Subject: [PATCH 1/2] Inline-block with conditional IE support --- lib/nib/vendor.styl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/nib/vendor.styl b/lib/nib/vendor.styl index e6b5fef6..461997fe 100644 --- a/lib/nib/vendor.styl +++ b/lib/nib/vendor.styl @@ -261,6 +261,19 @@ perspective() perspective-origin() vendor('perspective-origin', arguments, only: webkit moz ms official) +/* + * Inline-block with conditional IE support. + */ + +display( _mode ) + if _mode == 'inline-block' + display inline-block + if support-for-ie + zoom 1 + *display inline + else + display _mode + /* * Opacity with conditional IE support. */ From daf4f1c2176138fcc618999caee1167f166cdf89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Zs=C3=B3t=C3=A9r?= Date: Mon, 10 Feb 2014 15:27:15 +0100 Subject: [PATCH 2/2] Importance test fix --- lib/nib/vendor.styl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/nib/vendor.styl b/lib/nib/vendor.styl index 461997fe..2be1acd6 100644 --- a/lib/nib/vendor.styl +++ b/lib/nib/vendor.styl @@ -265,14 +265,14 @@ perspective-origin() * Inline-block with conditional IE support. */ -display( _mode ) - if _mode == 'inline-block' - display inline-block +display(mode, args...) + if mode == 'inline-block' + display inline-block args if support-for-ie zoom 1 - *display inline + *display inline args else - display _mode + display mode args /* * Opacity with conditional IE support.