Added node-modules

This commit is contained in:
Dobie Wollert
2014-09-14 07:04:16 -04:00
parent 663941bf57
commit 6a92348cf5
4870 changed files with 670395 additions and 0 deletions

3
node_modules/less/test/less/charsets.less generated vendored Normal file
View File

@ -0,0 +1,3 @@
@charset "UTF-8";
@import "import/import-charset-test";

92
node_modules/less/test/less/colors.less generated vendored Normal file
View File

@ -0,0 +1,92 @@
#yelow {
#short {
color: #fea;
}
#long {
color: #ffeeaa;
}
#rgba {
color: rgba(255, 238, 170, 0.1);
}
#argb {
color: argb(rgba(255, 238, 170, 0.1));
}
}
#blue {
#short {
color: #00f;
}
#long {
color: #0000ff;
}
#rgba {
color: rgba(0, 0, 255, 0.1);
}
#argb {
color: argb(rgba(0, 0, 255, 0.1));
}
}
#alpha #hsla {
color: hsla(11, 20%, 20%, 0.6);
}
#overflow {
.a { color: (#111111 - #444444); } // #000000
.b { color: (#eee + #fff); } // #ffffff
.c { color: (#aaa * 3); } // #ffffff
.d { color: (#00ee00 + #009900); } // #00ff00
}
#grey {
color: rgb(200, 200, 200);
}
#333333 {
color: rgb(20%, 20%, 20%);
}
#808080 {
color: hsl(50, 0%, 50%);
}
#00ff00 {
color: hsl(120, 100%, 50%);
}
.lightenblue {
color: lighten(blue, 10%);
}
.darkenblue {
color: darken(blue, 10%);
}
.unknowncolors {
color: blue2;
border: 2px solid superred;
}
.transparent {
color: transparent;
background-color: rgba(0, 0, 0, 0);
}
#alpha {
@colorvar: rgba(150, 200, 150, 0.7);
#fromvar {
opacity: alpha(@colorvar);
}
#short {
opacity: alpha(#aaa);
}
#long {
opacity: alpha(#bababa);
}
#rgba {
opacity: alpha(rgba(50, 120, 95, 0.2));
}
#hsl {
opacity: alpha(hsl(120, 100%, 50%));
}
}

77
node_modules/less/test/less/comments.less generated vendored Normal file
View File

@ -0,0 +1,77 @@
/******************\
* *
* Comment Header *
* *
\******************/
/*
Comment
*/
/*
* Comment Test
*
* - cloudhead (http://cloudhead.net)
*
*/
////////////////
@var: "content";
////////////////
/* Colors
* ------
* #EDF8FC (background blue)
* #166C89 (darkest blue)
*
* Text:
* #333 (standard text) // A comment within a comment!
* #1F9EC9 (standard link)
*
*/
/* @group Variables
------------------- */
#comments /* boo */ {
/**/ // An empty comment
color: red; /* A C-style comment */ /* A C-style comment */
background-color: orange; // A little comment
font-size: 12px;
/* lost comment */ content: @var;
border: 1px solid black;
// padding & margin //
padding: 0; // }{ '"
margin: 2em;
} //
/* commented out
#more-comments {
color: grey;
}
*/
.selector /* .with */, .lots, /* of */ .comments {
color: grey, /* blue */ orange;
-webkit-border-radius: 2px /* webkit only */;
-moz-border-radius: (2px * 4) /* moz only with operation */;
}
.mixin_def_with_colors(@a: white, // in
@b: 1px //put in @b - causes problems! --->
) // the
when (@a = white) {
.test {
color: @b;
}
}
.mixin_def_with_colors();
#last { color: blue }
//
/* *//* { *//* *//* *//* */#div { color:#A33; }/* } */

View File

@ -0,0 +1,16 @@
#colours {
color1: #fea;
color2: #ffeeaa;
color3: rgba(255, 238, 170, 0.1);
@color1: #fea;
string: "@{color1}";
}
dimensions {
val: 0.1px;
val: 0em;
val: 4cm;
val: 0.2;
val: 5;
angles-must-have-unit: 0deg;
width: auto\9;
}

114
node_modules/less/test/less/css-3.less generated vendored Normal file
View File

