mirror of
https://github.com/less/less.js.git
synced 2026-02-09 06:25:24 -05:00
More consistent named colour variables.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
.test {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
color: gainsboro;
|
||||
}
|
||||
.test {
|
||||
color1: #008000;
|
||||
color2: #800080;
|
||||
color1: green;
|
||||
color2: purple;
|
||||
scalar: 20;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
.selector,
|
||||
.lots,
|
||||
.comments {
|
||||
color: #808080, /* blue */ #ffa500;
|
||||
color: grey, /* blue */ orange;
|
||||
-webkit-border-radius: 2px /* webkit only */;
|
||||
-moz-border-radius: 8px /* moz only with operation */;
|
||||
}
|
||||
@@ -56,7 +56,7 @@
|
||||
color: 1px;
|
||||
}
|
||||
#last {
|
||||
color: #0000ff;
|
||||
color: blue;
|
||||
}
|
||||
/* */
|
||||
/* { */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.comma-delimited {
|
||||
text-shadow: -1px -1px 1px #ff0000, 6px 5px 5px #ffff00;
|
||||
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(0deg);
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
background: red;
|
||||
}
|
||||
.\34 04 strong {
|
||||
color: #ff00ff;
|
||||
color: fuchsia;
|
||||
font-weight: bold;
|
||||
}
|
||||
.trailingTest\+ {
|
||||
|
||||
@@ -71,7 +71,7 @@ p + h1 {
|
||||
display: -moz-inline-stack;
|
||||
width: .1em;
|
||||
background-color: #009998;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#ff0000), to(#0000ff));
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(red), to(blue));
|
||||
margin: ;
|
||||
filter: alpha(opacity=100);
|
||||
width: auto\9;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
name-value: name;
|
||||
string-value: "string";
|
||||
number-value: 12345678;
|
||||
color-value: #0000ff;
|
||||
color-value: blue;
|
||||
rgba-value: rgba(80, 160, 240, 0.67);
|
||||
empty-value: ;
|
||||
name-length: 1;
|
||||
|
||||
@@ -87,7 +87,10 @@
|
||||
max: 3;
|
||||
max: max(8%, 1cm);
|
||||
percentage: 20%;
|
||||
color: #ff0011;
|
||||
color-quoted-digit: #dda0dd;
|
||||
color-quoted-keyword: #dda0dd;
|
||||
color-color: #dda0dd;
|
||||
color-keyword: #dda0dd;
|
||||
tint: #898989;
|
||||
tint-full: #ffffff;
|
||||
tint-percent: #898989;
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
* Test
|
||||
*/
|
||||
.class {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#import {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
body {
|
||||
width: 100%;
|
||||
|
||||
6
test/css/import.css
vendored
6
test/css/import.css
vendored
@@ -3,7 +3,7 @@
|
||||
@import url("//ha.com/file.css") (min-width: 100px);
|
||||
#import-test {
|
||||
height: 10px;
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
width: 10px;
|
||||
height: 30%;
|
||||
}
|
||||
@@ -13,11 +13,11 @@
|
||||
}
|
||||
}
|
||||
#import {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
.mixin {
|
||||
height: 10px;
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
@media screen and (max-width: 601px) {
|
||||
#css {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
color: blue;
|
||||
width: 10px;
|
||||
height: 99%;
|
||||
border: 2px dotted #000000;
|
||||
border: 2px dotted black;
|
||||
}
|
||||
.one-arg {
|
||||
width: 15px;
|
||||
@@ -52,7 +52,7 @@ body {
|
||||
width: 10px;
|
||||
}
|
||||
.arguments {
|
||||
border: 1px solid #000000;
|
||||
border: 1px solid black;
|
||||
width: 1px;
|
||||
}
|
||||
.arguments2 {
|
||||
|
||||
@@ -96,10 +96,10 @@ guard-default-multi-2-3 {
|
||||
default-3: 3;
|
||||
}
|
||||
guard-default-multi-3-blue {
|
||||
case-2: #00008b;
|
||||
case-2: darkblue;
|
||||
}
|
||||
guard-default-multi-3-green {
|
||||
default-color: #008000;
|
||||
default-color: green;
|
||||
}
|
||||
guard-default-multi-3-foo {
|
||||
case-1: I am 'foo';
|
||||
|
||||
@@ -62,9 +62,9 @@
|
||||
test: pass;
|
||||
}
|
||||
.colorguardtest {
|
||||
content: is #ff0000;
|
||||
content: is not #0000ff its #ff0000;
|
||||
content: is not #0000ff its #800080;
|
||||
content: is red;
|
||||
content: is not blue its red;
|
||||
content: is not blue its purple;
|
||||
}
|
||||
.stringguardtest {
|
||||
content: is theme1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.parens {
|
||||
border: 2px solid #000000;
|
||||
border: 2px solid black;
|
||||
margin: 1px 3px 16 3;
|
||||
width: 36;
|
||||
padding: 2px 36px;
|
||||
|
||||
@@ -2,19 +2,19 @@
|
||||
color: #998899;
|
||||
}
|
||||
.scope1 {
|
||||
color: #0000ff;
|
||||
border-color: #000000;
|
||||
color: blue;
|
||||
border-color: black;
|
||||
}
|
||||
.scope1 .scope2 {
|
||||
color: #0000ff;
|
||||
color: blue;
|
||||
}
|
||||
.scope1 .scope2 .scope3 {
|
||||
color: #ff0000;
|
||||
border-color: #000000;
|
||||
background-color: #ffffff;
|
||||
color: red;
|
||||
border-color: black;
|
||||
background-color: white;
|
||||
}
|
||||
.scope {
|
||||
scoped-val: #008000;
|
||||
scoped-val: green;
|
||||
}
|
||||
.heightIsSet {
|
||||
height: 1024px;
|
||||
|
||||
@@ -102,16 +102,16 @@ p a span {
|
||||
background: amber;
|
||||
}
|
||||
.other ::fnord {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
.other::fnord {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
.other ::bnord {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
.other::bnord {
|
||||
color: #ff0000;
|
||||
color: red;
|
||||
}
|
||||
.blood {
|
||||
color: red;
|
||||
|
||||
@@ -33,10 +33,10 @@
|
||||
url5: "http://lesscss.org/54.4px";
|
||||
}
|
||||
.mix-mul-class {
|
||||
color: #0000ff;
|
||||
color: #ff0000;
|
||||
color: #000000;
|
||||
color: #ffa500;
|
||||
color: blue;
|
||||
color: red;
|
||||
color: black;
|
||||
color: orange;
|
||||
}
|
||||
.watermark {
|
||||
family: Univers, Arial, Verdana, San-Serif;
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
color: white;
|
||||
}
|
||||
.no-semi-column {
|
||||
color: #ffffff;
|
||||
color: white;
|
||||
}
|
||||
.no-semi-column {
|
||||
color: white;
|
||||
white-space: pre;
|
||||
}
|
||||
.no-semi-column {
|
||||
border: 2px solid #ffffff;
|
||||
border: 2px solid white;
|
||||
}
|
||||
.newlines {
|
||||
background: the,
|
||||
|
||||
@@ -93,7 +93,10 @@
|
||||
max: max(1, 3);
|
||||
max: max(3%, 1cm, 8%, 2mm);
|
||||
percentage: percentage((10px / 50));
|
||||
color: color("#ff0011");
|
||||
color-quoted-digit: color("#dda0dd");
|
||||
color-quoted-keyword: color("plum");
|
||||
color-color: color(#dda0dd);
|
||||
color-keyword: color(plum);
|
||||
tint: tint(#777777, 13);
|
||||
tint-full: tint(#777777, 100);
|
||||
tint-percent: tint(#777777, 13%);
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"sourcemaps/basic.css","sources":["testweb/sourcemaps/imported.css","testweb/sourcemaps/basic.less"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACAA;EACE,YAAA;EAJA,UAAA;EAWA,iBAAA;EALA,WAAA;EACA,mBAAA;;AAJF,EASE;AATF,EASM;EACF,gBAAA;;AACA,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;EAGA,UAAA;;AALN;AAAI;AAUJ;EATE,iBAAA;;AADF,EAEE;AAFE,EAEF;AAFF,EAEM;AAFF,EAEE;AAQN,OARE;AAQF,OARM;EACF,gBAAA;;AACA,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFA;AAQN,OARE,GAQF,UARE;AAQF,OARE,GAEI,KAFJ;AAQF,OARE,GAQF,UARM;AAQN,OARE,GAEI,KAFA;AAEF,EAFF,GAQF,UARE;AAEE,EAFF,GAQF,UARM;AAQN,OARM,GAQN,UARE;AAQF,OARM,GAEA,KAFJ;AAQF,OARM,GAQN,UARM;AAQN,OARM,GAEA,KAFA;AAEF,EAFE,GAQN,UARE;AAEE,EAFE,GAQN,UARM;EAGA,UAAA;;AAKN;EACE,WAAA"}
|
||||
{"version":3,"file":"sourcemaps/basic.css","sources":["testweb/sourcemaps/imported.css","testweb/sourcemaps/basic.less"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACAA;EACE,YAAA;EAJA,UAAA;EAWA,iBAAA;EALA,WAAA;EACA,iBAAA;;AAJF,EASE;AATF,EASM;EACF,gBAAA;;AACA,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;EAGA,UAAA;;AALN;AAAI;AAUJ;EATE,iBAAA;;AADF,EAEE;AAFE,EAEF;AAFF,EAEM;AAFF,EAEE;AAQN,OARE;AAQF,OARM;EACF,gBAAA;;AACA,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFJ;AAEE,EAFF,GAEI,KAFA;AAEF,EAFF,GAEI,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFJ;AAEE,EAFE,GAEA,KAFA;AAEF,EAFE,GAEA,KAFA;AAQN,OARE,GAQF,UARE;AAQF,OARE,GAEI,KAFJ;AAQF,OARE,GAQF,UARM;AAQN,OARE,GAEI,KAFA;AAEF,EAFF,GAQF,UARE;AAEE,EAFF,GAQF,UARM;AAQN,OARM,GAQN,UARE;AAQF,OARM,GAEA,KAFJ;AAQF,OARM,GAQN,UARM;AAQN,OARM,GAEA,KAFA;AAEF,EAFE,GAQN,UARE;AAEE,EAFE,GAQN,UARM;EAGA,UAAA;;AAKN;EACE,WAAA"}
|
||||
Reference in New Issue
Block a user