mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] yarn format
This commit is contained in:
parent
46871d2d4a
commit
e3df5e80e1
1 changed files with 17 additions and 1 deletions
|
@ -14,7 +14,23 @@ const CSS_SEPARATORS = new Set([' ', ',', '+', '>', '~']);
|
||||||
const KEYFRAME_PERCENT = /\d+\.?\d*%/;
|
const KEYFRAME_PERCENT = /\d+\.?\d*%/;
|
||||||
|
|
||||||
/** HTML tags that should never get scoped classes */
|
/** HTML tags that should never get scoped classes */
|
||||||
export const NEVER_SCOPED_TAGS = new Set<string>(['base', 'body', 'font', 'frame', 'frameset', 'head', 'html', 'link', 'meta', 'noframes', 'noscript', 'script', 'style', 'title', '!doctype']);
|
export const NEVER_SCOPED_TAGS = new Set<string>([
|
||||||
|
'base',
|
||||||
|
'body',
|
||||||
|
'font',
|
||||||
|
'frame',
|
||||||
|
'frameset',
|
||||||
|
'head',
|
||||||
|
'html',
|
||||||
|
'link',
|
||||||
|
'meta',
|
||||||
|
'noframes',
|
||||||
|
'noscript',
|
||||||
|
'script',
|
||||||
|
'style',
|
||||||
|
'title',
|
||||||
|
'!doctype',
|
||||||
|
]);
|
||||||
/**
|
/**
|
||||||
* Scope Rules
|
* Scope Rules
|
||||||
* Given a selector string (`.btn>span,.nav>span`), add an additional CSS class to every selector (`.btn.myClass>span.myClass,.nav.myClass>span.myClass`)
|
* Given a selector string (`.btn>span,.nav>span`), add an additional CSS class to every selector (`.btn.myClass>span.myClass,.nav.myClass>span.myClass`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue