Conversation
|
Tested on my live installation. |
| $eventData .= ' | ||
| /* Footnotes (generated by serendipity_event_markdown) */ | ||
|
|
||
| a.footnote-ref:after { |
There was a problem hiding this comment.
Does is have to be a combined selector for specifity or would .footnote-ref:after suffice?
| } | ||
|
|
||
| .footnotes hr { | ||
| border-top: dashed #cccccc; |
There was a problem hiding this comment.
You can always write colors like #cccccc (6 times the same value) in their short form #ccc.
There was a problem hiding this comment.
I prefer the long form as I find it easier to read, but will adhere to your suggestion. :)
| /* mostly taken from http://www.456bereastreet.com/archive/201105/styling_ordered_list_numbers/ */ | ||
| .footnotes ol { | ||
| counter-reset: li; | ||
| margin-top: 0.2em; |
There was a problem hiding this comment.
If a value in CSS has a zero before the point, you can leave it out, i.e. .2em would suffice.
There was a problem hiding this comment.
Same here - I prefer the leading zero as I find it easier to read, but will change,
| margin-left: 1.5em; | ||
| padding-left: 0; | ||
| } | ||
| .footnotes ol > li { |
There was a problem hiding this comment.
Does it have to be that specific or would .footnotes li suffice? Do you only want to address direct children of the ordered list here? (Same below.)
There was a problem hiding this comment.
Yes, i just want to address direct children. Perhaps it wouldn't matter in most cases, but the specific selector would allow at least unordered lists in footnotes. I don't know if anyone would do that, but who knows? :)
CSS is added via addToCSS(). Signed-off-by: Thomas Hochstein <thh@inter.net>
CSS is added via addToCSS().
Signed-off-by: Thomas Hochstein thh@inter.net