Skip to content

matthewmueller/list.css

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List.css

Focused, flexible CSS. Useful for lists, forms, etc.

list.css

Installation

component install matthewmueller/list.css

Classes:

  • .list: initialize the main list
  • .list-prepend: add icon, text, etc. to the front of a list item
  • .list-append: add icon, text, etc. to the end of the a list item

Examples:

Basic:

<ul class="list">
 <li>
   <i class="list-prepend icon-user"></i>
   Username: MattMueller
 </li>
</ul>

Form:

<ul class="list">
 <form action="/login">
    <li>
      <i class="list-prepend icon-user"></i>
      <i class="list-append icon-valid"></i>
      <input type="text" placeholder="username">
    </li>
    <li>
      <i class="list-prepend icon-user"></i>
      <i class="list-append icon-invalid"></i>
      <input type="text" placeholder="password">
    </li>
 </form>
</ul>

Settings:

<ul class="list">
 <li>
   <a href='/account'>
     <i class="list-prepend icon-account"></i>
     <i class="list-append icon-arrow"></i>
     Account
   </a>
 </li>
</ul>

Known Issues:

  • Ellipsis won't work on a link that overflows
  • You need to place .list-prepend, .list-append before the list item text or element.

About

Focused, flexible CSS. Useful for lists, forms, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published