On any webpage we often need a list component. Even if we consider this wepage the side navabr is also a list. Hence, Bermuda also gives us the pre-defined css classes for list components.
Lists in Bermuda
Simple List
Simple list comes with a list title and with no default text-decoration to list elements.
- Home
- Decore
- Fashion
- Electronics
Simple List
<ul class="list">
<div class="list__title">
<h4>Simple List</h4>
</div>
<li>Home</li>
<li>Decore</li>
<li>Fashion</li>
<li>Electronics</li>
</ul>
Nested List
Sometimes we need to nest list elements. Bermuda provides the style for nested list components also.
- Home
-
Fashion
- Mens
- Womens
- Children
- Decore
- Electronics
Nested List
<ul class="list">
<div class="list__title">
<h4>Nested List</h4>
</div>
<li>Home</li>
<li class="nested-list">
<div class="nested-list__title">Fashion</div>
<ul>
<li>Mens</li>
<li>Womens</li>
<li>Children</li>
</ul>
</li>
<li>Decore</li>
<li>Electronics</li>
</ul>
Scrollable List
Scrollable list comes handy when we have more list elements and least place to fit all the list elements. Bermuda gives the design classes for scrollable list also.
- Home
- Decore
- Fashion
- Mens
- Womens
- Children
- Home
- Decore
- Fashion
- Mens
- Womens
- Children
Scrollable List
<ul class="list list-scroll">
<div class="list__title">
<h4>Scrollable List</h4>
</div>
<li>Home</li>
<li>Decore</li>
<li>Fashion</li>
<li>Mens</li>
<li>Womens</li>
<li>Children</li>
<li>Home</li>
<li>Decore</li>
<li>Fashion</li>
<li>Mens</li>
<li>Womens</li>
<li>Children</li>
</ul>