checkpoint mixin

This commit is contained in:
jtm
2012-03-06 20:32:43 +00:00
parent 4d43ba3674
commit 479897a8a3
4 changed files with 83 additions and 4 deletions

View File

@@ -0,0 +1,55 @@
#basic {
line-height: 3px;
line-height: 6px;
}
.idbasic {
line-height: 3px;
line-height: 6px;
}
#args {
color: red;
width: 1px;
}
#args_locals {
color: green;
width: 3px;
}
#local {
padding: 0;
color: red;
}
.scope-mix {
width: 8;
}
#hidden {
color: transparent;
color: transparent;
}
.both {
width: 15px;
height: 19%;
}
.one-arg {
width: 15px;
height: 49%;
}
.no-parens {
width: 5px;
height: 49%;
}
.no-args {
width: 5px;
height: 49%;
}
.arguments {
border: 1px solid black;
}
.arguments2 {
border: 1px;
}
.arguments3 {
border: 0px;
}
.arguments3 {
border: 1px solid red;
}

15
lesscpy/test/css/mixin-args.min.css vendored Normal file
View File

@@ -0,0 +1,15 @@
#basic{line-height:3px;line-height:6px;}
.idbasic{line-height:3px;line-height:6px;}
#args{color:red;width:1px;}
#args_locals{color:green;width:3px;}
#local{padding:0;color:red;}
.scope-mix{width:8;}
#hidden{color:transparent;color:transparent;}
.both{width:15px;height:19%;}
.one-arg{width:15px;height:49%;}
.no-parens{width:5px;height:49%;}
.no-args{width:5px;height:49%;}
.arguments{border:1px solid black;}
.arguments2{border:1px;}
.arguments3{border:0px;}
.arguments3{border:1px solid red;}

View File

@@ -0,0 +1,12 @@
/*
Chaining
*/
.a(@a) {
margin: @a;
}
.b(@b) {
.a(@b);
}
.c {
.b(3px);
}

View File

@@ -1,14 +1,11 @@
/*
Mixin-functions
*/
.empty () {}
#empty {
.empty();
.empty(red, 1px);
}
/*
*/
.basic(@a: 3px) {
line-height: @a;
}