diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-07-24 00:59:53 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-07-24 00:59:53 -0700 |
commit | 2ecbd7fd0278e900b094f775538abf20f4791c51 (patch) | |
tree | 1c741be22adf3bd06265baf6ddcc98c1deea278b /source | |
parent | 4b610726f4d747bccf7c102dca2b0b9c29b61408 (diff) | |
download | my_new_personal_website-2ecbd7fd0278e900b094f775538abf20f4791c51.tar.xz my_new_personal_website-2ecbd7fd0278e900b094f775538abf20f4791c51.zip |
pyblog: add postprocessor process_footnote_backlinks
Add class and variation selector (# U+FE0E: VARIATION SELECTOR-15) to
U+21A9: LEFTWARDS ARROW WITH HOOK to fix outstanding font issue of
footnote backlinks on mobile.
Updated styles accordingly.
Trick learned from Daring Fireball.
Before: https://i.imgur.com/eUbL1k8.png
After: https://i.imgur.com/msv3INn.png
Diffstat (limited to 'source')
-rw-r--r-- | source/css/theme.css | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/css/theme.css b/source/css/theme.css index cc7cdc64..4de354c1 100644 --- a/source/css/theme.css +++ b/source/css/theme.css @@ -133,6 +133,19 @@ div.footnotes code { font-size: 0.87em; } +a.footnotes-backlink { + margin-left: 0.2em; + font-size: 1.2em; + vertical-align: -0.2em; + color: #bbb; + text-decoration: none; +} + +a.footnotes-backlink:hover { + background-color: #bbb; + color: #fff; +} + img { display: block; max-width: 100%; |