Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sass
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
楚学文
node-sass
Commits
3711f8dd
Commit
3711f8dd
authored
Mar 19, 2012
by
Aaron Leung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working on some hairy parsing stuff.
parent
3825b29b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
0 deletions
+26
-0
lists.scss
lists.scss
+12
-0
sassc.cpp
sassc.cpp
+1
-0
input.scss
spec/basic/12_pseudo_classes_and_elements/input.scss
+7
-0
output.css
spec/basic/12_pseudo_classes_and_elements/output.css
+6
-0
No files found.
lists.scss
0 → 100644
View file @
3711f8dd
$x
:
20px
/
10
;
div
{
a
:
a
,
b
,
c
,
d
;
b
:
a
b
,
c
d
;
c
:
a
(
b
,
c
)
d
;
e
:
$x
;
f
:
20px
/
10
;
g
:
(
1
(
9
*
2
))
/
3
;
h
:
(
1
/
2
3
/
4
5
/
6
);
i
:
4
-
(
2
)
3
;
}
sassc.cpp
View file @
3711f8dd
...
...
@@ -29,6 +29,7 @@ int main(int argc, char* argv[]) {
Document
doc
(
path
,
0
);
doc
.
parse_scss
();
cerr
<<
"successfully parsed document"
<<
endl
;
string
output
=
doc
.
emit_css
(
style
);
cout
<<
output
;
...
...
spec/basic/12_pseudo_classes_and_elements/input.scss
View file @
3711f8dd
...
...
@@ -9,5 +9,11 @@ a b {
content
:
"glux"
;
color
:
green
;
}
:not
(
.foo
)
{
hoo
:
boo
;
}
// the following is not actually valid, but sass accepts it
:not
(
:not
(
:not
(
.foo
[
bleeble
=
"blabble"
]
>
.hello
,
.gluxbux
)))
{
hoo
:
boo
;
}
a
{
b
:
c
;
}
}
}
\ No newline at end of file
spec/basic/12_pseudo_classes_and_elements/output.css
View file @
3711f8dd
...
...
@@ -7,3 +7,9 @@ a b {
a
b
:first-child
::after
,
a
b
:nth-of-type
(
-2n
+
1
)
::after
{
content
:
"glux"
;
color
:
green
;
}
a
b
:first-child
:not
(
.foo
),
a
b
:nth-of-type
(
-2n
+
1
)
:not
(
.foo
)
{
hoo
:
boo
;
}
a
b
:first-child
:not
(
:not
(
:not
(
.foo
[
bleeble
=
"blabble"
]
>
.hello
,
.gluxbux
))),
a
b
:nth-of-type
(
-2n
+
1
)
:not
(
:not
(
:not
(
.foo
[
bleeble
=
"blabble"
]
>
.hello
,
.gluxbux
)))
{
hoo
:
boo
;
}
a
b
:first-child
a
,
a
b
:nth-of-type
(
-2n
+
1
)
a
{
b
:
c
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment