Summary Files Commits Branches @commit @diff @stats
path: root / docs / components.html
diff options
context:
space:
mode:
Commit72834a9180fe90240f240e0ed06c08eb180a66ee (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-08-22 15:57:14 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-08-22 15:57:14 +0800
Files2cc7f379feaa5ed60052f77776c73f909e94c4a9 /docs/components.html
Spectre-Dark-Gruvbox-72834a9180fe90240f240e0ed06c08eb180a66ee.tar
Spectre-Dark-Gruvbox-72834a9180fe90240f240e0ed06c08eb180a66ee.tar.gz
Spectre-Dark-Gruvbox-72834a9180fe90240f240e0ed06c08eb180a66ee.zip
Parent33c7738eee4629a7ddb6ca02c7ba252808e74c69 (diff)
Add Avatars presence status code
1 files changed, 39 insertions, 9 deletions
-rw-r--r--docs/components.html48
diff --git a/docs/components.html b/docs/components.html
index f414d7c..ec965a1 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -532,20 +532,20 @@
</div>
<div class="columns">
<div class="column col-6 col-xs-12">
- <figure class="avatar avatar-xl" data-initial="YZ" style="background-color: #5764c6;">
- <img src="img/avatar-1.png" alt="Avatar" />
+ <figure class="avatar avatar-xl">
+ <img src="img/avatar-1.png" alt="Avatar XL" />
</figure>
- <figure class="avatar avatar-lg" data-initial="YZ" style="background-color: #5764c6;">
- <img src="img/avatar-2.png" alt="Avatar" />
+ <figure class="avatar avatar-lg">
+ <img src="img/avatar-2.png" alt="Avatar LG" />
</figure>
- <figure class="avatar" data-initial="YZ" style="background-color: #5764c6;">
+ <figure class="avatar">
<img src="img/avatar-3.png" alt="Avatar" />
</figure>
- <figure class="avatar avatar-sm" data-initial="YZ" style="background-color: #5764c6;">
- <img src="img/avatar-4.png" alt="Avatar" />
+ <figure class="avatar avatar-sm">
+ <img src="img/avatar-4.png" alt="Avatar SM" />
</figure>
- <figure class="avatar avatar-xs" data-initial="YZ" style="background-color: #5764c6;">
- <img src="img/avatar-5.png" alt="Avatar" />
+ <figure class="avatar avatar-xs">
+ <img src="img/avatar-5.png" alt="Avatar XS" />
</figure>
</div>
<div class="column col-6 col-xs-12">
@@ -604,6 +604,36 @@
&lt;<span class="tag">/figure</span>&gt;
</code></pre>
+ <div class="columns">
+ <div class="column col-6 col-xs-12">
+ <figure class="avatar avatar-xl" data-initial="YZ">
+ <i class="avatar-presence online"></i>
+ </figure>
+ <figure class="avatar avatar-lg" data-initial="YZ">
+ <i class="avatar-presence busy"></i>
+ </figure>
+ <figure class="avatar" data-initial="YZ">
+ <i class="avatar-presence away"></i>
+ </figure>
+ <figure class="avatar avatar-sm" data-initial="YZ">
+ <i class="avatar-presence offline"></i>
+ </figure>
+ <figure class="avatar avatar-xs" data-initial="YZ">
+ <i class="avatar-presence online"></i>
+ </figure>
+ </div>
+ </div>
+ <div class="docs-note">
+ <p>Avatars support presence indicators. You can add an <code>i</code> element with the <code>avatar-presence</code> class, and add <code>online</code>, <code>busy</code> or <code>away</code> class for different status colors. The default is gray which means offline. </p>
+ </div>
+
+<!-- avatars example -->
+<pre class="code" data-lang="HTML"><code>&lt;<span class="tag">figure</span> <span class="atn">class</span>=<span class="atv">&quot;avatar avatar-xl&quot;</span>&gt;
+ &lt;<span class="tag">img</span> <span class="atn">src</span>=<span class="atv">&quot;img/avatar-1.png&quot;</span> <span class="atn">alt</span>=<span class="atv">&quot;...&quot;</span> /&gt;
+ &lt;<span class="tag">i</span> <span class="atn">class</span>=<span class="atv">&quot;avatar-presence online&quot;</span>&gt;&lt;<span class="tag">/i</span>&gt;
+&lt;<span class="tag">/figure</span>&gt;
+</code></pre>
+
</div>
<div id="badges" class="container">