|
1 | 1 | .portal-news-tickets-component { |
2 | 2 | .neo-badge { |
3 | 3 | align-items : center; |
4 | | - background-color: #eff1f3; // Default fallback |
5 | | - border : 1px solid rgba(0, 0, 0, 0.1); |
| 4 | + background-color: var(--gh-badge-bg); // Default fallback |
| 5 | + border : 1px solid var(--gh-badge-border); |
6 | 6 | border-radius : 2em; |
7 | | - color : #24292f; |
| 7 | + color : var(--gh-text-primary); |
8 | 8 | display : inline-flex; |
9 | 9 | font-size : 12px; |
10 | 10 | font-weight : 500; |
|
14 | 14 |
|
15 | 15 | &.neo-state-badge { |
16 | 16 | border-radius: 2em; |
17 | | - color : #ffffff; |
| 17 | + color : var(--gh-text-inverse); |
18 | 18 | gap : 6px; |
19 | 19 | padding : 2px 10px 2px 8px; |
20 | 20 |
|
21 | 21 | &.neo-state-closed { |
22 | | - background-color : #8250df; |
| 22 | + background-color : var(--gh-state-closed-bg); |
23 | 23 | } |
24 | 24 |
|
25 | 25 | &.neo-state-open { |
26 | | - background-color: #2da44e; |
| 26 | + background-color: var(--gh-state-open-bg); |
27 | 27 | } |
28 | 28 | } |
29 | 29 | } |
|
59 | 59 |
|
60 | 60 | i { |
61 | 61 | &.fa-circle-check { |
62 | | - color: #2da44e; // GitHub success green |
| 62 | + color: var(--gh-state-open-bg); // GitHub success green |
63 | 63 | } |
64 | 64 |
|
65 | 65 | &.fa-circle { |
66 | | - color: #8c959f; // GitHub muted grey |
| 66 | + color: var(--gh-icon-muted); // GitHub muted grey |
67 | 67 | } |
68 | 68 | } |
69 | 69 | } |
|
85 | 85 | // Vertical Line |
86 | 86 | &::before { |
87 | 87 | display: none; // Hiding it, since we use the canvas animation now |
88 | | - background-color: #d0d7de; |
| 88 | + background-color: var(--gh-border-default); |
89 | 89 | bottom : 0; |
90 | 90 | content : ''; |
91 | 91 | left : 30px; |
|
107 | 107 | &.event { |
108 | 108 | .neo-timeline-badge { |
109 | 109 | align-items : center; |
110 | | - background : #eff1f3; |
111 | | - border : 2px solid #fff; // visual gap from line |
| 110 | + background : var(--gh-badge-bg); |
| 111 | + border : 2px solid var(--gh-bg-default); // visual gap from line |
112 | 112 | border-radius : 50%; |
113 | 113 | display : flex; |
114 | 114 | height : 28px; |
|
122 | 122 | z-index : 1; |
123 | 123 |
|
124 | 124 | i { |
125 | | - color : #57606a; |
| 125 | + color : var(--gh-text-secondary); |
126 | 126 | font-size: 14px; |
127 | 127 | } |
128 | 128 | } |
129 | 129 |
|
130 | 130 | .neo-timeline-body { |
131 | | - color : #57606a; |
| 131 | + color : var(--gh-text-secondary); |
132 | 132 | font-size : 13px; |
133 | 133 | padding-top: 2px; |
134 | 134 |
|
135 | 135 | .neo-timeline-user { |
136 | | - color : #24292f; |
| 136 | + color : var(--gh-text-primary); |
137 | 137 | cursor : pointer; |
138 | 138 | font-weight : 600; |
139 | 139 | text-decoration: none; |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 |
|
147 | | - &.purple .neo-timeline-badge i { color: #8250df; } |
148 | | - &.green .neo-timeline-badge i { color: #2da44e; } |
| 147 | + &.purple .neo-timeline-badge i { color: var(--gh-state-closed-bg); } |
| 148 | + &.green .neo-timeline-badge i { color: var(--gh-state-open-bg); } |
149 | 149 | } |
150 | 150 |
|
151 | 151 | &.comment { |
|
160 | 160 | z-index : 1; |
161 | 161 |
|
162 | 162 | img { |
163 | | - border : 2px solid #fff; |
| 163 | + border : 2px solid var(--gh-bg-default); |
164 | 164 | border-radius: 50%; |
165 | 165 | width : 100%; |
166 | 166 | } |
167 | 167 | } |
168 | 168 |
|
169 | 169 | .neo-timeline-content { |
170 | | - background : white; |
171 | | - border : 1px solid #d0d7de; |
| 170 | + background : var(--gh-bg-default); |
| 171 | + border : 1px solid var(--gh-border-default); |
172 | 172 | border-radius: 6px; |
173 | 173 | position : relative; |
174 | 174 |
|
|
186 | 186 |
|
187 | 187 | &::after { |
188 | 188 | border-color : rgba(255, 255, 255, 0); |
189 | | - border-right-color: #f6f8fa; |
| 189 | + border-right-color: var(--gh-bg-subtle); |
190 | 190 | border-width : 7px; |
191 | 191 | margin-top : -7px; |
192 | 192 | } |
193 | 193 |
|
194 | 194 | &::before { |
195 | 195 | border-color : rgba(208, 215, 222, 0); |
196 | | - border-right-color: #d0d7de; |
| 196 | + border-right-color: var(--gh-border-default); |
197 | 197 | border-width : 8px; |
198 | 198 | margin-top : -8px; |
199 | 199 | } |
200 | 200 |
|
201 | 201 | .neo-timeline-header { |
202 | 202 | align-items : center; |
203 | | - background-color: #f6f8fa; |
204 | | - border-bottom : 1px solid #d0d7de; |
| 203 | + background-color: var(--gh-bg-subtle); |
| 204 | + border-bottom : 1px solid var(--gh-border-default); |
205 | 205 | border-radius : 6px 6px 0 0; |
206 | | - color : #57606a; |
| 206 | + color : var(--gh-text-secondary); |
207 | 207 | display : flex; |
208 | 208 | font-size : 13px; |
209 | 209 | justify-content : space-between; |
210 | 210 | padding : 8px 16px; |
211 | 211 |
|
212 | 212 | .neo-timeline-user { |
213 | | - color : #24292f; |
| 213 | + color : var(--gh-text-primary); |
214 | 214 | cursor : pointer; |
215 | 215 | font-weight : 600; |
216 | 216 | margin-right : 8px; |
|
0 commit comments