bashtage / sphinx-material

A material-based, responsive theme inspired by mkdocs-material
Other
317 stars 91 forks source link

How to decrease the overall width? #58

Open Yura52 opened 4 years ago

Yura52 commented 4 years ago

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

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

bashtage commented 4 years ago

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.

notpushkin commented 3 years ago

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)