mirror of
https://github.com/dillonzq/LoveIt.git
synced 2025-04-16 02:30:44 +02:00
feat(code): optimize code block style
This commit is contained in:
parent
41740664db
commit
c8dada4510
3 changed files with 3 additions and 3 deletions
assets/css/_partial/_single
layouts/partials/plugin
resources/_gen/assets/css
|
@ -38,7 +38,7 @@ code, pre {
|
|||
}
|
||||
|
||||
.code-block {
|
||||
line-height: 1.4em;
|
||||
line-height: 1.25rem;
|
||||
margin: .5rem 0;
|
||||
|
||||
.code-header {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
{{- $result := transform.Highlight $content $lang $options -}}
|
||||
<div class="code-block{{ if $lineNos }} code-line-numbers{{ end }}{{ if le $lines $maxShownLines }} open{{ end }}" style="counter-reset: code-block {{ sub $lineNoStart 1 }}">
|
||||
<div class="code-header language-{{ $lang }}">
|
||||
<span class="code-title"><i class="arrow fas fa-chevron-right fa-fw" aria-hidden="true"></i></span>
|
||||
<span class="code-title"><i class="arrow fas fa-angle-right fa-fw" aria-hidden="true"></i></span>
|
||||
<span class="ellipses"><i class="fas fa-ellipsis-h fa-fw" aria-hidden="true"></i></span>
|
||||
{{ if $copy }}<span class="copy" title="{{ T "copyToClipboard" }}"><i class="far fa-copy fa-fw" aria-hidden="true"></i></span>{{ end }}
|
||||
</div>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue