Skip to content

Instantly share code, notes, and snippets.

@una
Created April 18, 2015 19:45
Show Gist options
  • Save una/0432a4912f1bc278dae9 to your computer and use it in GitHub Desktop.
Save una/0432a4912f1bc278dae9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// 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;
}
}
}
.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";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment