Rich Text Lists
Lists display related content. This can be done either in an ordered or an unordered way.
This section only talks about Rich Text Lists, which are mainly used to bring structure and scannability into a piece of content. If you want to use lists to for displaying data from similar content types, or for navigation - check out the relevant components.
Unordered lists
Bullet points help break up large blocks of text, make complex articles and blog posts easier to grasp, and make key information stand out.
- lorem
- ipsum
- dolor
Ordered lists
Only use numbered lists when there is a sequence in the list of items.
An ordered list can be numerical or alphabetical.
- lorem
- ipsum
- dolor
- lorem
- ipsum
- dolor
{% include '@ec-europa/ecl-typography-lists' with modifier %}
/* No context defined for this component. */
<h3 class="ecl-heading ecl-heading--h3">Unordered list</h3>
<ul class="ecl-list">
<li>Item 1</li>
<li>Item 2
<ul class="ecl-list">
<li>Item 2.1</li>
<li>Item 2.2</li>
<li>Item 2.3</li>
</ul>
</li>
</ul>
<h3 class="ecl-heading ecl-heading--h3">Unstyled list</h3>
<ul class="ecl-list ecl-list--unstyled">
<li>Item 1</li>
<li>Item 2
<ul class="ecl-list ecl-list--unstyled">
<li>Item 2.1</li>
<li>Item 2.2</li>
<li>Item 2.3</li>
</ul>
</li>
</ul>
<h3 class="ecl-heading ecl-heading--h3">Inline list</h3>
<ul class="ecl-list ecl-list--inline">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
<h3 class="ecl-heading ecl-heading--h3">Ordered list</h3>
<ol class="ecl-list">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3
<ol class="ecl-list">
<li>Item 3.1</li>
<li>Item 3.2</li>
<li>Item 3.3</li>
</ol>
</li>
</ol>
<h3 class="ecl-heading ecl-heading--h3">Ordered list (alpha)</h3>
<ol class="ecl-list ecl-list--alpha">
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3
<ol class="ecl-list ecl-list--alpha">
<li>Item 3.1</li>
<li>Item 3.2</li>
<li>Item 3.3</li>
</ol>
</li>
</ol>
-
Content:
.ecl-list, .ecl-editor ul, .ecl-editor ol { max-width: 56rem; }
- URL: /components/raw/ema-typography-lists/ema-typography-lists.scss
- Filesystem Path: framework/content/ema-typography/ema-typography-lists/ema-typography-lists.scss
- Size: 66 Bytes
- Handle: @ec-europa/ema-typography-lists
- Preview:
- Filesystem Path: framework/content/ema-typography/ema-typography-lists/ema-typography-lists.twig