sphinx-material icon indicating copy to clipboard operation
sphinx-material copied to clipboard

How to decrease the overall width?

Open Yura52 opened this issue 5 years ago • 2 comments

The original mkdocs material theme is more "compact", i.e. content doesn't occupy all available space:

  • (sphinx) https://www.statsmodels.org
  • (mkdocs) https://fastapi.tiangolo.com (note available space in the left and right sides)

Is it possible achieve the same compactness with sphinx-material?

Yura52 avatar Jun 26 '20 08:06 Yura52

I think material for mkdocs has made some changes to the various width parameters that have not been synced.

This is a more accurate comparison against material for mkdocs own page:

https://squidfunk.github.io/mkdocs-material/plugins/search/

It is a bit wider than tiangolo.

AFAIK there is not easy way to change this right now. Ideally the underlying SCSS files would be kept in sync, but this is a non-trivial effort.

bashtage avatar Jun 26 '20 08:06 bashtage

I'm trying to work out a PR to update styling to the Mkdocs counterpart, but it's rather difficult. A simple CSS override for the time being should get a look that's more like mkdocs-material: https://gist.github.com/notpushkin/efdf663a5d170fb94c47c3d1f6a5583f (YMMV; mobile support pending)

notpushkin avatar Jan 17 '21 17:01 notpushkin