Specifying button width with built-in CSS classes #3927
-
Contribution guidelines
I want to suggest an idea and checked that ...
DescriptionButtons section in the documentation describes the usage of Use CasesE.g. making the buttons equally wide for eye candy. Screenshots / MockupsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Thanks for suggesting! However, this is a prime example of customization via additional CSS. I think it is very important that we don't let the Material for MkDocs documentation turn into a general web development guide, so I'd rather recommend asking pure CSS-directed questions like this on StackOverflow or on our discussions board. After all, this has nothing to do with this project in particular. We need to keep our focus sharp. Converting to discussion. |
Beta Was this translation helpful? Give feedback.
-
Fine. Does Material for MkDocs provide ready-made classes for this in a way e.g. Tailwind CSS or Bootstrap does? |
Beta Was this translation helpful? Give feedback.
-
Sure, thanks for your help! |
Beta Was this translation helpful? Give feedback.
Material for MkDocs is written entirely from scratch without the help of such a framework, so no, there are no such classes. However, you might be able to use helper classes from one of those frameworks, adding it via additional CSS. Learning some CSS might also be an idea if you want to customize the theme. Maybe this is a start (untested):
Then add:
You have to understand that, in general, I can't help users with customizing their installations, because if I would agree to do that, this project won't move forward because I will be doing nothing else except helping everyb…