Avatar styling with different size options. It should only really be applied to square ratio images.
m.avatar
Block
.avatar
Sets a max-width on the image to double the base-spacing unit.
Elements
.avatar__body
- Required
Content that appears within the box.
This element is affects the structure of the component, which is why it’s required.
Modifiers
.avatar--round
- Enabled
Adds a border-radius of 50%
.avatar--large
- Enabled
Adjusts the max width to be four times the base spacing unit.
.avatar--small
- Enabled
Adjusts the max width to be a single base spacing unit.