@ -0,0 +1,114 @@
.comma-delimited {
text-shadow: -1px -1px 1px red, 6px 5px 5px yellow;
-moz-box-shadow: 0pt 0pt 2px rgba(255, 255, 255, 0.4) inset,
0pt 4px 6px rgba(255, 255, 255, 0.4) inset;
-webkit-transform: rotate(-0.0000000001deg);
}
@font-face {
font-family: Headline;
unicode-range: U+??????, U+0???, U+0-7F, U+A5;
}
.other {
-moz-transform: translate(0, 11em) rotate(-90deg);
transform: rotateX(45deg);
}
.item[data-cra_zy-attr1b-ut3=bold] {
font-weight: bold;
}
p:not([class*="lead"]) {
color: black;
}
input[type="text"].class#id[attr=32]:not(1) {
color: white;
}
div#id.class[a=1][b=2].class:not(1) {
color: white;
}
ul.comma > li:not(:only-child)::after {
color: white;
}
ol.comma > li:nth-last-child(2)::after {
color: white;
}
li:nth-child(4n+1),
li:nth-child(-5n),
li:nth-child(-n+2) {
color: white;
}
a[href^="http://"] {
color: black;
}
a[href$="http://"] {
color: black;
}
form[data-disabled] {
color: black;
}
p::before {
color: black;
}
#issue322 {
-webkit-animation: anim2 7s infinite ease-in-out;
}
@-webkit-keyframes frames {
0% { border: 1px }
5.5% { border: 2px }
100% { border: 3px }
}
@keyframes fontbulger1 {
to {
font-size: 15px;
}
from,to {
font-size: 12px;
}
0%,100% {
font-size: 12px;
}
}
.units {
font: 1.2rem/2rem;
font: 8vw/9vw;
font: 10vh/12vh;
font: 12vm/15vm;
font: 12vmin/15vmin;
font: 1.2ch/1.5ch;
}
@supports ( box-shadow: 2px 2px 2px black ) or
( -moz-box-shadow: 2px 2px 2px black ) {
.outline {
box-shadow: 2px 2px 2px black;
-moz-box-shadow: 2px 2px 2px black;
}
}
@-x-document url-prefix(""github.com"") {
h1 {
color: red;
}
}
@viewport {
font-size: 10px;
}
@namespace foo url(http://www.example.com);
foo|h1 { color: blue; }
foo|* { color: yellow; }
|h1 { color: red; }
*|h1 { color: green; }
h1 { color: green; }

33
node_modules/less/test/less/css-escapes.less generated vendored Normal file
View File

@ -0,0 +1,33 @@
@ugly: fuchsia;
.escape\|random\|char {
color: red;
}
.mixin\!tUp {
font-weight: bold;
}
// class="404"
.\34 04 {
background: red;
strong {
color: @ugly;
.mixin\!tUp;
}
}
.trailingTest\+ {
color: red;
}
/* This hideous test of hideousness checks for the selector "blockquote" with various permutations of hex escapes */
\62\6c\6f \63 \6B \0071 \000075o\74 e {
color: silver;
}
[ng\:cloak],
ng\:form {
display: none;
}

108
node_modules/less/test/less/css.less generated vendored Normal file
View File

@ -0,0 +1,108 @@
@charset "utf-8";
div { color: black; }
div { width: 99%; }
* {
min-width: 45em;
}
h1, h2 > a > p, h3 {
color: none;
}
div.class {
color: blue;
}
div#id {
color: green;
}
.class#id {
color: purple;
}
.one.two.three {
color: grey;
}
@media print {
* {
font-size: 3em;
}
}
@media screen {
* {
font-size: 10px;
}
}
@font-face {
font-family: 'Garamond Pro';
}
a:hover, a:link {
color: #999;
}
p, p:first-child {
text-transform: none;
}
q:lang(no) {
quotes: none;
}
p + h1 {
font-size: +2.2em;
}
#shorthands {
border: 1px solid #000;
font: 12px/16px Arial;
font: 100%/16px Arial;
margin: 1px 0;
padding: 0 auto;
}
#more-shorthands {
margin: 0;
padding: 1px 0 2px 0;
font: normal small/20px 'Trebuchet MS', Verdana, sans-serif;
font: 0/0 a;
border-radius: 5px / 10px;
}
.misc {
-moz-border-radius: 2px;
display: -moz-inline-stack;
width: .1em;
background-color: #009998;
background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
margin: ;
.nested-multiple {
multiple-semi-colons: yes;;;;;;
};
filter: alpha(opacity=100);
width: auto\9;
}
#important {
color: red !important;
width: 100%!important;
height: 20px ! important;
}
.def-font(@name) {
@font-face {
font-family: @name
}
}
.def-font(font-a);
.def-font(font-b);
.æøå {
margin: 0;
}

25
node_modules/less/test/less/debug/import/test.less generated vendored Normal file
View File

