File tree Expand file tree Collapse file tree 2 files changed +47
-64
lines changed
apps/pattern-lab/src/_patterns/02-components/list
packages/components/bolt-list/src Expand file tree Collapse file tree 2 files changed +47
-64
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" pl-c-main" >
2
2
<div class =" pl-c-pattern-index" >
3
-
4
- <h3 >UL list</ h3 >
5
- <bolt -list tag = " ul " display =" block " spacing =" small" separator =" dashed" >
3
+ < h3 >Dynamic display</ h3 >
4
+ <p >(block on small, inline on medium, large and full)</ p >
5
+ <bolt -list display =" inline@small " spacing =" small" separator =" dashed" >
6
6
<bolt -list-item >
7
7
Item 1
8
8
</bolt -list-item >
15
15
<bolt -list-item >
16
16
Item 4
17
17
</bolt -list-item >
18
- <bolt -list-item >
18
+ <bolt -list-item last >
19
19
Item 5
20
20
</bolt -list-item >
21
21
</bolt -list >
22
22
23
- {# <h3>OL list</h3>#}
24
- {# <bolt-list tag="ol" inset>#}
25
- {# <bolt-list-item>#}
26
- {# Item 1#}
27
- {# </bolt-list-item>#}
28
- {# <bolt-list-item>#}
29
- {# Item 2#}
30
- {# </bolt-list-item>#}
31
- {# <bolt-list-item>#}
32
- {# Item 3#}
33
- {# </bolt-list-item>#}
34
- {# <bolt-list-item>#}
35
- {# Item 4#}
36
- {# </bolt-list-item>#}
37
- {# <bolt-list-item>#}
38
- {# Item 5#}
39
- {# </bolt-list-item>#}
40
- {# </bolt-list>#}
41
-
42
- {# <h3>DIV list</h3>#}
43
- {# <bolt-list tag="div" separator="solid">#}
44
- {# <bolt-list-item>#}
45
- {# Item 1#}
46
- {# </bolt-list-item>#}
47
- {# <bolt-list-item>#}
48
- {# Item 2#}
49
- {# </bolt-list-item>#}
50
- {# <bolt-list-item>#}
51
- {# Item 3#}
52
- {# </bolt-list-item>#}
53
- {# <bolt-list-item>#}
54
- {# Item 4#}
55
- {# </bolt-list-item>#}
56
- {# <bolt-list-item>#}
57
- {# Item 5#}
58
- {# </bolt-list-item>#}
59
- {# </bolt-list>#}
23
+ <h3 >Display inline</h3 >
24
+ <bolt -list display =" inline" spacing =" small" separator =" dashed" >
25
+ <bolt -list-item >
26
+ Item 1
27
+ </bolt -list-item >
28
+ <bolt -list-item >
29
+ Item 2
30
+ </bolt -list-item >
31
+ <bolt -list-item >
32
+ Item 3
33
+ </bolt -list-item >
34
+ <bolt -list-item >
35
+ Item 4
36
+ </bolt -list-item >
37
+ <bolt -list-item last >
38
+ Item 5
39
+ </bolt -list-item >
40
+ </bolt -list >
60
41
61
- {# <h3>SPAN list </h3>#}
62
- {# <bolt-list tag="span" display="inline " separator="dashed">#}
63
- {# <bolt-list-item>#}
64
- {# Item 1#}
65
- {# </bolt-list-item>#}
66
- {# <bolt-list-item>#}
67
- {# Item 2#}
68
- {# </bolt-list-item>#}
69
- {# <bolt-list-item>#}
70
- {# Item 3#}
71
- {# </bolt-list-item>#}
72
- {# <bolt-list-item>#}
73
- {# Item 4#}
74
- {# </bolt-list-item>#}
75
- {# <bolt-list-item> #}
76
- {# Item 5#}
77
- {# </bolt-list-item>#}
78
- {# </bolt-list>#}
42
+ <h3 >Display Block </h3 >
43
+ <bolt -list display = " block " spacing = " small " separator =" dashed" >
44
+ <bolt -list-item >
45
+ Item 1
46
+ </bolt -list-item >
47
+ <bolt -list-item >
48
+ Item 2
49
+ </bolt -list-item >
50
+ <bolt -list-item >
51
+ Item 3
52
+ </bolt -list-item >
53
+ <bolt -list-item >
54
+ Item 4
55
+ </bolt -list-item >
56
+ <bolt -list-item last >
57
+ Item 5
58
+ </bolt -list-item >
59
+ </bolt -list >
79
60
</div >
80
61
</div >
81
62
Original file line number Diff line number Diff line change @@ -61,11 +61,13 @@ $bolt-list-separator-styles: solid, dashed;
61
61
$breakpoint-name : nth ($breakpoint , 1 );
62
62
63
63
& .c-bolt-list-item--display-inline\@ #{$breakpoint-name } {
64
- border-bottom-width : 1px ;
64
+ & :not (.c-bolt-list-item--last-item ) {
65
+ border-bottom-width : 1px ;
65
66
66
- @include bolt-mq ($breakpoint-name ) {
67
- border-right-width : 1px ;
68
- border-bottom-width : 0 ;
67
+ @include bolt-mq ($breakpoint-name ) {
68
+ border-right-width : 1px ;
69
+ border-bottom-width : 0 ;
70
+ }
69
71
}
70
72
}
71
73
}
@@ -94,7 +96,7 @@ $bolt-list-separator-styles: solid, dashed;
94
96
$breakpoint-name : nth ($breakpoint , 1 );
95
97
96
98
& .c-bolt-list-item--spacing-#{$spacing-value-name } {
97
- .c-bolt-list-item--display-inline\@ #{$breakpoint-name } {
99
+ & .c-bolt-list-item--display-inline\@ #{$breakpoint-name } {
98
100
@include bolt-padding-bottom (#{$spacing-value-name } );
99
101
100
102
@include bolt-mq ($breakpoint-name ) {
You can’t perform that action at this time.
0 commit comments