Skip to content

Commit

Permalink
2024-04-29 08:50:51
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiKimera committed Apr 29, 2024
1 parent 42d6672 commit cf7e132
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions assets/css/system/modules/_syntax.chroma.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

pre {
border-radius: 0;
background-color: unset;

> code {
padding-right: 0;
Expand All @@ -41,6 +42,7 @@

pre {
border-radius: 0;
background-color: unset;

> code {
padding-left: 0;
Expand Down
2 changes: 1 addition & 1 deletion assets/css/system/modules/_syntax.chroma.theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/* PreWrapper */
.chroma {
background-color: #282c34;
//background-color: #282c34;
color: #abb2bf;
}

Expand Down
11 changes: 6 additions & 5 deletions layouts/_default/_markup/render-codeblock.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@

{{ if (or ($attr.title) ($attr.file)) }}

<div class="shortcode mb-3 shortcode-codeblock shortcode-codeblock-{{ ($ordinal) }} shortcode-codeblock-{{ ($type) }}">
<div class="card overflow-hidden">
<div class="shortcode mb-3 shortcode-codeblock
shortcode-codeblock-{{ ($ordinal) }} shortcode-codeblock-{{ ($type) }}">
<div class="card overflow-hidden" data-bs-theme="dark">
<div class="card-header">
<div class="d-flex align-items-center">
<div class="flex-shrink-0">
Expand All @@ -43,7 +44,7 @@
</div>
</div>
</div>
<div class="card-body" id="cp-{{ ($cp) }}">{{ (highlight ($inner) ($type)) }}</div>
<div class="card-body p-0" id="cp-{{ ($cp) }}">{{ (highlight ($inner) ($type)) }}</div>
</div>
</div>

Expand All @@ -52,8 +53,8 @@
<div class="shortcode mb-3 shortcode-codeblock shortcode-codeblock-{{ ($ordinal) }}
{{ with ($type) }}shortcode-codeblock-{{ . }}{{ end }}">
<div class="d-flex overflow-hidden">
<div class="flex-grow-1 rounded overflow-hidden"
id="cp-{{ ($cp) }}">{{ (highlight ($inner) ($type) ($attr)) }}</div>
<div class="flex-grow-1 rounded overflow-hidden bg-body-tertiary"
id="cp-{{ ($cp) }}" data-bs-theme="dark">{{ (highlight ($inner) ($type) ($attr)) }}</div>
<div class="flex-shrink-0">
<ul class="list-inline mb-0">
<li class="list-inline-item" data-bs-tooltip data-bs-title='{{ (i18n "copy") }}'>
Expand Down

0 comments on commit cf7e132

Please sign in to comment.