@ -0,0 +1,25 @@
@charset "ISO-8859-1";
.mixin_import1() {
@media all {
.tst {
color: black;
@media screen {
color: red;
.tst3 {
color: white;
}
}
}
}
}
.mixin_import2() {
.tst2 {
color: white;
}
}
.tst3 {
color: grey;
}

23
node_modules/less/test/less/debug/linenumbers.less generated vendored Normal file
View File

@ -0,0 +1,23 @@
@charset "UTF-8";
@import "import/test.less";
.start() {
.test2 {
color: red;
}
}
.mix() {
color: black;
}
.test1 {
.mix();
}
.start();
.mixin_import1();
.mixin_import2();

View File

@ -0,0 +1,3 @@
.a {
error: (1px + 3em);
}

View File

@ -0,0 +1,2 @@
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px' and 'em'. in {path}add-mixed-units.less on line null, column 0:
1 error: (1px + 3em);

View File

@ -0,0 +1,3 @@
.a {
error: ((1px * 2px) + (3em * 3px));
}

View File

@ -0,0 +1,2 @@
SyntaxError: Incompatible units. Change the units or use the unit function. Bad units: 'px*px' and 'em*px'. in {path}add-mixed-units2.less on line null, column 0:
1 error: ((1px * 2px) + (3em * 3px));

View File

@ -0,0 +1 @@
@@demo: "hi";

View File

@ -0,0 +1,2 @@
ParseError: Unrecognised input in {path}bad-variable-declaration1.less on line 1, column 1:
1 @@demo: "hi";

View File

@ -0,0 +1,3 @@
.a {
prop: (3 / #fff);
}

View File

@ -0,0 +1,2 @@
OperationError: Can't substract or divide a color from a number in {path}color-operation-error.less on line null, column 0:
1 prop: (3 / #fff);

View File

@ -0,0 +1 @@
#gaga /* Comment */ span { color: red }

View File

@ -0,0 +1,2 @@
ParseError: Unrecognised input in {path}comment-in-selector.less on line 1, column 21:
1 #gaga /* Comment */ span { color: red }

View File

@ -0,0 +1,3 @@
.a {
error: (1px / 3em);
}

View File

@ -0,0 +1,4 @@
SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: px/em in {path}divide-mixed-units.less on line 2, column 3:
1 .a {
2 error: (1px / 3em);
3 }

View File

@ -0,0 +1,3 @@
:extend(.a all) {
property: red;
}

View File

@ -0,0 +1,3 @@
SyntaxError: Extend must be used to extend a selector, it cannot be used on its own in {path}extend-no-selector.less on line 1, column 17:
1 :extend(.a all) {
2 property: red;

View File

@ -0,0 +1,3 @@
.a:extend(.b all).c {
property: red;
}

View File

@ -0,0 +1,3 @@
SyntaxError: Extend can only be used at the end of selector in {path}extend-not-at-end.less on line 1, column 21:
1 .a:extend(.b all).c {
2 property: red;

View File

@ -0,0 +1,6 @@
.a {
color: green;
// tests line number for import reference is correct
}
@import "file-does-not-exist.less";

View File

@ -0,0 +1,3 @@
FileError: '{pathhref}file-does-not-exist.less' wasn't found{404status} in {path}import-missing.less on line 6, column 1:
5
6 @import "file-does-not-exist.less";

View File

@ -0,0 +1 @@
@import "this-statement-is-invalid.less"

View File

@ -0,0 +1,2 @@
ParseError: Unrecognised input in {path}import-no-semi.less on line 1, column 1:
1 @import "this-statement-is-invalid.less"

View File

@ -0,0 +1 @@
@import "imports/import-subfolder1.less";

View File

@ -0,0 +1,3 @@
NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1:
10
11 .mixin-not-defined();

View File

@ -0,0 +1 @@
@import "imports/import-subfolder2.less";

View File

@ -0,0 +1,2 @@
ParseError: missing opening `{` in {path}parse-error-curly-bracket.less on line 1, column 2:
1 }}

View File

@ -0,0 +1 @@
@import "subfolder/mixin-not-defined.less";

View File

@ -0,0 +1 @@
@import "subfolder/parse-error-curly-bracket.less";

View File

@ -0,0 +1,4 @@
.someclass
{
font-weight: bold;
}

View File

@ -0,0 +1 @@
@import "../../mixin-not-defined.less";

View File

@ -0,0 +1 @@
@import "../../parse-error-curly-bracket.less";

View File

@ -0,0 +1,3 @@
.scope {
var: `this.foo.toJS()`;
}

View File

@ -0,0 +1,4 @@
SyntaxError: JavaScript evaluation error: 'TypeError: Cannot call method 'toJS' of undefined' in {path}javascript-error.less on line 2, column 27:
1 .scope {
2 var: `this.foo.toJS()`;
3 }

View File

@ -0,0 +1,6 @@
.mixin(@a : 4, @b : 3, @c: 2) {
will: fail;
}
.mixin-test {
.mixin(@a: 5; @b: 6, @c: 7);
}

View File

@ -0,0 +1,4 @@
SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-1.less on line 5, column 30:
4 .mixin-test {
5 .mixin(@a: 5; @b: 6, @c: 7);
6 }

View File

@ -0,0 +1,6 @@
.mixin(@a : 4, @b : 3, @c: 2) {
will: fail;
}
.mixin-test {
.mixin(@a: 5, @b: 6; @c: 7);
}

View File

@ -0,0 +1,4 @@
SyntaxError: Cannot mix ; and , as delimiter types in {path}mixed-mixin-definition-args-2.less on line 5, column 26:
4 .mixin-test {
5 .mixin(@a: 5, @b: 6; @c: 7);
6 }

View File

@ -0,0 +1,11 @@
.error-is-further-on() {
}
.pad-here-to-reproduce-error-in() {
}
.the-import-subfolder-test() {
}
.mixin-not-defined();

View File

@ -0,0 +1,3 @@
NameError: .mixin-not-defined is undefined in {path}mixin-not-defined.less on line 11, column 1:
10
11 .mixin-not-defined();

View File

@ -0,0 +1,6 @@
@saxofon:trumpete;
.mixin(saxofon) {
}
.mixin(@saxofon);

View File

@ -0,0 +1,3 @@
RuntimeError: No matching definition was found for `.mixin(trumpete)` in {path}mixin-not-matched.less on line 6, column 1:
5
6 .mixin(@saxofon);

View File

@ -0,0 +1,6 @@
@saxofon:trumpete;
.mixin(@a, @b) {
}
.mixin(@a: @saxofon);

View File

@ -0,0 +1,3 @@
RuntimeError: No matching definition was found for `.mixin(@a:trumpete)` in {path}mixin-not-matched2.less on line 6, column 1:
5
6 .mixin(@a: @saxofon);

View File

@ -0,0 +1,7 @@
/* Test */
#blah {
// blah
}
.a {
error: (1px * 1em);
}

View File

@ -0,0 +1,4 @@
SyntaxError: Multiple units in dimension. Correct the units or use the unit function. Bad unit: em*px in {path}multiply-mixed-units.less on line 6, column 3:
5 .a {
6 error: (1px * 1em);
7 }

View File

@ -0,0 +1,3 @@
.a {
something: (12 (13 + 5 -23) + 5);
}

View File

@ -0,0 +1,4 @@
SyntaxError: expected ')' got '(' in {path}parens-error-1.less on line 2, column 18:
1 .a {
2 something: (12 (13 + 5 -23) + 5);
3 }

View File

@ -0,0 +1,3 @@
.a {
something: (12 * (13 + 5 -23));
}

View File

@ -0,0 +1,4 @@
SyntaxError: expected ')' got '-' in {path}parens-error-2.less on line 2, column 28:
1 .a {
2 something: (12 * (13 + 5 -23));
3 }

View File

@ -0,0 +1,3 @@
.a {
something: (12 + (13 + 10 -23));
}

View File

@ -0,0 +1,4 @@
SyntaxError: expected ')' got '-' in {path}parens-error-3.less on line 2, column 29:
1 .a {
2 something: (12 + (13 + 10 -23));
3 }

View File

@ -0,0 +1 @@
}}

View File

@ -0,0 +1,2 @@
ParseError: missing opening `{` in {path}parse-error-curly-bracket.less on line 1, column 2:
1 }}

View File

