Created
April 18, 2015 19:45
-
-
Save una/0432a4912f1bc278dae9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div></div> |
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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
// You can edit lists dynamically | |
$my-list: "one", "cat", "dogs"; | |
.print-list{ | |
&:after { | |
content: $my-list; | |
} | |
} | |
$new-list: append($my-list, "platypus"); | |
.print-list{ | |
&:after { | |
content: $new-list; | |
} | |
&:hover { | |
$new-list: append($new-list, "omg-more"); | |
&:after { | |
content: $new-list; | |
} | |
} | |
} |
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
.print-list:after { | |
content: "one", "cat", "dogs"; | |
} | |
.print-list:after { | |
content: "one", "cat", "dogs", "platypus"; | |
} | |
.print-list:hover:after { | |
content: "one", "cat", "dogs", "platypus", "omg-more"; | |
} |
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
<div></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment