mirror of
https://github.com/MercuryWorkshop/dreamlandjs.git
synced 2025-05-11 21:40:02 -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(
|
||||
features
|
||||
)
|
||||
|
|
|
@ -114,7 +114,9 @@ export function genCss(uid, str, scoped) {
|
|||
.split(',')
|
||||
.map((x) => {
|
||||
x = x.trim()
|
||||
if (x[0] === ':') {
|
||||
if (x[0] === '&') {
|
||||
return `.${uid}${x.slice(1)}`
|
||||
} else if (x[0] === ':') {
|
||||
return `.${uid}${x}`
|
||||
} else {
|
||||
return `.${uid} ${x}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue