-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #925 from mgreter/indent-sass-specs
Add more sass spec tests
- Loading branch information
Showing
12 changed files
with
183 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.testing { | ||
margin-bottom: 32px; | ||
margin-foobar-bar: 1px; | ||
margin-foobar-baz: 2px; | ||
margin-hover-baz: 3px; | ||
end: 4px; } |
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,9 @@ | ||
.testing | ||
:margin | ||
:bottom 32px | ||
:foobar | ||
:bar 1px | ||
:baz 2px | ||
:hover | ||
:baz 3px | ||
:end 4px |
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,13 @@ | ||
.error, .seriousError, .criticalError { | ||
border: 1px #f00; | ||
background-color: #fdd; } | ||
|
||
.seriousError, .criticalError { | ||
border-width: 3px; } | ||
|
||
.criticalError { | ||
position: fixed; | ||
top: 10%; | ||
bottom: 10%; | ||
left: 10%; | ||
right: 10%; } |
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,15 @@ | ||
.error | ||
border: 1px #f00 | ||
background-color: #fdd | ||
|
||
.seriousError | ||
@extend .error | ||
border-width: 3px | ||
|
||
.criticalError | ||
@extend .seriousError | ||
position: fixed | ||
top: 10% | ||
bottom: 10% | ||
left: 10% | ||
right: 10% |
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,2 @@ | ||
#sidebar { | ||
width: 240px; } |
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,8 @@ | ||
$grid-width: 40px | ||
$gutter-width: 10px | ||
|
||
@function grid-width($n) | ||
@return $n * $grid-width + ($n - 1) * $gutter-width | ||
|
||
#sidebar | ||
width: grid-width(5) |
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,18 @@ | ||
input { | ||
color: blue; | ||
background: red; } | ||
|
||
* html #logo { | ||
background-image: url(/logo.gif); } | ||
|
||
.a + .c, .a + .b { | ||
margin: 10px; | ||
mix: in; } | ||
|
||
.a { | ||
mix: in; } | ||
.a + b .c, .a + b .b { | ||
margin: 10px; } | ||
|
||
.a > .c, .a > .b { | ||
margin: 10px; } |
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,35 @@ | ||
=mixme | ||
color: blue | ||
|
||
input | ||
+mixme | ||
background: red | ||
|
||
=apply-to-ie6-only | ||
* html | ||
@content | ||
|
||
+apply-to-ie6-only | ||
#logo | ||
background-image: url(/logo.gif) | ||
|
||
@mixin inc() | ||
mix: in | ||
|
||
.a | ||
+ | ||
.c, .b | ||
margin: 10px | ||
+inc | ||
|
||
.a | ||
+inc | ||
+ b | ||
.c, .b | ||
margin: 10px | ||
|
||
|
||
.a | ||
> | ||
.c, .b | ||
margin: 10px |
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,23 @@ | ||
::selection { | ||
color: rebeccapurple; } | ||
|
||
::-webkit-selection { | ||
color: rebeccapurple; } | ||
|
||
::-webkit-selection, ::selection { | ||
color: rebeccapurple; } | ||
|
||
:-webkit-selection { | ||
color: rebeccapurple; } | ||
|
||
:hover TD { | ||
color: red; } | ||
|
||
:color red { | ||
foo: bar; } | ||
|
||
:left DF { | ||
hover-foo: bar; } | ||
|
||
:nth-child(2n+1) SPAN { | ||
foo: bar; } |
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,18 @@ | ||
::selection | ||
color: rebeccapurple | ||
::-webkit-selection | ||
color: rebeccapurple | ||
::-webkit-selection, ::selection | ||
color: rebeccapurple | ||
\:-webkit-selection | ||
color: rebeccapurple | ||
|
||
\:hover TD | ||
color: red | ||
\:color red | ||
foo: bar | ||
\:left DF | ||
:hover | ||
foo: bar | ||
\:nth-child(2n+1) SPAN | ||
foo: bar |
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,15 @@ | ||
.test { | ||
foo: bar; } | ||
.test ~ { | ||
tilde: true; } | ||
.test + { | ||
adjancent: true; } | ||
.test > { | ||
child: true; } | ||
.test * { | ||
universal: true; } | ||
.test [foo] { | ||
attribute: true; } | ||
|
||
.selector-0 + .selector-1 { | ||
color: rebeccapurple; } |
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 @@ | ||
.test | ||
foo: bar | ||
~ | ||
tilde: true | ||
+ | ||
adjancent: true | ||
> | ||
child: true | ||
* | ||
universal: true | ||
[foo] | ||
attribute: true | ||
|
||
@mixin selector-2() | ||
foo: bar | ||
|
||
.selector-0 | ||
+ .selector-1 | ||
color: rebeccapurple | ||
= selector-2 | ||
color: yellow |