Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

added calc support for width and height #6

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
31 changes: 31 additions & 0 deletions css3.less
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,17 @@
.transform(translate3d(0, 0, 0));
}

//
// animation
//
.animation(@animation) {
-webkit-animation: @animation;
-moz-animation: @animation;
-ms-animation: @animation;
-o-animation: @animation;
animation: @animation;
}

//
// Appearance
//
Expand All @@ -228,3 +239,23 @@
-moz-appearance: @appearance;
appearance: @appearance;
}

//
// Calc Width
//
.calc-width(@calc) {
width: -moz-calc(@calc);
width: -webkit-calc(@calc);
width: -o-calc(@calc);
width: calc(@calc);
}

//
// Calc Height
//
.calc-height(@calc) {
height: -moz-calc(@calc);
height: -webkit-calc(@calc);
height: -o-calc(@calc);
height: calc(@calc);
}