mirror of
https://github.com/MercuryWorkshop/dreamlandjs.git
synced 2025-05-15 07:10:00 -04:00
fix: non-scoped css &
This commit is contained in:
parent
58338836b8
commit
1a9d03969c
2 changed files with 3 additions and 2 deletions
|
@ -87,7 +87,6 @@ export default (args) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const dlbanner = `// dreamland.js, MIT license\nconst DLFEATURES = [${Object.entries(
|
const dlbanner = `// dreamland.js, MIT license\nconst DLFEATURES = [${Object.entries(
|
||||||
features
|
features
|
||||||
)
|
)
|
||||||
|
|
|
@ -114,7 +114,9 @@ export function genCss(uid, str, scoped) {
|
||||||
.split(',')
|
.split(',')
|
||||||
.map((x) => {
|
.map((x) => {
|
||||||
x = x.trim()
|
x = x.trim()
|
||||||
if (x[0] === ':') {
|
if (x[0] === '&') {
|
||||||
|
return `.${uid}${x.slice(1)}`
|
||||||
|
} else if (x[0] === ':') {
|
||||||
return `.${uid}${x}`
|
return `.${uid}${x}`
|
||||||
} else {
|
} else {
|
||||||
return `.${uid} ${x}`
|
return `.${uid} ${x}`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue