@@ -17,9 +17,9 @@ The `TimelineItem` component is used to display items on a vertical timeline, co
17
17
</div >
18
18
19
19
<div class =" TimelineItem-body" >
20
- <a href =" #" class =" text-bold link-gray-dark mr-1" >Monalisa</a > created one
21
- <a href =" #" class =" text-bold link-gray-dark " >hot potato</a >
22
- <a href =" #" class =" link-gray " >Just now</a >
20
+ <a href =" #" class =" text-bold Link--primary mr-1" >Monalisa</a > created one
21
+ <a href =" #" class =" text-bold Link--primary " >hot potato</a >
22
+ <a href =" #" class =" Link--secondary " >Just now</a >
23
23
</div >
24
24
</div >
25
25
```
@@ -49,7 +49,7 @@ To have color variants, use the [color utilities](/utilities/colors) on the badg
49
49
``` html live
50
50
<!-- Colorful TimelineItem Badge -->
51
51
<div class =" TimelineItem" >
52
- <div class =" TimelineItem-badge bg-red text-white" >
52
+ <div class =" TimelineItem-badge color- bg-danger-inverse color- text-white" >
53
53
<svg width =" 16" height =" 16" viewBox =" 0 0 16 16" fill =" currentColor" class =" octicon" >
54
54
<path fill-rule =" evenodd" clip-rule =" evenodd" d =" M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zM5.32 9.636a.75.75 0 011.038.175l.007.009a1.82 1.82 0 00.35.31c.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371a1.82 1.82 0 00.35-.31l.007-.008a.75.75 0 011.222.87l-.614-.431c.614.43.614.431.613.431v.001l-.001.002-.002.003-.005.007-.014.019a1.989 1.989 0 01-.184.213 3.32 3.32 0 01-.53.445A3.766 3.766 0 018 12c-.946 0-1.652-.308-2.126-.63a3.323 3.323 0 01-.673-.604 1.975 1.975 0 01-.042-.053l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 01.183-1.044z" ></path >
55
55
</svg >
@@ -59,7 +59,7 @@ To have color variants, use the [color utilities](/utilities/colors) on the badg
59
59
</div >
60
60
</div >
61
61
<div class =" TimelineItem" >
62
- <div class =" TimelineItem-badge bg-green text-white" >
62
+ <div class =" TimelineItem-badge color- bg-success-inverse color- text-white" >
63
63
<svg width =" 16" height =" 16" viewBox =" 0 0 16 16" fill =" currentColor" class =" octicon" >
64
64
<path fill-rule =" evenodd" clip-rule =" evenodd" d =" M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zM5.32 9.636a.75.75 0 011.038.175l.007.009a1.82 1.82 0 00.35.31c.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371a1.82 1.82 0 00.35-.31l.007-.008a.75.75 0 011.222.87l-.614-.431c.614.43.614.431.613.431v.001l-.001.002-.002.003-.005.007-.014.019a1.989 1.989 0 01-.184.213 3.32 3.32 0 01-.53.445A3.766 3.766 0 018 12c-.946 0-1.652-.308-2.126-.63a3.323 3.323 0 01-.673-.604 1.975 1.975 0 01-.042-.053l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 01.183-1.044z" ></path >
65
65
</svg >
@@ -68,18 +68,19 @@ To have color variants, use the [color utilities](/utilities/colors) on the badg
68
68
Green background when opened or passed events occur
69
69
</div >
70
70
</div >
71
- <div class =" TimelineItem" >
72
- <div class =" TimelineItem-badge bg-purple text-white" >
71
+ <!-- TODO: Replace bg-purple in V2
72
+ <div class="TimelineItem">
73
+ <div class="TimelineItem-badge bg-purple color-text-white">
73
74
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" class="octicon">
74
75
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zM5.32 9.636a.75.75 0 011.038.175l.007.009a1.82 1.82 0 00.35.31c.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371a1.82 1.82 0 00.35-.31l.007-.008a.75.75 0 011.222.87l-.614-.431c.614.43.614.431.613.431v.001l-.001.002-.002.003-.005.007-.014.019a1.989 1.989 0 01-.184.213 3.32 3.32 0 01-.53.445A3.766 3.766 0 018 12c-.946 0-1.652-.308-2.126-.63a3.323 3.323 0 01-.673-.604 1.975 1.975 0 01-.042-.053l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 01.183-1.044z"></path>
75
76
</svg>
76
77
</div>
77
78
<div class="TimelineItem-body">
78
79
Purple background used when pull requests are merged
79
80
</div>
80
- </div >
81
+ </div> -->
81
82
<div class =" TimelineItem" >
82
- <div class =" TimelineItem-badge bg-blue text-white" >
83
+ <div class =" TimelineItem-badge color- bg-info-inverse color- text-white" >
83
84
<svg width =" 16" height =" 16" viewBox =" 0 0 16 16" fill =" currentColor" class =" octicon" >
84
85
<path fill-rule =" evenodd" clip-rule =" evenodd" d =" M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zM5.32 9.636a.75.75 0 011.038.175l.007.009a1.82 1.82 0 00.35.31c.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371a1.82 1.82 0 00.35-.31l.007-.008a.75.75 0 011.222.87l-.614-.431c.614.43.614.431.613.431v.001l-.001.002-.002.003-.005.007-.014.019a1.989 1.989 0 01-.184.213 3.32 3.32 0 01-.53.445A3.766 3.766 0 018 12c-.946 0-1.652-.308-2.126-.63a3.323 3.323 0 01-.673-.604 1.975 1.975 0 01-.042-.053l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 01.183-1.044z" ></path >
85
86
</svg >
@@ -135,9 +136,9 @@ Sometimes you want to give ownership to an event by displaying an [Avatar]() of
135
136
</div >
136
137
137
138
<div class =" TimelineItem-body" >
138
- <a href =" #" class =" text-bold link-gray-dark mr-1" >Monalisa</a > created one
139
- <a href =" #" class =" text-bold link-gray-dark " >hot potato</a >
140
- <a href =" #" class =" link-gray " >Just now</a >
139
+ <a href =" #" class =" text-bold Link--primary mr-1" >Monalisa</a > created one
140
+ <a href =" #" class =" text-bold Link--primary " >hot potato</a >
141
+ <a href =" #" class =" Link--secondary " >Just now</a >
141
142
</div >
142
143
</div >
143
144
</div >
@@ -149,7 +150,7 @@ To create a visual break in the timeline, use `TimelineItem-break`. This adds a
149
150
150
151
``` html live
151
152
<div class =" TimelineItem" >
152
- <div class =" TimelineItem-badge bg-red text-white" >
153
+ <div class =" TimelineItem-badge color- bg-danger-inverse color- text-white" >
153
154
<svg width =" 16" height =" 16" viewBox =" 0 0 16 16" fill =" currentColor" class =" octicon" >
154
155
<path fill-rule =" evenodd" clip-rule =" evenodd" d =" M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zM5.32 9.636a.75.75 0 011.038.175l.007.009a1.82 1.82 0 00.35.31c.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371a1.82 1.82 0 00.35-.31l.007-.008a.75.75 0 011.222.87l-.614-.431c.614.43.614.431.613.431v.001l-.001.002-.002.003-.005.007-.014.019a1.989 1.989 0 01-.184.213 3.32 3.32 0 01-.53.445A3.766 3.766 0 018 12c-.946 0-1.652-.308-2.126-.63a3.323 3.323 0 01-.673-.604 1.975 1.975 0 01-.042-.053l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 01.183-1.044z" ></path >
155
156
</svg >
@@ -160,7 +161,7 @@ To create a visual break in the timeline, use `TimelineItem-break`. This adds a
160
161
</div >
161
162
<div class =" TimelineItem-break ml-0" ></div >
162
163
<div class =" TimelineItem" >
163
- <div class =" TimelineItem-badge bg-green text-white" >
164
+ <div class =" TimelineItem-badge color- bg-success-inverse color- text-white" >
164
165
<svg width =" 16" height =" 16" viewBox =" 0 0 16 16" fill =" currentColor" class =" octicon" >
165
166
<path fill-rule =" evenodd" clip-rule =" evenodd" d =" M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 100-2 1 1 0 000 2zm7-1a1 1 0 11-2 0 1 1 0 012 0zM5.32 9.636a.75.75 0 011.038.175l.007.009a1.82 1.82 0 00.35.31c.264.178.683.37 1.285.37.602 0 1.02-.192 1.285-.371a1.82 1.82 0 00.35-.31l.007-.008a.75.75 0 011.222.87l-.614-.431c.614.43.614.431.613.431v.001l-.001.002-.002.003-.005.007-.014.019a1.989 1.989 0 01-.184.213 3.32 3.32 0 01-.53.445A3.766 3.766 0 018 12c-.946 0-1.652-.308-2.126-.63a3.323 3.323 0 01-.673-.604 1.975 1.975 0 01-.042-.053l-.014-.02-.005-.006-.002-.003v-.002h-.001l.613-.432-.614.43a.75.75 0 01.183-1.044z" ></path >
166
167
</svg >
@@ -181,9 +182,9 @@ To create a visual break in the timeline, use `TimelineItem-break`. This adds a
181
182
</a >
182
183
183
184
<div class =" TimelineItem-body" >
184
- <a href =" #" class =" text-bold link-gray-dark mr-1" >Monalisa</a > created one
185
- <a href =" #" class =" text-bold link-gray-dark " >hot potato</a >
186
- <a href =" #1" class =" link-gray " >Just now</a >
185
+ <a href =" #" class =" text-bold Link--primary mr-1" >Monalisa</a > created one
186
+ <a href =" #" class =" text-bold Link--primary " >hot potato</a >
187
+ <a href =" #1" class =" Link--secondary " >Just now</a >
187
188
</div >
188
189
</div >
189
190
```
0 commit comments