bashtage / sphinx-material

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

Better Support for Figures #110

Open kebekus opened 3 years ago

kebekus commented 3 years ago

Dear bashtage,

thank you so much for this wonderful style sphinx style! I would, however, like to ask for better support for figures. At present, figures are hardly discernible in the output. Figure headlines are in no way different from the text body. Alignment seems to be ignored. I would greatly appreciate if this could be improved.

Best -- and thanks again.

Stefan Kebekus.

bashtage commented 3 years ago

Are there any examples of this in the demo site you could point out?

kebekus commented 3 years ago

Dear bashtage,

thank you for your extremely prompt reply. I do not see any figures in the demo site, but you can find one on the site that I maintain:

As you can see, the figure "Approaching EDTF with traffic" at the top of the page is not centered even though the markup asks for it:

.. _EDTFtraffic:
.. figure:: ./autogenerated/02-01-01-traffic.png
   :scale: 30 %
   :align: center
   :alt: Approaching EDTF with traffic

   Approaching EDTF with traffic

In addition, I would like to suggest that the figure should be visually more prominent. At present, the figure caption looks not very different from the text body (and is aligned with the items in the list below!). Perhaps one could add a frame, the word "figure" or a slightly colored background rectangle to make it visually clear that the figure does not belong to the text body …?

Best -- and thanks again!

Stefan.