File tree Expand file tree Collapse file tree 4 files changed +43
-46
lines changed Expand file tree Collapse file tree 4 files changed +43
-46
lines changed Original file line number Diff line number Diff line change
1
+ <span local-class =' mark-wrapper' >
2
+ <mark local-class =" {{ @color }} " >{{ yield }} </mark >
3
+ </span >
Original file line number Diff line number Diff line change
1
+ mark {
2
+ background-color : transparent;
3
+
4
+ & .orange {
5
+ color : hsl (39 , 98% , 47% );
6
+ }
7
+
8
+ & .yellow {
9
+ color : hsl (39 , 71% , 45% );
10
+ }
11
+
12
+ & .green {
13
+ color : hsl (136 , 67% , 38% );
14
+ }
15
+ }
16
+
17
+ .mark-wrapper {
18
+ margin : 0 ;
19
+ word-break : break-all;
20
+
21
+ & : before {
22
+ content : "(" ;
23
+ margin-right : -3px ;
24
+ }
25
+
26
+ & : after {
27
+ content : ")" ;
28
+ margin-left : -3px ;
29
+ }
30
+ }
Original file line number Diff line number Diff line change 23
23
<EmberTooltip @side =" right" data-test-release-track-title>
24
24
{{ this.releaseTrackTitle }}
25
25
{{ #if this.displaysReleaseTrackModifiers }}
26
- <p local-class =' mark-wrapper' >
27
- {{ #if @version.isPrerelease }}
28
- <mark local-class =" yellow" >prerelease</mark >
29
- {{ /if }}
30
- {{ #if this.hasAllReleaseTrackModifiers }}
31
- ,
32
- {{ /if }}
33
- {{ #if @version.isHighestOfReleaseTrack }}
34
- <mark local-class =" green" >latest</mark >
35
- {{ /if }}
36
- </p >
26
+ {{ #if @version.isPrerelease }}
27
+ <BracketMark @color =' yellow' >prerelease</BracketMark >
28
+ {{ /if }}
29
+ {{ #if this.hasAllReleaseTrackModifiers }}
30
+ ,
31
+ {{ /if }}
32
+ {{ #if @version.isHighestOfReleaseTrack }}
33
+ <BracketMark @color =' green' >latest</BracketMark >
34
+ {{ /if }}
37
35
{{ /if }}
38
36
</EmberTooltip >
39
37
</div >
72
70
<EmberTooltip >
73
71
{{ date-format @version.created_at ' PPP' }}
74
72
{{ #if @version.isNew }}
75
- <p local-class =' mark-wrapper' >
76
- <mark local-class =" orange" >recent</mark >
77
- </p >
73
+ <BracketMark @color =' orange' >recent</BracketMark >
78
74
{{ /if }}
79
75
</EmberTooltip >
80
76
</time >
Original file line number Diff line number Diff line change 190
190
}
191
191
}
192
192
193
- mark {
194
- background-color : transparent;
195
-
196
- & .orange {
197
- color : hsl (39 , 98% , 47% );
198
- }
199
-
200
- & .yellow {
201
- color : hsl (39 , 71% , 45% );
202
- }
203
-
204
- & .green {
205
- color : hsl (136 , 67% , 38% );
206
- }
207
- }
208
-
209
- .mark-wrapper {
210
- display : inline;
211
- margin : 0 ;
212
- word-break : break-all;
213
-
214
- & : before {
215
- content : "(" ;
216
- margin-right : -3px ;
217
- }
218
-
219
- & : after {
220
- content : ")" ;
221
- margin-left : -3px ;
222
- }
223
- }
224
-
225
193
.msrv {
226
194
text-transform : initial;
227
195
You can’t perform that action at this time.
0 commit comments