diff --git a/extras/animation.less b/extras/animation.less new file mode 100644 index 0000000..5991224 --- /dev/null +++ b/extras/animation.less @@ -0,0 +1,23 @@ +.animation(@value) { + -webkit-animation: @value; + -moz-animation: @value; + -ms-animation: @value; + -o-animation: @value; + animation: @value; +} + +.transition(@value) { + -webkit-transition: @value; + -moz-transition: @value; + -o-transition: @value; + -ms-transition: @value; + transition: @value; +} + +.transform(@value) { + -ms-transform: @value; + -moz-transform: @value; + -webkit-transform: @value; + -o-transform: @value; + transform: @value; +} diff --git a/extras/layout.less b/extras/layout.less new file mode 100644 index 0000000..9f8cb90 --- /dev/null +++ b/extras/layout.less @@ -0,0 +1,15 @@ +.absolute() { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + padding: 0; + margin: 0; +} + +.box-sizing(@value: border-box) { + -webkit-box-sizing: @value; + -moz-box-sizing: @value; + box-sizing: @value; +} diff --git a/extras/shadows.less b/extras/shadows.less new file mode 100644 index 0000000..14ea7c1 --- /dev/null +++ b/extras/shadows.less @@ -0,0 +1,5 @@ +.box-shadow(@value) { + -webkit-box-shadow: @value; + -moz-box-shadow: @value; + box-shadow: @value; +} diff --git a/index.less b/index.less new file mode 100644 index 0000000..8cd508c --- /dev/null +++ b/index.less @@ -0,0 +1,3 @@ +@import 'extras/animation'; +@import 'extras/layout'; +@import 'extras/shadows'; diff --git a/package.json b/package.json index e2b8406..fef9b96 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.less", "scripts": { "test": "npm run build", - "build": "lessc --silent index.less build.css && cleancss -d --s0 -o build.css build.css", + "build": "lessc --silent index.less build.css", + "test": "lessc --silent index.less build.css && cleancss -d --s0 -o build.css build.css", "clean": "rm -rf node_modules/ build.css" }, "repository": { diff --git a/test.less b/test.less new file mode 100644 index 0000000..77f06f0 --- /dev/null +++ b/test.less @@ -0,0 +1 @@ +@import 'index.less';