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

Commit

Permalink
Merge pull request #7 from koluku/develop
Browse files Browse the repository at this point in the history
ベンダープレフィックスの省略
  • Loading branch information
ueday committed Mar 13, 2014
2 parents 5939576 + 01d601e commit 5bb466e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
2 changes: 1 addition & 1 deletion boilerplate/boilerplate.less
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ a.keyword {
border: 1px solid @border;
.border-radius(3px);
width: 100%;
.border-box;
box-sizing: border-box;
position: relative;
}

Expand Down
26 changes: 2 additions & 24 deletions boilerplate/less/_mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
border-bottom-right-radius: @bottomright;
border-bottom-left-radius: @bottomleft;
border-top-left-radius: @topleft;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
background-clip: padding-box;
}

.border-radius(@radius: 5px) {
border-radius: @radius;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
background-clip: padding-box;
}

.gradient(@color: #F5F5F5, @start: #FFFFFF, @stop: #EEEEEE) {
Expand All @@ -57,50 +57,28 @@
filter: alpha(opacity=@ms-opacity);
}


.border-box {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}

.ellipsis {
white-space: nowrap;
-webkit-text-overflow: ellipsis;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden;
}

.transition(@duration:0.2s, @ease:ease-out) {
-webkit-transition: all @duration @ease;
-moz-transition: all @duration @ease;
transition: all @duration @ease;
}

.transition-duration(@duration: 0.2s) {
-moz-transition-duration: @duration;
-webkit-transition-duration: @duration;
transition-duration: @duration;
}

.rotation(@deg:5deg){
-webkit-transform: rotate(@deg);
-moz-transform: rotate(@deg);
transform: rotate(@deg);
}

.scale(@ratio:1.5){
-webkit-transform:scale(@ratio);
-moz-transform:scale(@ratio);
transform:scale(@ratio);
}

.translate(@x:0, @y:0) {
-moz-transform: translate(@x, @y);
-webkit-transform: translate(@x, @y);
-o-transform: translate(@x, @y);
-ms-transform: translate(@x, @y);
transform: translate(@x, @y);
}

0 comments on commit 5bb466e

Please sign in to comment.