File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 2
2
.chroma .ln {
3
3
white-space : pre ;
4
4
user-select : none ;
5
- margin-right : 0.4em ;
6
5
padding : 0 0.4em ;
7
6
color : #7f7f7f ;
8
7
}
9
8
9
+ .chroma .cl {
10
+ padding : 0 0.4em ;
11
+ }
12
+
10
13
.chroma .line {
11
14
display : flex ;
12
15
}
119
122
120
123
/* Commented to fix linter errors, uncomment when needed.
121
124
.chroma .x,
122
- .chroma .cl,
123
125
.chroma .nb,
124
126
.chroma .bp,
125
127
.chroma .ni,
Original file line number Diff line number Diff line change 1
1
{{- $lang := .Attributes.lang | default .Type -}}
2
- {{- $file := .Attributes.file | default (printf "code-%d.%s" .Ordinal $lang) -}}
2
+ {{- $file := .Attributes.file -}}
3
3
4
4
{{- /* TODO: Add div toolbar */}}
5
5
< div class ="highlight-wrapper ">
9
9
< span class ="name "> {{ $lang }}</ span >
10
10
</ span >
11
11
12
- < span class ="item ">
13
- < span class ="label "> File:</ span >
14
- < span class ="name "> {{ $file }}</ span >
15
- </ span >
12
+ {{- with $file }}
13
+ < span class ="item ">
14
+ < span class ="label "> File:</ span >
15
+ < span class ="name "> {{ . }}</ span >
16
+ </ span >
17
+ {{- end }}
18
+
16
19
17
20
< button class ="item right outline brighter hide js-btn-copy-code "> Copy</ button >
18
21
</ div >
You can’t perform that action at this time.
0 commit comments