-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
266 additions
and
12 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
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
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
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,47 @@ | ||
button.login { | ||
border: 1px solid #000; | ||
} | ||
button.login { | ||
background: #f00; | ||
} | ||
a.link:hover, | ||
a.error:hover { | ||
color: #f00; | ||
} | ||
.error { | ||
background: #0f0; | ||
} | ||
.hello { | ||
width: 10px; | ||
} | ||
.hello .bar { | ||
height: 10px; | ||
} | ||
.lol { | ||
padding: 10px; | ||
} | ||
.hello:hover { | ||
background: #000; | ||
} | ||
.barbaz_1 { | ||
margin: 10px; | ||
} | ||
.foolector, | ||
.barbaz_2 { | ||
margin: 20px; | ||
} | ||
.barbaz_3 { | ||
margin: 30px; | ||
} | ||
@media (max-width: 640px) { | ||
.helloing, | ||
.boo { | ||
display: none; | ||
} | ||
} | ||
.helloing { | ||
background: #0f0; | ||
} | ||
.boo { | ||
background: #f00; | ||
} |
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,77 @@ | ||
$ugly-button | ||
border 1px solid black | ||
|
||
$ugly-red-button | ||
@extend $ugly-button | ||
background red | ||
|
||
// This selector is never used; its properties won't appear in the output | ||
$ugly-blue-button | ||
@extend $ugly-button | ||
background blue | ||
|
||
button.login | ||
@extend $ugly-red-button | ||
|
||
|
||
$extreme | ||
a&:hover | ||
color red | ||
|
||
.link | ||
@extend $extreme | ||
|
||
.error | ||
@extend $extreme | ||
background lime | ||
|
||
$foo | ||
width: 10px | ||
|
||
.bar | ||
height: 10px | ||
|
||
$baz | ||
padding: 10px | ||
|
||
&:hover | ||
background: #000 | ||
|
||
.hello | ||
@extend $foo | ||
|
||
// Extend the placeholder inside another placeholder | ||
.lol | ||
@extend $foo $baz | ||
|
||
// Complex placeholder extend: generating placeholders and calling them with interpolations | ||
fooply() | ||
for i in 1..3 | ||
$foo_{i} | ||
margin: 10px*i | ||
|
||
fooply() | ||
|
||
fooxtend($num) | ||
@extend $foo_{$num} | ||
|
||
.foolector | ||
fooxtend(2) | ||
|
||
for i in 1..3 | ||
.barbaz_{i} | ||
fooxtend(i) | ||
|
||
|
||
// Media queries | ||
@media (max-width: 640px) | ||
$hide_at_640 | ||
display: none | ||
|
||
.helloing | ||
background: lime | ||
@extend $hide_at_640 | ||
|
||
.boo | ||
background: red | ||
@extend $hide_at_640 |
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,24 @@ | ||
a { | ||
atr: def; | ||
} | ||
a.class { | ||
atr: def; | ||
} | ||
a[href='//'] { | ||
atr: def; | ||
} | ||
a[href^='//'] { | ||
atr: def; | ||
} | ||
a[href$='//'] { | ||
atr: def; | ||
} | ||
a[href|='//'] { | ||
atr: def; | ||
} | ||
a[href~='//'] { | ||
atr: def; | ||
} | ||
a[href~='//'] { | ||
atr: def; | ||
} |
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,16 @@ | ||
a // comment | ||
atr def | ||
a.class // comment | ||
atr def | ||
a[href='//'] | ||
atr def | ||
a[href^='//'] | ||
atr def | ||
a[href$='//'] | ||
atr def | ||
a[href|='//'] | ||
atr def | ||
a[href~='//'] | ||
atr def | ||
a[href~='//'] | ||
atr def |