@ -0,0 +1,2 @@
body {
background-color: #fff;

View File

@ -0,0 +1,3 @@
ParseError: missing closing `}` in {path}parse-error-missing-bracket.less on line 3, column 1:
2 background-color: #fff;
3

View File

@ -0,0 +1,13 @@
@import 'import/import-test.less';
body
{
font-family: arial, sans-serif;
}
nonsense;
.clickable
{
cursor: pointer;
}

View File

@ -0,0 +1,4 @@
ParseError: Unrecognised input in {path}parse-error-with-import.less on line 8, column 9:
7
8 nonsense;
9

View File

@ -0,0 +1,3 @@
.test {
display/*/: block; /*sorry for IE5*/
}

View File

@ -0,0 +1,4 @@
ParseError: Unrecognised input in {path}property-ie5-hack.less on line 2, column 3:
1 .test {
2 display/*/: block; /*sorry for IE5*/
3 }

View File

@ -0,0 +1,4 @@
.a() {
prop:1;
}
.a();

View File

@ -0,0 +1,4 @@
SyntaxError: properties must be inside selector blocks, they cannot be in the root. in {path}property-in-root.less on line 2, column 3:
1 .a() {
2 prop:1;
3 }

View File

@ -0,0 +1 @@
@import "property-in-root";

View File

@ -0,0 +1,4 @@
SyntaxError: properties must be inside selector blocks, they cannot be in the root. in {path}property-in-root.less on line 2, column 3:
1 .a() {
2 prop:1;
3 }

View File

@ -0,0 +1,4 @@
prop:1;
.a {
prop:1;
}

View File

@ -0,0 +1,3 @@
SyntaxError: properties must be inside selector blocks, they cannot be in the root. in {path}property-in-root3.less on line 1, column 1:
1 prop:1;
2 .a {

View File

@ -0,0 +1 @@
@bodyColor: darken(@bodyColor, 30%);

View File

@ -0,0 +1,2 @@
NameError: Recursive variable definition for @bodyColor in {path}recursive-variable.less on line 1, column 20:
1 @bodyColor: darken(@bodyColor, 30%);

79
node_modules/less/test/less/extend-chaining.less generated vendored Normal file
View File

@ -0,0 +1,79 @@
//very simple chaining
.a {
color: black;
}
.b:extend(.a) {}
.c:extend(.b) {}
//very simple chaining, ordering not important
.d:extend(.e) {}
.e:extend(.f) {}
.f {
color: black;
}
//extend with all
.g.h {
color: black;
}
.i.j:extend(.g all) {
color: white;
}
.k:extend(.i all) {}
//extend multi-chaining
.l {
color: black;
}
.m:extend(.l){}
.n:extend(.m){}
.o:extend(.n){}
.p:extend(.o){}
.q:extend(.p){}
.r:extend(.q){}
.s:extend(.r){}
.t:extend(.s){}
// self referencing is ignored
.u {color: black;}
.v.u.v:extend(.u all){}
// circular reference because the new extend product will match the existing extend
.w:extend(.w) {color: black;}
.v.w.v:extend(.w all){}
// classic circular references
.x:extend(.z) {
color: x;
}
.y:extend(.x) {
color: y;
}
.z:extend(.y) {
color: z;
}
// media queries - dont extend outside, do extend inside
@media tv {
.ma:extend(.a,.b,.c,.d,.e,.f,.g,.h,.i,.j,.k,.l,.m,.n,.o,.p,.q,.r,.s,.t,.u,.v,.w,.x,.y,.z,.md) {
color: black;
}
.md {
color: white;
}
@media plasma {
.me, .mf {
&:extend(.mb,.md);
background: red;
}
}
}
.mb:extend(.ma) {};
.mc:extend(.mb) {};

19
node_modules/less/test/less/extend-clearfix.less generated vendored Normal file
View File

@ -0,0 +1,19 @@
.clearfix {
*zoom: 1;
&:after {
content: '';
display: block;
clear: both;
height: 0;
}
}
.foo {
&:extend(.clearfix all);
color: red;
}
.bar {
&:extend(.clearfix all);
color: blue;
}

46
node_modules/less/test/less/extend-exact.less generated vendored Normal file
View File

@ -0,0 +1,46 @@
.replace.replace,
.c.replace + .replace {
.replace,
.c {
prop: copy-paste-replace;
}
}
.rep_ace:extend(.replace.replace .replace) {}
.a .b .c {
prop: not_effected;
}
.a {
prop: is_effected;
.b {
prop: not_effected;
}
.b.c {
prop: not_effected;
}
}
.c, .a {
.b, .a {
.a, .c {
prop: not_effected;
}
}
}
.effected {
&:extend(.a);
&:extend(.b);
&:extend(.c);
}
.e {
&& {
prop: extend-double;
&:hover {
hover: not-extended;
}
}
}
.dbl:extend(.e.e) {}

24
node_modules/less/test/less/extend-media.less generated vendored Normal file
View File

@ -0,0 +1,24 @@
.ext1 .ext2 {
background: black;
}
@media tv {
.ext1 .ext3 {
color: white;
}
.tv-lowres :extend(.ext1 all) {
background: blue;
}
@media hires {
.ext1 .ext4 {
color: green;
}
.tv-hires :extend(.ext1 all) {
background: red;
}
}
}
.all:extend(.ext1 all) {
}

65
node_modules/less/test/less/extend-nest.less generated vendored Normal file
View File

@ -0,0 +1,65 @@
.sidebar {
width: 300px;
background: red;
.box {
background: #FFF;
border: 1px solid #000;
margin: 10px 0;
}
}
.sidebar2 {
&:extend(.sidebar all);
background: blue;
}
.type1 {
.sidebar3 {
&:extend(.sidebar all);
background: green;
}
}
.type2 {
&.sidebar4 {
&:extend(.sidebar all);
background: red;
}
}
.button {
color: black;
&:hover {
color: white;
}
}
.submit {
&:extend(.button);
&:hover:extend(.button:hover) {}
}
.nomatch {
&:hover:extend(.button :hover) {}
}
.button2 {
:hover {
nested: white;
}
}
.button2 :hover {
notnested: black;
}
.nomatch :extend(.button2:hover) {}
.amp-test-a,
.amp-test-b {
.amp-test-c &.amp-test-d&.amp-test-e {
.amp-test-f&+&.amp-test-g:extend(.amp-test-h) {}
}
}
.amp-test-h {
test: extended by masses of selectors;
}

84
node_modules/less/test/less/extend-selector.less generated vendored Normal file
View File

@ -0,0 +1,84 @@
.error {
border: 1px #f00;
background: #fdd;
}
.error.intrusion {
font-size: 1.3em;
font-weight: bold;
}
.intrusion .error {
display: none;
}
.badError:extend(.error all) {
border-width: 3px;
}
.foo .bar, .foo .baz {
display: none;
}
.ext1 .ext2
:extend(.foo all) {
}
.ext3:extend(.foo all),
.ext4:extend(.foo all) {
}
div.ext5,
.ext6 > .ext5 {
width: 100px;
}
.should-not-exist-in-output,
.ext7:extend(.ext5 all) {
}
.ext {
test: 1;
}
// same as
// .a .c:extend(.ext all)
// .b .c:extend(.ext all)
// .a .c .d
// .b .c .d
.a, .b {
test: 2;
.c:extend(.ext all) {
test: 3;
.d {
test: 4;
}
}
}
.replace.replace,
.c.replace + .replace {
.replace,
.c {
prop: copy-paste-replace;
}
}
.rep_ace:extend(.replace all) {}
.attributes {
[data="test"] {
extend: attributes;
}
.attribute-test {
&:extend([data="test"] all);
}
[data] {
extend: attributes2;
}
.attribute-test2 {
&:extend([data] all); //you could argue it should match [data="test"]... not for now though...
}
@attr-data: "test3";
[data=@{attr-data}] {
extend: attributes2;
}
.attribute-test {
&:extend([data="test3"] all);
}
}

81
node_modules/less/test/less/extend.less generated vendored Normal file
View File

@ -0,0 +1,81 @@
.error {
border: 1px #f00;
background: #fdd;
}
.error.intrusion {
font-size: 1.3em;
font-weight: bold;
}
.intrusion .error {
display: none;
}
.badError {
&:extend(.error all);
border-width: 3px;
}
.foo .bar, .foo .baz {
display: none;
}
.ext1 .ext2 {
&:extend(.foo all);
}
.ext3,
.ext4 {
&:extend(.foo all);
&:extend(.bar all);
}
div.ext5,
.ext6 > .ext5 {
width: 100px;
}
.ext7 {
&:extend(.ext5 all);
}
.ext8.ext9 {
result: add-foo;
}
.ext8 .ext9,
.ext8 + .ext9,
.ext8 > .ext9 {
result: bar-matched;
}
.ext8.nomatch {
result: none;
}
.ext8 {
.ext9 {
result: match-nested-bar;
}
}
.ext8 {
&.ext9 {
result: match-nested-foo;
}
}
.fuu:extend(.ext8.ext9 all) {}
.buu:extend(.ext8 .ext9 all) {}
.zap:extend(.ext8 + .ext9 all) {}
.zoo:extend(.ext8 > .ext9 all) {}
.aa {
color: black;
.dd {
background: red;
}
}
.bb {
background: red;
.bb {
color: black;
}
}
.cc:extend(.aa,.bb) {}
.ee:extend(.dd all,.bb) {}
.ff:extend(.dd,.bb all) {}

142
node_modules/less/test/less/functions.less generated vendored Normal file
View File

@ -0,0 +1,142 @@
#functions {
@var: 10;
@colors: #000, #fff;
color: _color("evil red"); // #660000
width: increment(15);
height: undefined("self");
border-width: add(2, 3);
variable: increment(@var);
background: linear-gradient(@colors);
}
#built-in {
@r: 32;
escaped: e("-Some::weird(#thing, y)");
lighten: lighten(#ff0000, 40%);
darken: darken(#ff0000, 40%);
saturate: saturate(#29332f, 20%);
desaturate: desaturate(#203c31, 20%);
greyscale: greyscale(#203c31);
hsl-clamp: hsl(380, 150%, 150%);
spin-p: spin(hsl(340, 50%, 50%), 40);
spin-n: spin(hsl(30, 50%, 50%), -40);
luma-white: luma(#fff);
luma-black: luma(#000);
luma-black-alpha: luma(rgba(0,0,0,0.5));
luma-red: luma(#ff0000);
luma-green: luma(#00ff00);
luma-blue: luma(#0000ff);
luma-yellow: luma(#ffff00);
luma-cyan: luma(#00ffff);
luma-white-alpha: luma(rgba(255,255,255,0.5));
contrast-filter: contrast(30%);
contrast-white: contrast(#fff);
contrast-black: contrast(#000);
contrast-red: contrast(#ff0000);
contrast-green: contrast(#00ff00);
contrast-blue: contrast(#0000ff);
contrast-yellow: contrast(#ffff00);
contrast-cyan: contrast(#00ffff);
contrast-light: contrast(#fff, #111111, #eeeeee);
contrast-dark: contrast(#000, #111111, #eeeeee);
contrast-wrongorder: contrast(#fff, #eeeeee, #111111, 0.5);
contrast-light-thresh: contrast(#fff, #111111, #eeeeee, 0.5);
contrast-dark-thresh: contrast(#000, #111111, #eeeeee, 0.5);
contrast-high-thresh: contrast(#555, #111111, #eeeeee, 0.6);
contrast-low-thresh: contrast(#555, #111111, #eeeeee, 0.1);
contrast-light-thresh-per: contrast(#fff, #111111, #eeeeee, 50%);
contrast-dark-thresh-per: contrast(#000, #111111, #eeeeee, 50%);
contrast-high-thresh-per: contrast(#555, #111111, #eeeeee, 60%);
contrast-low-thresh-per: contrast(#555, #111111, #eeeeee, 10%);
format: %("rgb(%d, %d, %d)", @r, 128, 64);
format-string: %("hello %s", "world");
format-multiple: %("hello %s %d", "earth", 2);
format-url-encode: %('red is %A', #ff0000);
eformat: e(%("rgb(%d, %d, %d)", @r, 128, 64));
unitless: unit(12px);
unit: unit((13px + 1px), em);
hue: hue(hsl(98, 12%, 95%));
saturation: saturation(hsl(98, 12%, 95%));
lightness: lightness(hsl(98, 12%, 95%));
hsvhue: hsvhue(hsv(98, 12%, 95%));
hsvsaturation: hsvsaturation(hsv(98, 12%, 95%));
hsvvalue: hsvvalue(hsv(98, 12%, 95%));
red: red(#f00);
green: green(#0f0);
blue: blue(#00f);
rounded: round((@r/3));
rounded-two: round((@r/3), 2);
roundedpx: round((10px / 3));
roundedpx-three: round((10px / 3), 3);
rounded-percentage: round(10.2%);
ceil: ceil(10.1px);
floor: floor(12.9px);
sqrt: sqrt(25px);
pi: pi();
mod: mod(13m, 11cm); // could take into account units, doesn't at the moment
abs: abs(-4%);
tan: tan(42deg);
sin: sin(10deg);
cos: cos(12);
atan: atan(tan(0.1rad));
atan: convert(acos(cos(34deg)), deg);
atan: convert(acos(cos(50grad)), deg);
pow: pow(8px, 2);
pow: pow(4, 3);
pow: pow(3, 3em);
percentage: percentage((10px / 50));
color: color("#ff0011");
tint: tint(#777777, 13);
tint-full: tint(#777777, 100);
tint-percent: tint(#777777, 13%);
shade: shade(#777777, 13);
shade-full: shade(#777777, 100);
shade-percent: shade(#777777, 13%);
fade-out: fadeOut(red, 5%); // support fadeOut and fadeout
fade-in: fadein(fadeout(red, 10%), 5%);
hsv: hsv(5, 50%, 30%);
hsva: hsva(3, 50%, 30%, 0.2);
mix: mix(#ff0000, #ffff00, 80);
mix-0: mix(#ff0000, #ffff00, 0);
mix-100: mix(#ff0000, #ffff00, 100);
mix-weightless: mix(#ff0000, #ffff00);
.is-a {
color: iscolor(#ddd);
color1: iscolor(red);
color2: iscolor(rgb(0, 0, 0));
keyword: iskeyword(hello);
number: isnumber(32);
string: isstring("hello");
pixel: ispixel(32px);
percent: ispercentage(32%);
em: isem(32em);
cat: isunit(32cat, cat);
}
}
#alpha {
alpha: darken(hsla(25, 50%, 50%, 0.6), 10%);
}
#blendmodes {
multiply: multiply(#f60000, #f60000);
screen: screen(#f60000, #0000f6);
overlay: overlay(#f60000, #0000f6);
softlight: softlight(#f60000, #ffffff);
hardlight: hardlight(#f60000, #0000f6);
difference: difference(#f60000, #0000f6);
exclusion: exclusion(#f60000, #0000f6);
average: average(#f60000, #0000f6);
negation: negation(#f60000, #313131);
}
#extract {
@anon: A B C 1 2 3;
result: extract(@anon, 6) extract(@anon, 5) extract(@anon, 4) extract(@anon, 3) extract(@anon, 2) extract(@anon, 1);
}

15
node_modules/less/test/less/ie-filters.less generated vendored Normal file
View File

@ -0,0 +1,15 @@
@fat: 0;
@cloudhead: "#000000";
.nav {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity = 20);
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=@fat);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#333333", endColorstr=@cloudhead, GradientType=@fat);
}
.evalTest(@arg) {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=@arg);
}
.evalTest1 {
.evalTest(30);
.evalTest(5);
}

View File

@ -0,0 +1,8 @@
@my_theme: "test";
@import "import/import-@{my_theme}-e.less";
@import "import/import-@{in}@{terpolation}.less";
@in: "in";
@terpolation: "terpolation";

4
node_modules/less/test/less/import-once.less generated vendored Normal file
View File

@ -0,0 +1,4 @@
@import "import/import-once-test-c";
@import "import/import-once-test-c";
@import "import/import-once-test-c.less";
@import "import/deeper/import-once-test-a";

21
node_modules/less/test/less/import.less generated vendored Normal file
View File

@ -0,0 +1,21 @@
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
@import url(/absolute/something.css) screen and (color) and (max-width: 600px);
@var: 100px;
@import url("//ha.com/file.css") (min-width:@var);
#import-test {
.mixin;
width: 10px;
height: (@a + 10%);
}
@import "import/import-test-e" screen and (max-width: 600px);
@import url("import/import-test-a.less");
@import (less, multiple) "import/import-test-d.css" screen and (max-width: 601px);
@import (multiple) "import/import-test-e" screen and (max-width: 602px);
@import (less, multiple) url("import/import-test-d.css") screen and (max-width: 603px);

View File

@ -0,0 +1 @@
@import "../import-once-test-c";

View File

@ -0,0 +1,6 @@
@import "../css/background.css";
@import "import-test-d.css";
@import "imports/logo";
@import "imports/font";

View File

@ -0,0 +1 @@
@charset "ISO-8859-1";

View File

@ -0,0 +1 @@
@import "import-@{in}@{terpolation}2.less";

View File

@ -0,0 +1,5 @@
.a {
var: test;
}
@in: "redefined-does-nothing";

View File

@ -0,0 +1,6 @@
@c: red;
#import {
color: @c;
}

View File

@ -0,0 +1,3 @@
@import "import-test-b.less";
@a: 20%;
@import "urls.less";

View File

@ -0,0 +1,8 @@
@import "import-test-c";
@b: 100%;
.mixin {
height: 10px;
color: @c;
}

View File

@ -0,0 +1,6 @@
@c: red;
#import {
color: @c;
}

1
node_modules/less/test/less/import/import-test-d.css generated vendored Normal file
View File

@ -0,0 +1 @@
#css { color: yellow; }

View File

@ -0,0 +1,2 @@
body { width: 100% }

8
node_modules/less/test/less/import/imports/font.less generated vendored Normal file
View File

@ -0,0 +1,8 @@
@font-face {
font-family: xecret;
src: url('../assets/xecret.ttf');
}
#secret {
font-family: xecret, sans-serif;
}

5
node_modules/less/test/less/import/imports/logo.less generated vendored Normal file
View File

@ -0,0 +1,5 @@
#logo {
width: 100px;
height: 100px;
background: url('../assets/logo.png');
}

1
node_modules/less/test/less/import/urls.less generated vendored Normal file
View File

@ -0,0 +1 @@
// empty file showing that it loads from the relative path first

Some files were not shown because too many files have changed in this diff Show More