File tree 2 files changed +21
-14
lines changed 2 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 45
45
}
46
46
}
47
47
.Version-major {
48
+ align-items : baseline;
49
+ display : flex;
48
50
margin-bottom : 1rem ;
49
51
min-width : 4rem ;
50
52
}
83
85
color : var (--turq-dark );
84
86
}
85
87
.Version-commitTime {
88
+ align-items : center;
89
+ display : flex;
86
90
margin-left : 1rem ;
87
91
white-space : nowrap;
88
92
}
89
93
.Version-details {
90
94
line-height : 1.25rem ;
91
- margin-left : -0.5rem ;
92
95
}
93
96
.Version-summary {
94
97
align-items : center;
95
98
cursor : pointer;
96
- display : flex;
97
99
line-height : 2.25rem ;
98
100
padding-right : 0.5rem ;
99
101
white-space : nowrap;
100
102
width : min-content;
101
103
}
102
- details .Version-details img {
103
- position : relative;
104
- top : 0.0625rem ;
105
- }
106
- details .Version-details [open ] img {
107
- transform : rotate (90deg );
104
+
105
+ .Version-badge {
106
+ border : 0.0625rem solid var (--gray-4 );
107
+ border-radius : 0.125rem ;
108
+ font-size : 0.6875rem ;
109
+ font-weight : 500 ;
110
+ line-height : 1rem ;
111
+ margin-left : 0.5rem ;
112
+ margin-top : 0.125rem ;
113
+ padding : 0 0.35rem ;
114
+ text-align : center;
108
115
}
Original file line number Diff line number Diff line change 37
37
{{range $i, $v := $major.Versions}}
38
38
<div class="Version-major">
39
39
{{if and (eq $i 0) (not $major.Incompatible)}}
40
- <strong>{{$major.Major}}</strong>
41
- <div> {{if $major.Deprecated}}(Deprecated{{with $major.DeprecationComment}}: {{.}}{{ end}}){{end}}</div>
40
+ <strong>{{$major.Major}}</strong>
41
+ {{if true}}<span class="Version-badge">deprecated</span>{{ end}}
42
42
{{end}}
43
43
</div>
44
44
<div class="Version-tag">
45
45
<a class="js-versionLink" href="{{$v.Link}}">{{$v.Version}}</a>
46
- <div>{{if $v.Retracted}}(Retracted{{with $v.RetractionRationale}}: {{.}}{{end}}){{end}}</div>
47
46
</div>
48
47
<div class="Version-dot{{if and $v.IsMinor (not $major.Incompatible)}} Version-dot--minor{{end}}"></div>
49
48
{{if and $v.Symbols (not $major.Incompatible)}}
50
49
{{template "symbol_history" $v}}
51
50
{{else}}
52
- <div class="Version-commitTime">{{$v.CommitTime}}</div>
51
+ <div class="Version-commitTime">
52
+ {{$v.CommitTime}}{{if $v.Retracted}}<span class="Version-badge">retracted</span>{{end}}
53
+ </div>
53
54
{{end}}
54
55
{{end}}
55
56
{{end}}
59
60
{{define "symbol_history"}}
60
61
<details class="Version-details js-versionDetails">
61
62
<summary class="Version-summary">
62
- <img alt="" height="24" width="24" src="/static/img/pkg-icon-arrowRight_24x24.svg">
63
- {{.CommitTime}}
63
+ {{.CommitTime}}{{if .Retracted}}<span class="Version-badge">retracted</span>{{end}}
64
64
</summary>
65
65
<div class="Versions-symbols">
66
66
<div class="Versions-symbolsHeader">Changes in this version</div>
You can’t perform that action at this time.
0 commit comments