feat: docker compose maybe
This commit is contained in:
8
node_modules/css-tree/lib/syntax/atrule/font-face.js
generated
vendored
Normal file
8
node_modules/css-tree/lib/syntax/atrule/font-face.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
export default {
|
||||
parse: {
|
||||
prelude: null,
|
||||
block() {
|
||||
return this.Block(true);
|
||||
}
|
||||
}
|
||||
};
|
39
node_modules/css-tree/lib/syntax/atrule/import.js
generated
vendored
Normal file
39
node_modules/css-tree/lib/syntax/atrule/import.js
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
import {
|
||||
String as StringToken,
|
||||
Ident,
|
||||
Url,
|
||||
Function as FunctionToken,
|
||||
LeftParenthesis
|
||||
} from '../../tokenizer/index.js';
|
||||
|
||||
export default {
|
||||
parse: {
|
||||
prelude() {
|
||||
const children = this.createList();
|
||||
|
||||
this.skipSC();
|
||||
|
||||
switch (this.tokenType) {
|
||||
case StringToken:
|
||||
children.push(this.String());
|
||||
break;
|
||||
|
||||
case Url:
|
||||
case FunctionToken:
|
||||
children.push(this.Url());
|
||||
break;
|
||||
|
||||
default:
|
||||
this.error('String or url() is expected');
|
||||
}
|
||||
|
||||
if (this.lookupNonWSType(0) === Ident ||
|
||||
this.lookupNonWSType(0) === LeftParenthesis) {
|
||||
children.push(this.MediaQueryList());
|
||||
}
|
||||
|
||||
return children;
|
||||
},
|
||||
block: null
|
||||
}
|
||||
};
|
15
node_modules/css-tree/lib/syntax/atrule/index.js
generated
vendored
Normal file
15
node_modules/css-tree/lib/syntax/atrule/index.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
import fontFace from './font-face.js';
|
||||
import importAtrule from './import.js';
|
||||
import media from './media.js';
|
||||
import nest from './nest.js';
|
||||
import page from './page.js';
|
||||
import supports from './supports.js';
|
||||
|
||||
export default {
|
||||
'font-face': fontFace,
|
||||
'import': importAtrule,
|
||||
media,
|
||||
nest,
|
||||
page,
|
||||
supports
|
||||
};
|
12
node_modules/css-tree/lib/syntax/atrule/media.js
generated
vendored
Normal file
12
node_modules/css-tree/lib/syntax/atrule/media.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
parse: {
|
||||
prelude() {
|
||||
return this.createSingleNodeList(
|
||||
this.MediaQueryList()
|
||||
);
|
||||
},
|
||||
block(isStyleBlock = false) {
|
||||
return this.Block(isStyleBlock);
|
||||
}
|
||||
}
|
||||
};
|
12
node_modules/css-tree/lib/syntax/atrule/nest.js
generated
vendored
Normal file
12
node_modules/css-tree/lib/syntax/atrule/nest.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
parse: {
|
||||
prelude() {
|
||||
return this.createSingleNodeList(
|
||||
this.SelectorList()
|
||||
);
|
||||
},
|
||||
block() {
|
||||
return this.Block(true);
|
||||
}
|
||||
}
|
||||
};
|
12
node_modules/css-tree/lib/syntax/atrule/page.js
generated
vendored
Normal file
12
node_modules/css-tree/lib/syntax/atrule/page.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
parse: {
|
||||
prelude() {
|
||||
return this.createSingleNodeList(
|
||||
this.SelectorList()
|
||||
);
|
||||
},
|
||||
block() {
|
||||
return this.Block(true);
|
||||
}
|
||||
}
|
||||
};
|
80
node_modules/css-tree/lib/syntax/atrule/supports.js
generated
vendored
Normal file
80
node_modules/css-tree/lib/syntax/atrule/supports.js
generated
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
import {
|
||||
WhiteSpace,
|
||||
Comment,
|
||||
Ident,
|
||||
Function,
|
||||
Colon,
|
||||
LeftParenthesis
|
||||
} from '../../tokenizer/index.js';
|
||||
|
||||
function consumeRaw() {
|
||||
return this.createSingleNodeList(
|
||||
this.Raw(this.tokenIndex, null, false)
|
||||
);
|
||||
}
|
||||
|
||||
function parentheses() {
|
||||
this.skipSC();
|
||||
|
||||
if (this.tokenType === Ident &&
|
||||
this.lookupNonWSType(1) === Colon) {
|
||||
return this.createSingleNodeList(
|
||||
this.Declaration()
|
||||
);
|
||||
}
|
||||
|
||||
return readSequence.call(this);
|
||||
}
|
||||
|
||||
function readSequence() {
|
||||
const children = this.createList();
|
||||
let child;
|
||||
|
||||
this.skipSC();
|
||||
|
||||
scan:
|
||||
while (!this.eof) {
|
||||
switch (this.tokenType) {
|
||||
case Comment:
|
||||
case WhiteSpace:
|
||||
this.next();
|
||||
continue;
|
||||
|
||||
case Function:
|
||||
child = this.Function(consumeRaw, this.scope.AtrulePrelude);
|
||||
break;
|
||||
|
||||
case Ident:
|
||||
child = this.Identifier();
|
||||
break;
|
||||
|
||||
case LeftParenthesis:
|
||||
child = this.Parentheses(parentheses, this.scope.AtrulePrelude);
|
||||
break;
|
||||
|
||||
default:
|
||||
break scan;
|
||||
}
|
||||
|
||||
children.push(child);
|
||||
}
|
||||
|
||||
return children;
|
||||
}
|
||||
|
||||
export default {
|
||||
parse: {
|
||||
prelude() {
|
||||
const children = readSequence.call(this);
|
||||
|
||||
if (this.getFirstListNode(children) === null) {
|
||||
this.error('Condition is expected');
|
||||
}
|
||||
|
||||
return children;
|
||||
},
|
||||
block(isStyleBlock = false) {
|
||||
return this.Block(isStyleBlock);
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user