2016-10-31 18:04:15 +00:00
|
|
|
//- 💫 CSS > COMPONENTS > LISTS
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
//- List Container
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
.c-list
|
|
|
|
@each $type, $counter in (numbers: decimal, letters: upper-latin, roman: lower-roman)
|
|
|
|
&.c-list--#{$type}
|
|
|
|
counter-reset: li
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
.c-list__item:before
|
|
|
|
content: counter(li, #{$counter}) '.'
|
2017-10-03 12:14:52 +00:00
|
|
|
font-size: 1em
|
|
|
|
padding-right: 1rem
|
2016-03-31 14:24:48 +00:00
|
|
|
|
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
//- List Item
|
2016-03-31 14:24:48 +00:00
|
|
|
|
2016-10-03 18:19:13 +00:00
|
|
|
.c-list__item
|
|
|
|
padding-left: 2rem
|
2016-10-31 18:04:15 +00:00
|
|
|
margin-bottom: 0.5em
|
2016-10-03 18:19:13 +00:00
|
|
|
margin-left: 1.25rem
|
2016-03-31 14:24:48 +00:00
|
|
|
|
|
|
|
&:before
|
2016-10-03 18:19:13 +00:00
|
|
|
content: '\25CF'
|
2016-03-31 14:24:48 +00:00
|
|
|
display: inline-block
|
2017-10-03 12:14:52 +00:00
|
|
|
font-size: 0.6em
|
2016-10-03 18:19:13 +00:00
|
|
|
font-weight: bold
|
2017-10-09 12:36:30 +00:00
|
|
|
padding-right: 1em
|
2016-10-03 18:19:13 +00:00
|
|
|
margin-left: -3.75rem
|
|
|
|
text-align: right
|
|
|
|
width: 2.5rem
|
|
|
|
counter-increment: li
|
2017-10-03 12:14:52 +00:00
|
|
|
box-sizing: content-box
|
2016-10-31 18:04:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
//- List icon
|
|
|
|
|
|
|
|
.c-list__icon
|
|
|
|
margin-right: 1rem
|