Buttons
Adding buttons
When the Attribute List extension is enabled, any clickable element can be converted into a button by adding the .md-button
CSS class, which will receive the selected primary color.
Example:
Result:
Adding primary buttons
If you want to display a filled, primary button (like on the landing page of Material for MkDocs), add both the .md-button
and .md-button--primary
CSS classes.
Example:
Result:
Adding icon buttons
Of course, icons can be added to both types of buttons by using the regular icon syntax and referencing a valid path to any icon bundled with the theme.
Example:
Result:
Last update: February 28, 2022
Created: September 12, 2021
Created: September 12, 2021