This commit is contained in:
lalBi94
2023-03-05 13:23:23 +01:00
commit 7bc56c09b5
14034 changed files with 1834369 additions and 0 deletions

View File

@@ -0,0 +1 @@
#navbar{width:80%;height:23px}#navbar ul{list-style-type:none}#navbar li{float:left}#navbar li a{font-weight:bold}

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

View File

@@ -0,0 +1,3 @@
div {
width: 42rem;
height: 84px; }

View File

@@ -0,0 +1 @@
div { width: foo(42px); height: bar(42px); }

View File

@@ -0,0 +1,2 @@
div {
color: "barbar"; }

View File

@@ -0,0 +1 @@
div { color: foo("bar"); }

View File

@@ -0,0 +1,2 @@
.outside {
color: red; }

View File

@@ -0,0 +1,3 @@
.outside {
color: red;
}

View File

@@ -0,0 +1 @@
@import 'outside';

View File

@@ -0,0 +1,6 @@
@import "vars";
@import "struct";
.myvars {
content: quote($import_counter);
}

View File

@@ -0,0 +1,3 @@
.common-struct {
content: "common-struct";
}

View File

@@ -0,0 +1,5 @@
$import_counter: $import_counter + 1;
.common-vars {
content: "common-vars";
}

View File

@@ -0,0 +1,7 @@
@import "_common";
@import "a1";
.a2 {
content: "a2";
}

View File

@@ -0,0 +1,3 @@
.a1 {
content: "a1";
}

View File

@@ -0,0 +1,5 @@
@import "b1";
.b2 {
content: "b2";
}

View File

@@ -0,0 +1,3 @@
.b1 {
content: "b1";
}

View File

@@ -0,0 +1,32 @@
.common-vars {
content: "common-vars"; }
.common-struct {
content: "common-struct"; }
.myvars {
content: "1"; }
.a1 {
content: "a1"; }
.a2 {
content: "a2"; }
.common-vars {
content: "common-vars"; }
.common-struct {
content: "common-struct"; }
.myvars {
content: "2"; }
.b1 {
content: "b1"; }
.b2 {
content: "b2"; }
#the-last {
content: "LAST"; }

View File

@@ -0,0 +1,8 @@
$import_counter: 0;
@import "a";
@import "common";
@import "b";
#the-last {
content: "LAST";
}

View File

@@ -0,0 +1,12 @@
var sass = require('../../..');
module.exports = [
function() {
return sass.NULL;
},
function() {
return {
contents: 'div {color: yellow;}'
};
}
];

View File

@@ -0,0 +1,10 @@
module.exports = {
'foo($a)': function(size) {
size.setUnit('rem');
return size;
},
'bar($a)': function(size) {
size.setValue(size.getValue() * 2);
return size;
}
};

View File

@@ -0,0 +1,8 @@
var sass = require('../../..');
module.exports = {
'foo($a)': function(str) {
str = str.getValue().replace(/['"]/g, '');
return new sass.types.String('"' + str + str + '"');
}
};

View File

@@ -0,0 +1,5 @@
module.exports = function() {
return {
contents: 'div {color: yellow;}'
};
};

View File

@@ -0,0 +1,5 @@
module.exports = function(file, prev, done) {
done({
contents: 'div {color: yellow;}'
});
};

View File

@@ -0,0 +1,3 @@
module.exports = function() {
return new Error('doesn\'t exist!');
};

View File

@@ -0,0 +1,7 @@
var path = require('path');
module.exports = function(file) {
return {
file: path.resolve(path.join(process.cwd(), 'test/fixtures/include-files/', file + (path.extname(file) ? '' : '.scss')))
};
};

View File

@@ -0,0 +1,6 @@
module.exports = function() {
return {
file: '/some/random/path/file.scss',
contents: 'div {color: yellow;}'
};
};

View File

@@ -0,0 +1,6 @@
module.exports = function(file, prev, done) {
done({
file: '/some/random/path/file.scss',
contents: 'div {color: yellow;}'
});
};

View File

@@ -0,0 +1,7 @@
var path = require('path');
module.exports = function(file, /* jshint unused:false */ prev, done) {
done({
file: path.resolve(path.join(process.cwd(), 'test/fixtures/include-files/', file + (path.extname(file) ? '' : '.scss')))
});
};

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

View File

@@ -0,0 +1 @@
/* bar.scss */

View File

@@ -0,0 +1 @@
@import "file-not-processed-by-loader", "file-processed-by-loader";

View File

@@ -0,0 +1,5 @@
div {
color: yellow; }
div {
color: yellow; }

View File

@@ -0,0 +1,2 @@
/* foo.scss */
/* bar.scss */

View File

@@ -0,0 +1,5 @@
div {
color: yellow; }
div {
color: yellow; }

View File

@@ -0,0 +1 @@
$variable-defined-by-file-not-processed-by-loader: 'red';

View File

@@ -0,0 +1,3 @@
body {
color: $variable-defined-by-file-not-processed-by-loader;
}

View File

@@ -0,0 +1 @@
/* foo.scss */

View File

@@ -0,0 +1,2 @@
@import 'foo';
@import 'bar';

View File

@@ -0,0 +1,3 @@
body {
background: red;
color: #0000fe; }

View File

@@ -0,0 +1,3 @@
@function colorBlue() {
@return #0000fe;
}

View File

@@ -0,0 +1,7 @@
@import 'vars';
@import 'colorBlue';
body {
background: $color;
color: colorBlue();
}

View File

@@ -0,0 +1 @@
$color: red;

View File

@@ -0,0 +1,2 @@
foo + bar {
color: red; }

View File

@@ -0,0 +1,3 @@
foo
+ bar
color: red

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

View File

@@ -0,0 +1,3 @@
body {
background-color: $green;
}

View File

@@ -0,0 +1,16 @@
#navbar {
width: 80%;
height: 23px;
}
#navbar ul {
list-style-type: none;
}
#navbar li {
float: left;
a {
font-weight: bold;
}
}

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