From 4e1679e5e901d3c2464bb26f6ce3ec284deaae1c Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 2 Jan 2017 20:28:59 +0800 Subject: CHG: Update chip and autocomplete components --- index.html | 115 +++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 66 insertions(+), 49 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index 3d60f0b..e13dd3c 100644 --- a/index.html +++ b/index.html @@ -1559,7 +1559,6 @@
- Drama
@@ -1574,19 +1573,34 @@
- +
Tony Stark
- + Thor Odinson
Steve Rogers - +
+
+ +
+
+
+
+ +
+
+
Tony Stark
+
Iron Man
+
+
+ +
@@ -1628,12 +1642,12 @@
- +
Tony Stark
- + Thor Odinson
@@ -1643,12 +1657,10 @@
- Bruce Banner
- Natasha Romanoff
@@ -1689,37 +1701,38 @@
- - Tony Stark + Bruce Banner
- + Thor Odinson
- +
-
-

Add a container element with the class form-autocomplete. There are 2 parts of it, one is form-autocomplete-input, another is form-autocomplete-list. Spectre.css does not include JavaScript code, you will need to implement your JS to interact with the autocomplete. The autocomplete HTML structure is exampled below.

+

Add a container element with the class form-autocomplete. There are 2 parts of it, one is form-autocomplete-input, another is menu component. Spectre.css does not include JavaScript code, you will need to implement your JS to interact with the autocomplete. The autocomplete HTML structure is exampled below.

@@ -1750,27 +1763,31 @@ <input class="form-input" type="text" placeholder="typing here" /> </div> <!-- autocomplete suggestion list --> - <ul class="form-autocomplete-list"> - <!-- autocomplete list chips --> - <li class="form-autocomplete-item"> - <div class="chip hand"> - <div class="chip-icon"> - <img src="img/avatar-4.png" class="avatar" /> - </div> - <div class="chip-content"> - Steve Rogers + <ul class="menu"> + <!-- menu list chips --> + <li class="menu-item"> + <a href="#"> + <div class="chip"> + <div class="chip-icon"> + <img src="img/avatar-4.png" class="avatar" /> + </div> + <div class="chip-content"> + Steve Rogers + </div> </div> - </div> + </a> </li> - <li class="form-autocomplete-item"> - <div class="chip hand"> - <div class="chip-icon"> - <img src="img/avatar-3.png" class="avatar" /> - </div> - <div class="chip-content"> - Yan Zhu + <li class="menu-item"> + <a href="#"> + <div class="chip"> + <div class="chip-icon"> + <img src="img/avatar-3.png" class="avatar" /> + </div> + <div class="chip-content"> + Yan Zhu + </div> </div> - </div> + </a> </li> </ul> </div> -- cgit v1.3.1-23-gd82d