Created
November 1, 2011 18:36
-
-
Save sorentwo/1331482 to your computer and use it in GitHub Desktop.
Velge markup overview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is the original input, we want it hidden | |
.velge-original { | |
display: none; | |
} | |
// This is the tag / input container | |
.velge { | |
// Tags list | |
ul { | |
// Tag item, comprised of a value and a remove link | |
li { | |
i {} | |
a {} | |
} | |
} | |
// Tag input field, this is inline with tags | |
input { | |
} | |
// A small trigger to toggle displaying the dropdown | |
button { | |
} | |
// The dropdown list, positioned directly below the input | |
ol { | |
li {} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input class='velge-original' type='text' /> | |
<div class='velge'> | |
<ul> | |
<li><i>internet explorer</i><a href='#'>x</a></li> | |
<li><i>opera</i><a href='#'>x</a></li> | |
</ul> | |
<input type='text' /> | |
<button>v</button> | |
</div> | |
<ol> | |
<li>Chrome</li> | |
<li>Firefox</li> | |
<li>Safari</li> | |
</ol> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment