Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed a potential bug in blueprint's ie clearfix, added grep matching…

… flag to rudimentary bash script
  • Loading branch information...
commit 5cd20c52cdbe7a8ad8004447af80ff4719f23204 1 parent 668c3b4
Michael Hellein authored
Showing with 12 additions and 4 deletions.
  1. +1 −1  blueless/ie.less
  2. +1 −1  blueless/src/grid.less
  3. +10 −2 ielayout.sh
View
2  blueless/ie.less
@@ -22,7 +22,7 @@ sub {vertical-align:text-bottom;}
html>body p code {*white-space:normal;}
hr {margin:-8px auto 11px;}
img {-ms-interpolation-mode:bicubic;}
-.clearfix() {display:inline-block;}
+.clearfix() {zoom: 1; display: block;}
.container() {.clearfix;}
* html .clearfix, * html .container {height:1%;}
fieldset {padding-top:0;}
View
2  blueless/src/grid.less
@@ -121,7 +121,7 @@ next column, or to pull it into the previous column. */
[http://www.positioniseverything.net/easyclearing.html] */
.clearfix() {
- display: block;
+ display: inline-block;
&:after {
content: "\0020";
View
12 ielayout.sh
@@ -6,8 +6,9 @@ files='screen'
output='ie.layout'
blueless_path='../blueless/blueless'
includes=''
+grepmatch=''
-while getopts 'f:o:p:i:' OPTION
+while getopts 'f:o:p:i:m:' OPTION
do
case $OPTION in
f) files="$OPTARG"
@@ -18,6 +19,8 @@ while getopts 'f:o:p:i:' OPTION
;;
i) includes="$OPTARG"
;;
+ m) grepmatch="$OPTARG"
+ ;;
?) printf "Usage: %s: [-f lessviles] args\n" $(basename $0) >&2
exit 2
;;
@@ -36,11 +39,16 @@ do
echo "@import \"$include\";" >> $output.less
done
+# Add pipe to pattern
+if [ $grepmatch ]; then
+ grepmatch="|$grepmatch"
+fi
+
# grep for desired classes
for lessfile in $files
do
echo "/* $lessfile.less */" >> $output.less
- egrep "\{|\}|\.column|.container|.clearfix" $lessfile.less >> $output.less
+ egrep "\{|\}|\.column|\.container|\.clearfix$grepmatch" $lessfile.less >> $output.less
done
# Exit OK
Please sign in to comment.
Something went wrong with that request. Please try again.