Vimux / Binario

Responsive card-based & code-light Hugo theme
https://binario.netlify.app
MIT License
116 stars 53 forks source link

Simplify CSS for TOC block #55

Closed Vimux closed 3 years ago

Vimux commented 3 years ago

This PR simplifies TOC block CSS. Motivation: fix #22 properly. Not perfect, but fixes Goldmark and respect blackfriday simultaneously (looks slightly different now).

See screenshots below for comparison.

Before | Goldmark | blackfriday | |-----------------------|-----------------------| | [![Before PR Goldmark](https://user-images.githubusercontent.com/21033483/124391815-4981b180-dcc0-11eb-983d-54c2b502b376.png)](https://user-images.githubusercontent.com/21033483/124391815-4981b180-dcc0-11eb-983d-54c2b502b376.png) | [![Before PR blackfriday](https://user-images.githubusercontent.com/21033483/124391830-5bfbeb00-dcc0-11eb-8e42-6396f6ae6b37.png)](https://user-images.githubusercontent.com/21033483/124391830-5bfbeb00-dcc0-11eb-8e42-6396f6ae6b37.png) |
After | Goldmark | blackfriday | |-----------------------|-----------------------| | [![After PR Goldmark](https://user-images.githubusercontent.com/21033483/124391877-ada47580-dcc0-11eb-8102-2b4995f16765.png)](https://user-images.githubusercontent.com/21033483/124391877-ada47580-dcc0-11eb-8102-2b4995f16765.png) | [![After PR blackfriday](https://user-images.githubusercontent.com/21033483/124391857-82ba2180-dcc0-11eb-9c6d-b7827da34111.png)](https://user-images.githubusercontent.com/21033483/124391857-82ba2180-dcc0-11eb-9c6d-b7827da34111.png) |

Fixes #22

Closes #41