extends ../_layout/_docs-layout.pug
block variables
- var slug = 'avatars'
- var parent = 'components'
- var title = 'Avatars - Components - Spectre.css CSS Framework'
- var description = 'Avatars are user profile pictures. Spectre.css CSS Framework is a lightweight, responsive and modern CSS framework for faster and extensible development.'
block docs-content
+docs-heading('avatars', 'Avatars')
include ../_layout/_ad-g.pug
p Avatars are user profile pictures.
.docs-demo.columns
.column.col-6.col-xs-12
figure.avatar.avatar-xl.mr-2
img(src="../img/avatar-1.png" alt="Avatar XL")
figure.avatar.avatar-lg.mr-2
img(src="../img/avatar-2.png" alt="Avatar LG")
figure.avatar.mr-2
img(src="../img/avatar-3.png" alt="Avatar")
figure.avatar.avatar-sm.mr-2
img(src="../img/avatar-4.png" alt="Avatar SM")
figure.avatar.avatar-xs.mr-2
img(src="../img/avatar-5.png" alt="Avatar XS")
.column.col-6.col-xs-12
figure.avatar.avatar-xl.mr-2(data-initial="YZ")
figure.avatar.avatar-lg.mr-2(data-initial="YZ")
figure.avatar.mr-2(data-initial="YZ")
figure.avatar.avatar-sm.mr-2(data-initial="YZ")
figure.avatar.avatar-xs.mr-2(data-initial="YZ")
p
| Add the #[code avatar] class to #{''} element.
| There are 4 additional sizes available, including #[code avatar-xl](64px), #[code avatar-lg](48px), #[code avatar-sm](24px), and #[code avatar-xs](16px).
| By default, the avatar size is 32px.
p
| For users who don't have profile pictures, you may use their initials for avatars.
| Add the #[code avatar] class and avatar size class to #{'