Single line
For the the list you need an element with the class .list
.
Now you can specify the type of line for each child element.
For the single line this would mean class .list--single-line
The content of a list item needs the class .list__content
.
If you would like to add a support icon or image you also need to give the list item the class .list--support
.
For the larger support image you need to use class .list--support--large
instead.
The image/ icon it self need to get the class list__support__icon
For a control element like the "more vertical" in the examples you need to use the class .list__control
on the control element.
-
Single line item
-
Single line item
person
-
person
Singe line item
more_vert
-
Singe line item
more_vert
-
Singe line item
more_vert
-
Singe line item
more_vert
<ul class="list">
<li class="list--single-line">
<span class="list__content">Single line item</span>
</li>
<li class="list--single-line">
<span class="list__content">Single line item</span>
<i class="material-icons icon list__control">person</i>
</li>
<li class="list--single-line list--support">
<i class="material-icons icon list__support__icon">person</i>
<span class="list__content">Singe line item</span>
<i class="material-icons icon list__control">more_vert</i>
</li>
<li class="list--single-line list--support">
<div class="list__support__image">
<img src="//i.pravatar.cc/40">
</div>
<span class="list__content">Singe line item</span>
<i class="material-icons icon list__control">more_vert</i>
</li>
<li class="list--single-line list--support--large">
<div class="list__support__image">
<img src="//via.placeholder.com/56x56">
</div>
<span class="list__content">Singe line item</span>
<i class="material-icons icon list__control">more_vert</i>
</li>
<li class="list--single-line list--support--large">
<div class="list__support__image--large">
<img src="//placeimg.com/100/56/nature">
</div>
<span class="list__content">Singe line item</span>
<i class="material-icons icon list__control">more_vert</i>
</li>
</ul>
Three line
The three line is exactly the same as the two-line except the list item now needs class .list--three-line
.
-
Three line item
Secondary text Lorem ipsum dolor sit
amet, consectetu adipiscing elit.
-
Overline
Three line item
Secondary text Lorem ipsum dolor sit amet.
-
person
Three line item
Secondary text Lorem ipsum dolor sit
amet, consectetu adipiscing elit.
more_vert
-
Three line item
Secondary text Lorem ipsum dolor sit
amet, consectetu.
more_vert
-
Three line item
Secondary text Lorem ipsum dolor sit
amet, consectetu.
more_vert
-
Two line item
Secondary text Lorem ipsum dolor sit
amet, consectetu.
more_vert
<ul class="list">
<li class="list--three-line">
<div class="list__content">
<span class="list__content__title">Three line item</span>
<span class="list__content__text">Secondary text Lorem ipsum dolor sit<br>amet, consectetu adipiscing elit.</span>
</div>
</li>
<li class="list--three-line">
<div class="list__content">
<span class="overline">Overline</span>
<span class="list__content__title">Three line item</span>
<span class="list__content__text">Secondary text Lorem ipsum dolor sit amet.</span>
</div>
</li>
<li class="list--three-line list--support">
<i class="material-icons icon list__support__icon">person</i>
<div class="list__content">
<span class="list__content__title">Three line item</span>
<span class="list__content__text">Secondary text Lorem ipsum dolor sit<br>amet, consectetu adipiscing elit.</span>
</div>
<i class="material-icons icon list__control">more_vert</i>
</li>
<li class="list--three-line list--support">
<div class="list__support__image">
<img src="//i.pravatar.cc/40">
</div>
<div class="list__content">
<span class="list__content__title">Three line item</span>
<span class="list__content__text">Secondary text Lorem ipsum dolor sit<br>amet, consectetu.</span>
</div>
<i class="material-icons icon list__control">more_vert</i>
</li>
<li class="list--three-line list--support">
<div class="list__support__image">
<img src="//i.pravatar.cc/40" class="shape--circle">
</div>
<div class="list__content">
<span class="list__content__title">Three line item</span>
<span class="list__content__text">Secondary text Lorem ipsum dolor sit<br>amet, consectetu.</span>
</div>
<i class="material-icons icon list__control">more_vert</i>
</li>
<li class="list--three-line list--support">
<div class="list__support__image--large">
<img src="//placeimg.com/100/56/nature">
</div>
<div class="list__content">
<span class="list__content__title">Two line item</span>
<span class="list__content__text">Secondary text Lorem ipsum dolor sit<br>amet, consectetu.</span>
</div>
<i class="material-icons icon list__control">more_vert</i>
</li>
</ul>