<ol>
<li>This is a list item
<ol>
<li>This is a list sub item</li>
<li>This is a list sub item</li>
<li>This is a list sub item</li>
</ol>
</li>
<li>This is a list item
</li>
<li>This is a list item
<ol>
<li>This is a list sub item</li>
<li>This is a list sub item</li>
</ol>
</li>
<li>This is a list item
</li>
</ol>
<ol>
{{#each list.item}}
<li>{{text}}
{{#if item}}
<ol>
{{#each item}}
<li>{{text}}</li>
{{/each}}
</ol>
{{/if}}
</li>
{{/each}}
</ol>
{
"list": {
"item": [
{
"text": "This is a list item",
"item": [
{
"text": "This is a list sub item"
},
{
"text": "This is a list sub item"
},
{
"text": "This is a list sub item"
}
]
},
{
"text": "This is a list item"
},
{
"text": "This is a list item",
"item": [
{
"text": "This is a list sub item"
},
{
"text": "This is a list sub item"
}
]
},
{
"text": "This is a list item"
}
]
}
}
ul, ol{
& > li{
line-height: 1.3;
}
}
ul{
list-style-type: disc;
& > li > ul{
list-style-type: circle;
}
}
ol{
list-style-type: decimal;
& > li > ol{
list-style-type: lower-alpha;
}
}
.lst__unstyled, .list--unstyled {
list-style-type: none;
margin: 0;
padding: 0;
& ul { list-style-type: none }
}
.lst__inline, .list--inline {
@include mediaWQuery($media-query-m) {
& > li { display: inline-block }
}
}
There are no notes for this item.