structure, layout and automation

This commit is contained in:
Tancre
2020-09-16 14:23:28 +02:00
commit 0efda7fffe
15549 changed files with 1280031 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 @@
$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;
}
}

View File

@ -0,0 +1,2 @@
.foo {
margin: 1.23456789 px; }

View File

@ -0,0 +1,3 @@
.foo {
margin: 1.23456789 px;
}

View File

@ -0,0 +1,3 @@
body {
background: orange; }

View File

@ -0,0 +1,3 @@
body {
background: red; }

View File

@ -0,0 +1,6 @@
@import 'colors';
body {
background: $color;
}

View File

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

View File

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

View File

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

16
node_modules/node-sass/test/fixtures/simple/index.scss generated vendored Normal file
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,15 @@
/* line 1, stdin */
#navbar {
width: 80%;
height: 23px; }
/* line 6, stdin */
#navbar ul {
list-style-type: none; }
/* line 10, stdin */
#navbar li {
float: left; }
/* line 13, stdin */
#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,13 @@
#navbar {
width: 80%;
height: 23px; }
#navbar ul {
list-style-type: none; }
#navbar li {
float: left; }
#navbar li a {
font-weight: bold; }
/*# sourceMappingURL=data:application/json;base64,ewoJInZlcnNpb24iOiAzLAoJImZpbGUiOiAiZml4dHVyZXMvc291cmNlLW1hcC1lbWJlZC9pbmRleC5jc3MiLAoJInNvdXJjZXMiOiBbCgkJImZpeHR1cmVzL3NvdXJjZS1tYXAtZW1iZWQvaW5kZXguc2NzcyIKCV0sCgkibmFtZXMiOiBbXSwKCSJtYXBwaW5ncyI6ICJBQUFBLEFBQUEsT0FBTyxDQUFDO0VBQ04sS0FBSyxFQUFFLEdBQUc7RUFDVixNQUFNLEVBQUUsSUFBSSxHQUNiOztBQUVELEFBQUEsT0FBTyxDQUFDLEVBQUUsQ0FBQztFQUNULGVBQWUsRUFBRSxJQUFJLEdBQ3RCOztBQUVELEFBQUEsT0FBTyxDQUFDLEVBQUUsQ0FBQztFQUNULEtBQUssRUFBRSxJQUFJLEdBS1o7RUFORCxBQUdFLE9BSEssQ0FBQyxFQUFFLENBR1IsQ0FBQyxDQUFDO0lBQ0EsV0FBVyxFQUFFLElBQUksR0FDbEIiCn0= */

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,13 @@
#navbar {
width: 80%;
height: 23px; }
#navbar ul {
list-style-type: none; }
#navbar li {
float: left; }
#navbar li a {
font-weight: bold; }
/*# sourceMappingURL=index.map */

View File

@ -0,0 +1,9 @@
{
"version": 3,
"file": "index.css",
"sources": [
"index.scss"
],
"names": [],
"mappings": "AAAA,AAAA,OAAO,CAAC;EACN,KAAK,EAAE,GAAG;EACV,MAAM,EAAE,IAAI,GACb;;AAED,AAAA,OAAO,CAAC,EAAE,CAAC;EACT,eAAe,EAAE,IAAI,GACtB;;AAED,AAAA,OAAO,CAAC,EAAE,CAAC;EACT,KAAK,EAAE,IAAI,GAKZ;EAND,AAGE,OAHK,CAAC,EAAE,CAGR,CAAC,CAAC;IACA,WAAW,EAAE,IAAI,GAClB"
}

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,5 @@
@import "partials/one";
.one {
color: red;
}

View File

@ -0,0 +1,5 @@
@import "partials/three";
.one {
color: darkred;
}

View File

@ -0,0 +1,3 @@
.three {
color: darkgreen;
}

View File

@ -0,0 +1,5 @@
@import "partials/three";
.two {
color: darkblue;
}

View File

@ -0,0 +1,3 @@
.three {
color: green;
}

View File

@ -0,0 +1,3 @@
.two {
color: blue;
}

View File

@ -0,0 +1,3 @@
.three {
color: darkgreen;
}

View File

@ -0,0 +1,5 @@
@import "partials/three";
.three {
color: green;
}

View File

@ -0,0 +1 @@
a {color:green;}

View File

@ -0,0 +1 @@
body{background:white}

View File

@ -0,0 +1 @@
@import './foo';

View File

@ -0,0 +1,2 @@
body
background: white

View File

@ -0,0 +1 @@
@import "bar.sass";

View File

@ -0,0 +1 @@
@import './white';

View File

@ -0,0 +1 @@
body{background:white}