vertical shapes sidebar now auto-resizes as well
parent
613be4e619
commit
8311fdd9c1
File diff suppressed because one or more lines are too long
@ -1,20 +1,22 @@
|
||||
#verticalShapes {
|
||||
position:absolute;
|
||||
right: -56px;
|
||||
right: 0;
|
||||
bottom: 15px;
|
||||
margin-right: -8.5%;
|
||||
width: 8%;
|
||||
|
||||
.verticalshape {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
>div {
|
||||
border: 2px solid #333;
|
||||
border-radius: 0px 5px 5px 0px;
|
||||
margin-top: 4px;
|
||||
/*background-color: #f0f;*/
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
|
||||
&.straight { background: url('../img/vertical_shape_icons/straight.png') no-repeat; }
|
||||
&.diverging { background: url('../img/vertical_shape_icons/diverging.png') no-repeat; }
|
||||
&.converging { background: url('../img/vertical_shape_icons/converging.png') no-repeat; }
|
||||
&.sinus { background: url('../img/vertical_shape_icons/sinus.png') no-repeat; }
|
||||
img.verticalshape {
|
||||
width: 100%;
|
||||
max-width: 50px;
|
||||
height: auto;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,55 +1,72 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo 'converting LESS to CSS...'
|
||||
# generate CSS from LESS
|
||||
lessc less/styles.less css/styles.css
|
||||
choices=0
|
||||
|
||||
if [ -a css/styles.min.css ]; then
|
||||
rm css/styles.min.css
|
||||
if [ ! -n "$1" ]; then
|
||||
echo 'no arguments passed.. this will simply convert LESS to CSS.'
|
||||
echo "in case you're wondering, there's arguments you can pass:"
|
||||
echo ' -m / --minify = minify css'
|
||||
echo ' -p / --prefix = apply browser-specific prefixes'
|
||||
echo ''
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
if [ $1 = '--prefix' ] || [ $1 = '-p' ]; then
|
||||
echo 'applying prefixr...'
|
||||
|
||||
# prefixed (-s overwrites existing file)
|
||||
prefixr --input ./css/styles.css -s
|
||||
# echo 'got prefix'
|
||||
choices=`expr $choices + 1`
|
||||
fi
|
||||
if [ $1 = '--minify' ] || [ $1 = '-m' ]; then
|
||||
|
||||
if [ ! -n "$2" ]; then
|
||||
echo 'creating minified....'
|
||||
lessc --yui-compress less/styles.less css/styles.min.css
|
||||
else
|
||||
echo 'creating minified and prefixed...'
|
||||
|
||||
# copy to .min.css to create a minified version as well
|
||||
cp css/styles.css css/styles.min.css
|
||||
|
||||
# prefixed and minified (-s overwrites existing file)
|
||||
prefixr --input ./css/styles.min.css -s -c
|
||||
fi
|
||||
|
||||
# echo 'got minify'
|
||||
choices=`expr $choices + 2`
|
||||
fi
|
||||
fi
|
||||
if [ -n "$2" ]; then
|
||||
if [ $2 = '--prefix' ] || [ $2 = '-p' ]; then
|
||||
# echo 'got prefix'
|
||||
choices=`expr $choices + 1`
|
||||
fi
|
||||
if [ $2 = '--minify' ] || [ $2 = '-m' ]; then
|
||||
# echo 'got minify'
|
||||
choices=`expr $choices + 2`
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ -a css/styles.min.css ]; then
|
||||
rm css/styles.min.css
|
||||
fi
|
||||
|
||||
if [ -n "$2" ]; then
|
||||
if [ $2 = '--prefix' ] || [ $2 = '-p' ]; then
|
||||
echo 'applying prefixr...'
|
||||
# generate CSS from LESS
|
||||
echo 'converting LESS to CSS...'
|
||||
lessc less/styles.less css/styles.css
|
||||
|
||||
case "$choices" in
|
||||
"0")
|
||||
echo 'just less-to-css'
|
||||
;;
|
||||
"1")
|
||||
echo 'applying prefixr...'
|
||||
# prefixed (-s overwrites existing file)
|
||||
prefixr --input ./css/styles.css -s
|
||||
fi
|
||||
if [ $2 = '--minify' ] || [ $2 = '-m' ]; then
|
||||
;;
|
||||
"2")
|
||||
echo 'creating minified....'
|
||||
lessc --yui-compress less/styles.less css/styles.min.css
|
||||
;;
|
||||
"3")
|
||||
echo 'creating minified and prefixed...'
|
||||
|
||||
# prefixed (-s overwrites existing file)
|
||||
prefixr --input ./css/styles.css -s
|
||||
|
||||
# copy to .min.css to create a minified version as well
|
||||
cp css/styles.css css/styles.min.css
|
||||
|
||||
# prefixed and minified (-s overwrites existing file)
|
||||
prefixr --input ./css/styles.min.css -s -c
|
||||
fi
|
||||
fi
|
||||
|
||||
;;
|
||||
*)
|
||||
echo 'catch-all'
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue