checkpoint mixin
This commit is contained in:
55
lesscpy/test/css/mixin-args.css
Normal file
55
lesscpy/test/css/mixin-args.css
Normal 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
15
lesscpy/test/css/mixin-args.min.css
vendored
Normal 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;}
|
||||
12
lesscpy/test/less/issues/mixins-chain.less
Normal file
12
lesscpy/test/less/issues/mixins-chain.less
Normal file
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
Chaining
|
||||
*/
|
||||
.a(@a) {
|
||||
margin: @a;
|
||||
}
|
||||
.b(@b) {
|
||||
.a(@b);
|
||||
}
|
||||
.c {
|
||||
.b(3px);
|
||||
}
|
||||
@@ -1,14 +1,11 @@
|
||||
/*
|
||||
|
||||
Mixin-functions
|
||||
*/
|
||||
.empty () {}
|
||||
#empty {
|
||||
.empty();
|
||||
.empty(red, 1px);
|
||||
}
|
||||
/*
|
||||
|
||||
*/
|
||||
.basic(@a: 3px) {
|
||||
line-height: @a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user