summaryrefslogtreecommitdiff
path: root/node_modules/css-tree/cjs/syntax/atrule
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/css-tree/cjs/syntax/atrule
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/css-tree/cjs/syntax/atrule')
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/font-face.cjs12
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/import.cjs37
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/index.cjs19
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/media.cjs16
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/nest.cjs16
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/page.cjs16
-rw-r--r--node_modules/css-tree/cjs/syntax/atrule/supports.cjs77
7 files changed, 0 insertions, 193 deletions
diff --git a/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs b/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs
deleted file mode 100644
index fc7f64a6..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/font-face.cjs
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-const fontFace = {
- parse: {
- prelude: null,
- block() {
- return this.Block(true);
- }
- }
-};
-
-module.exports = fontFace;
diff --git a/node_modules/css-tree/cjs/syntax/atrule/import.cjs b/node_modules/css-tree/cjs/syntax/atrule/import.cjs
deleted file mode 100644
index bb4402b4..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/import.cjs
+++ /dev/null
@@ -1,37 +0,0 @@
-'use strict';
-
-const types = require('../../tokenizer/types.cjs');
-
-const importAtrule = {
- parse: {
- prelude() {
- const children = this.createList();
-
- this.skipSC();
-
- switch (this.tokenType) {
- case types.String:
- children.push(this.String());
- break;
-
- case types.Url:
- case types.Function:
- children.push(this.Url());
- break;
-
- default:
- this.error('String or url() is expected');
- }
-
- if (this.lookupNonWSType(0) === types.Ident ||
- this.lookupNonWSType(0) === types.LeftParenthesis) {
- children.push(this.MediaQueryList());
- }
-
- return children;
- },
- block: null
- }
-};
-
-module.exports = importAtrule;
diff --git a/node_modules/css-tree/cjs/syntax/atrule/index.cjs b/node_modules/css-tree/cjs/syntax/atrule/index.cjs
deleted file mode 100644
index 0cfe83d1..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/index.cjs
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-const fontFace = require('./font-face.cjs');
-const _import = require('./import.cjs');
-const media = require('./media.cjs');
-const nest = require('./nest.cjs');
-const page = require('./page.cjs');
-const supports = require('./supports.cjs');
-
-const atrule = {
- 'font-face': fontFace,
- 'import': _import,
- media,
- nest,
- page,
- supports
-};
-
-module.exports = atrule;
diff --git a/node_modules/css-tree/cjs/syntax/atrule/media.cjs b/node_modules/css-tree/cjs/syntax/atrule/media.cjs
deleted file mode 100644
index 77214d1c..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/media.cjs
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-const media = {
- parse: {
- prelude() {
- return this.createSingleNodeList(
- this.MediaQueryList()
- );
- },
- block(isStyleBlock = false) {
- return this.Block(isStyleBlock);
- }
- }
-};
-
-module.exports = media;
diff --git a/node_modules/css-tree/cjs/syntax/atrule/nest.cjs b/node_modules/css-tree/cjs/syntax/atrule/nest.cjs
deleted file mode 100644
index 5cd66720..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/nest.cjs
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-const nest = {
- parse: {
- prelude() {
- return this.createSingleNodeList(
- this.SelectorList()
- );
- },
- block() {
- return this.Block(true);
- }
- }
-};
-
-module.exports = nest;
diff --git a/node_modules/css-tree/cjs/syntax/atrule/page.cjs b/node_modules/css-tree/cjs/syntax/atrule/page.cjs
deleted file mode 100644
index ffef0d17..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/page.cjs
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-const page = {
- parse: {
- prelude() {
- return this.createSingleNodeList(
- this.SelectorList()
- );
- },
- block() {
- return this.Block(true);
- }
- }
-};
-
-module.exports = page;
diff --git a/node_modules/css-tree/cjs/syntax/atrule/supports.cjs b/node_modules/css-tree/cjs/syntax/atrule/supports.cjs
deleted file mode 100644
index bf30f034..00000000
--- a/node_modules/css-tree/cjs/syntax/atrule/supports.cjs
+++ /dev/null
@@ -1,77 +0,0 @@
-'use strict';
-
-const types = require('../../tokenizer/types.cjs');
-
-function consumeRaw() {
- return this.createSingleNodeList(
- this.Raw(this.tokenIndex, null, false)
- );
-}
-
-function parentheses() {
- this.skipSC();
-
- if (this.tokenType === types.Ident &&
- this.lookupNonWSType(1) === types.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 types.Comment:
- case types.WhiteSpace:
- this.next();
- continue;
-
- case types.Function:
- child = this.Function(consumeRaw, this.scope.AtrulePrelude);
- break;
-
- case types.Ident:
- child = this.Identifier();
- break;
-
- case types.LeftParenthesis:
- child = this.Parentheses(parentheses, this.scope.AtrulePrelude);
- break;
-
- default:
- break scan;
- }
-
- children.push(child);
- }
-
- return children;
-}
-
-const supports = {
- 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);
- }
- }
-};
-
-module.exports = supports;