-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add additional space after the escape sequence (#17)
- Loading branch information
1 parent
5e4d69d
commit 8365f77
Showing
5 changed files
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
.\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 A { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 A .\1F600 { | ||
color: red; | ||
} | ||
|
||
#\1F600 #\1F600 #\1F600 { | ||
color: red; | ||
} | ||
|
||
#\1F600 #\1F600 A #\1F600 { | ||
color: red; | ||
} | ||
|
||
.a .\1F600 b { | ||
color: red; | ||
} | ||
|
||
.\1F600 > .\1F600 > .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600.\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 .a { | ||
color: red; | ||
} | ||
|
||
.\1F600.a { | ||
color: red; | ||
} | ||
|
||
.a .\1F600 { | ||
color: red; | ||
} | ||
|
||
.a.\1F600 { | ||
color: red; | ||
} | ||
|
||
:export { | ||
smile: 😀; | ||
smile_with_A: 😀A; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const cssesc = require('cssesc'); | ||
|
||
const filenameReservedRegex = /[<>:"/\\|?*\x00-\x1F]/g; | ||
const reControlChars = /[\u0000-\u001f\u0080-\u009f]/g; | ||
const reRelativePath = /^\.+/; | ||
|
||
module.exports = { | ||
generateScopedName: function(name) { | ||
return cssesc( | ||
name | ||
.replace(/smile/, '😀') | ||
.replace(/_with_A/g, 'A') | ||
.replace(/^((-?[0-9])|--)/, '_$1') | ||
.replace(filenameReservedRegex, '-') | ||
.replace(reControlChars, '-') | ||
.replace(reRelativePath, '-') | ||
.replace(/\./g, '-'), | ||
{ isIdentifier: true } | ||
); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
:local(.smile) { | ||
color: red; | ||
} | ||
|
||
:local(.smile) :local(.smile) { | ||
color: red; | ||
} | ||
|
||
:local(.smile) :local(.smile) :local(.smile) { | ||
color: red; | ||
} | ||
|
||
:local(.smile_with_A) { | ||
color: red; | ||
} | ||
|
||
.\1F600 :local(.smile) { | ||
color: red; | ||
} | ||
|
||
:local(.smile) .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 :local(.smile) .\1F600 { | ||
color: red; | ||
} | ||
|
||
.\1F600 :local(.smile_with_A) .\1F600 { | ||
color: red; | ||
} | ||
|
||
#\1F600 :local(#smile) #\1F600 { | ||
color: red; | ||
} | ||
|
||
#\1F600 :local(#smile_with_A) #\1F600 { | ||
color: red; | ||
} | ||
|
||
.a :local(.smile) b { | ||
color: red; | ||
} | ||
|
||
:local(.smile) > :local(.smile) > :local(.smile) { | ||
color: red; | ||
} | ||
|
||
.\1F600 :local(.smile) { | ||
color: red; | ||
} | ||
|
||
.\1F600:local(.smile) { | ||
color: red; | ||
} | ||
|
||
.\1F600 :local(.smile) { | ||
color: red; | ||
} | ||
|
||
:local(.smile) .a { | ||
color: red; | ||
} | ||
|
||
:local(.smile).a { | ||
color: red; | ||
} | ||
|
||
.a :local(.smile) { | ||
color: red; | ||
} | ||
|
||
.a:local(.smile) { | ||
color: red; | ||
} |