jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
195 stars 31 forks source link

the "p" of parameters in the API left sidebar is off #289

Closed 12rambau closed 1 year ago

12rambau commented 1 year ago

with respect to the other item types, the "p" is vertically off.

image

I thinks it's because you use both "height" and "line-height" parameters for the "obj-info" icons. as the small "p" goes under the line, it's off in the 16px square.

I'll open a PR to simply change small "p" into upper "P" which will be centered as the others !

jbms commented 1 year ago

I agree that the p doesn't display optimally but having a mix of cases was intentional. You can customize the letters with this option:

https://jbms.github.io/sphinx-immaterial/apidoc/index.html#objconf-toc_icon_text

2bndy5 commented 1 year ago

could also use custom CSS to adjust the colored bg size:

.objinfo-icon__sub-data {
  padding-bottom: 17px; // or whatever you're happy with
}
2bndy5 commented 11 months ago

fix available in v0.11.8