fix(typeit): typeit code highlight (#284)

This commit is contained in:
Dillon
2020-04-29 19:52:31 +08:00
committed by GitHub
parent f6f7d91127
commit 56026f934d
5 changed files with 118 additions and 115 deletions

View File

@@ -54,11 +54,13 @@ code, pre, .highlight table, .highlight tr, .highlight td {
} }
} }
.highlight > .chroma { .highlight {
position: relative;
line-height: 1.4em; line-height: 1.4em;
margin: .5rem 0; margin: .5rem 0;
> .chroma {
position: relative;
.code-header { .code-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -185,6 +187,7 @@ code, pre, .highlight table, .highlight tr, .highlight td {
display: inline; display: inline;
} }
} }
}
/* Comment */ .c, /* Comment */ .c,
/* CommentHashbang */ .ch, /* CommentHashbang */ .ch,

View File

@@ -10,7 +10,7 @@
{{- end -}} {{- end -}}
{{- $params := .Params | merge .Site.Params.page -}} {{- $params := .Params | merge .Site.Params.page -}}
{{- .Scratch.Set "version" "0.2.0" -}} {{- .Scratch.Set "version" "0.2.2" -}}
{{- if eq hugo.Environment "production" -}} {{- if eq hugo.Environment "production" -}}
{{- .Scratch.Set "cdn" .Site.Params.cdn -}} {{- .Scratch.Set "cdn" .Site.Params.cdn -}}