From 78e146ff17306ab3810fbf5902cc4c0c66fdaf9e Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Fri, 31 Mar 2017 02:10:00 +0800 Subject: Add Avatars badge support --- docs/components.html | 48 +++++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 17 deletions(-) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index 7ea90dd..51de9b2 100644 --- a/docs/components.html +++ b/docs/components.html @@ -335,21 +335,28 @@

If there is no data-badge or the attribute is not specified, the badge will appear as a dot.

-
+
-
-
-
+
-
-
+
+
+ YZ +
+
+ YZ +
+
+ YZ +
+
-

Badges support button elements as well.

+

Badges support button and avatars elements as well.

@@ -357,13 +364,17 @@ Notifications </span> -<span class="badge" data-badge="88"> +<span class="badge" data-badge="8"> Notifications </span> -<button class="btn badge" data-badge="88"> +<button class="btn badge" data-badge="8"> Button </button> + +<figure class="avatar badge" data-badge="8" data-initial="YZ"> + <img src="img/avatar-3.png" alt="YZ" /> +</figure> @@ -371,7 +382,7 @@

Bars

-

Bars represent the progress of a task or the value within the known range. Bars are custom components for displaying HTML5 progress and meter elements.

+

Bars represent the progress of a task or the value within the known range. Bars are custom components for displaying HTML5 progress, meter and input range elements.

@@ -407,6 +418,7 @@ <div class="bar-item" role="progressbar" style="width:25%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div> </div> +<!-- multi-bars --> <div class="bar"> <div class="bar-item tooltip" data-tooltip="25%" style="width:25%;">25%</div> <div class="bar-item" style="width:15%;background:#818bd5;">15%</div> @@ -442,12 +454,14 @@
-
<div class="bar bar-slider">
+
<!-- slider -->
+<div class="bar bar-slider">
   <div class="bar-item" role="progressbar" style="width:25%;">
     <button class="bar-slider-btn" role="slider"></button>
   </div>
 </div>
 
+<!-- range slider -->
 <div class="bar bar-slider">
   <div class="bar-item" role="progressbar" style="width:15%;">
     <button class="bar-slider-btn" role="slider"></button>
@@ -995,7 +1009,7 @@