Skip to content

Instantly share code, notes, and snippets.

@julientaq
Last active January 21, 2021 17:42
Show Gist options
  • Save julientaq/8470a3718ead37de5a1b22fc5f6a143b to your computer and use it in GitHub Desktop.
Save julientaq/8470a3718ead37de5a1b22fc5f6a143b to your computer and use it in GitHub Desktop.
Custom emoji markers with 1 custom property
/**
* Custom emoji markers with 1 custom property
*/
ul {
color: red;
}
li {
color:orange;
}
.con::marker {
content: "2";
}
.pros-cons {
--marker: "👍🏼";
}
.con {
--marker: "👎🏼";
}
<ul>
<li>&lt;ul> with no --marker specified</li>
<li>Second item</li>
<li style="--marker: '🥳'">Inline --marker</li>
</ul>
<ol>
<li>&lt;ol> with no --marker specified</li>
<li>Second item</li>
</ol>
<ul class="pros-cons"><li class="con">con</li><li>pro</li></ul>
// alert('Hello world!');
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment