Created
June 28, 2010 04:09
-
-
Save dwins/455440 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /* Stack a red cross on top of a white circle to make a marker for hospital points */ | |
| * { | |
| mark: symbol(circle), symbol(cross); | |
| } | |
| :nth-mark(1) { | |
| fill: white; | |
| stroke: red; | |
| } | |
| :nth-mark(2) { | |
| fill: red; | |
| size: 12px; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this notation is inspired by the
nth-childselector from CSS3 - see http://www.w3.org/TR/css3-selectors/#nth-child-pseudo:markwill also work if you don't want to specify order; similar notation is used for well-known marks as fill/stroke graphics.