From b903b30d81eb531eead430db3c9cc934ab5dea8f Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 4 Jun 2018 21:12:57 +0800 Subject: Update old docs to new Pug templates --- docs/src/contents/avatars.pug | 93 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 docs/src/contents/avatars.pug (limited to 'docs/src/contents/avatars.pug') diff --git a/docs/src/contents/avatars.pug b/docs/src/contents/avatars.pug new file mode 100644 index 0000000..ff8f6c6 --- /dev/null +++ b/docs/src/contents/avatars.pug @@ -0,0 +1,93 @@ +p Avatars are user profile pictures. + +.columns + .column.col-6.col-xs-12 + figure.avatar.avatar-xl + img(src="img/avatar-1.png" alt="Avatar XL") + figure.avatar.avatar-lg + img(src="img/avatar-2.png" alt="Avatar LG") + figure.avatar + img(src="img/avatar-3.png" alt="Avatar") + figure.avatar.avatar-sm + img(src="img/avatar-4.png" alt="Avatar SM") + figure.avatar.avatar-xs + img(src="img/avatar-5.png" alt="Avatar XS") + .column.col-6.col-xs-12 + figure.avatar.avatar-xl(data-initial="YZ") + figure.avatar.avatar-lg(data-initial="YZ") + figure.avatar(data-initial="YZ") + figure.avatar.avatar-sm(data-initial="YZ") + figure.avatar.avatar-xs(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 #{'
'} element. + | The #[code data-initial] attribute is the name appear inside the avatar. + +.columns + .column.col-6.col-xs-12 + figure.avatar.avatar-xl + img(src="img/avatar-1.png" alt="Avatar") + img.avatar-icon(src="img/avatar-2.png" alt="Avatar") + figure.avatar.avatar-lg + img(src="img/avatar-2.png" alt="Avatar") + img.avatar-icon(src="img/avatar-3.png" alt="Avatar") + figure.avatar + img(src="img/avatar-3.png" alt="Avatar") + img.avatar-icon(src="img/avatar-4.png" alt="Avatar") + figure.avatar.avatar-sm + img(src="img/avatar-4.png" alt="Avatar") + img.avatar-icon(src="img/avatar-5.png" alt="Avatar") + figure.avatar.avatar-xs + img(src="img/avatar-5.png" alt="Avatar") + img.avatar-icon(src="img/avatar-1.png" alt="Avatar") + +pre.code(data-lang='HTML') + code + :highlight(lang="html") + +
+ ... +
+ +
+ ... + ... +
+ +
+ + +
+ ... +
+ +.columns + .column.col-6.col-xs-12 + figure.avatar.avatar-xl(data-initial="YZ") + i.avatar-presence.online + figure.avatar.avatar-lg(data-initial="YZ") + i.avatar-presence.busy + figure.avatar(data-initial="YZ") + i.avatar-presence.away + figure.avatar.avatar-sm(data-initial="YZ") + i.avatar-presence.offline + figure.avatar.avatar-xs(data-initial="YZ") + i.avatar-presence.online + +p + | Avatars support presence indicators. + | You can add an #{''} element with the #[code avatar-presence] class, and add #[code online], #[code busy] or #[code away] class for different status colors. + | The default is gray which means offline. + +pre.code(data-lang='HTML') + code + :highlight(lang="html") +
+ ... + +
\ No newline at end of file -- cgit v1.3.1-26-gb76a