code block color bug fixed

This commit is contained in:
zzossig 2019-12-29 00:31:06 +09:00
parent 8a072700dd
commit 53df3fcb7f
7 changed files with 34 additions and 1 deletions

View File

@ -158,6 +158,9 @@
p > code {
padding: 0.25rem 0.5rem;
@include themify($codeblock) {
color: themed('content-code-color');
}
}
code + .copy-to-clipboard {

View File

@ -2,6 +2,7 @@ $customcode: '';
@if $theme_custom_chroma_background == dark {
$customcode: (
content-code-color: #fcfcfa,
content-pre-main-color: #FFA7C4,
content-pre-color: #eee,
content-pre-number-color: #666,
@ -12,6 +13,7 @@ $customcode: '';
);
} @else if $theme_custom_chroma_background == light {
$customcode: (
content-code-color: #827d70,
content-pre-main-color: #607d8b,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -22,6 +24,7 @@ $customcode: '';
);
} @else if $theme_custom_chroma_background == hacker {
$customcode: (
content-code-color: #1fff2a,
content-pre-main-color: #1FFF2A,
content-pre-color: #d1d1d1,
content-pre-number-color: #666,
@ -32,6 +35,7 @@ $customcode: '';
);
} @else if $theme_custom_chroma_background == solarized {
$customcode: (
content-code-color: #424242,
content-pre-main-color: #B58900,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -42,6 +46,7 @@ $customcode: '';
);
} @else if $theme_custom_chroma_background == custom {
$customcode: (
content-code-color: #002633,
content-pre-main-color: hsl($custom_theme_primary_color, 65%, 32%),
content-pre-color: hsl($custom_theme_primary_color, 100%, 10%),
content-pre-number-color: hsl($custom_theme_primary_color, 0%, 67%),
@ -52,6 +57,7 @@ $customcode: '';
);
} @else {
$customcode: (
content-code-color: #002633,
content-pre-main-color: hsl($custom_theme_primary_color, 65%, 32%),
content-pre-color: hsl($custom_theme_primary_color, 100%, 10%),
content-pre-number-color: hsl($custom_theme_primary_color, 0%, 67%),

View File

@ -2,6 +2,7 @@ $darkcode: '';
@if $theme_dark_chroma_background == dark {
$darkcode: (
content-code-color: #fcfcfa,
content-pre-main-color: #FFA7C4,
content-pre-color: #eee,
content-pre-number-color: #666,
@ -12,6 +13,7 @@ $darkcode: '';
);
} @else if $theme_dark_chroma_background == light {
$darkcode: (
content-code-color: #827d70,
content-pre-main-color: #607d8b,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -22,6 +24,7 @@ $darkcode: '';
);
} @else if $theme_dark_chroma_background == hacker {
$darkcode: (
content-code-color: #1fff2a,
content-pre-main-color: #1FFF2A,
content-pre-color: #d1d1d1,
content-pre-number-color: #666,
@ -32,6 +35,7 @@ $darkcode: '';
);
} @else if $theme_dark_chroma_background == solarized {
$darkcode: (
content-code-color: #424242,
content-pre-main-color: #B58900,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -42,6 +46,7 @@ $darkcode: '';
);
} @else if $theme_dark_chroma_background == custom {
$darkcode: (
content-code-color: #002633,
content-pre-main-color: hsl($custom_theme_primary_color, 65%, 32%),
content-pre-color: hsl($custom_theme_primary_color, 100%, 10%),
content-pre-number-color: hsl($custom_theme_primary_color, 0%, 67%),
@ -52,6 +57,7 @@ $darkcode: '';
);
} @else {
$darkcode: (
content-code-color: #fcfcfa,
content-pre-main-color: #FFA7C4,
content-pre-color: #eee,
content-pre-number-color: #666,

View File

@ -2,6 +2,7 @@ $hackercode: '';
@if $theme_hacker_chroma_background == dark {
$hackercode: (
content-code-color: #fcfcfa,
content-pre-main-color: #FFA7C4,
content-pre-color: #eee,
content-pre-number-color: #666,
@ -12,6 +13,7 @@ $hackercode: '';
);
} @else if $theme_hacker_chroma_background == light {
$hackercode: (
content-code-color: #827d70,
content-pre-main-color: #607d8b,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -22,6 +24,7 @@ $hackercode: '';
);
} @else if $theme_hacker_chroma_background == hacker {
$hackercode: (
content-code-color: #1fff2a,
content-pre-main-color: #1FFF2A,
content-pre-color: #d1d1d1,
content-pre-number-color: #666,
@ -32,6 +35,7 @@ $hackercode: '';
);
} @else if $theme_hacker_chroma_background == solarized {
$hackercode: (
content-code-color: #424242,
content-pre-main-color: #B58900,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -42,6 +46,7 @@ $hackercode: '';
);
} @else if $theme_hacker_chroma_background == custom {
$hackercode: (
content-code-color: #002633,
content-pre-main-color: hsl($custom_theme_primary_color, 65%, 32%),
content-pre-color: hsl($custom_theme_primary_color, 100%, 10%),
content-pre-number-color: hsl($custom_theme_primary_color, 0%, 67%),
@ -52,6 +57,7 @@ $hackercode: '';
);
} @else {
$hackercode: (
content-code-color: #1fff2a,
content-pre-main-color: #1FFF2A,
content-pre-color: #d1d1d1,
content-pre-number-color: #666,

View File

@ -2,6 +2,7 @@ $lightcode: '';
@if $theme_light_chroma_background == dark {
$lightcode: (
content-code-color: #fcfcfa,
content-pre-main-color: #FFA7C4,
content-pre-color: #eee,
content-pre-number-color: #666,
@ -12,6 +13,7 @@ $lightcode: '';
);
} @else if $theme_light_chroma_background == light {
$lightcode: (
content-code-color: #827d70,
content-pre-main-color: #607d8b,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -22,6 +24,7 @@ $lightcode: '';
);
} @else if $theme_light_chroma_background == hacker {
$lightcode: (
content-code-color: #1fff2a,
content-pre-main-color: #1FFF2A,
content-pre-color: #d1d1d1,
content-pre-number-color: #666,
@ -32,6 +35,7 @@ $lightcode: '';
);
} @else if $theme_light_chroma_background == solarized {
$lightcode: (
content-code-color: #424242,
content-pre-main-color: #B58900,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -42,6 +46,7 @@ $lightcode: '';
);
} @else if $theme_light_chroma_background == custom {
$lightcode: (
content-code-color: #002633,
content-pre-main-color: hsl($custom_theme_primary_color, 65%, 32%),
content-pre-color: hsl($custom_theme_primary_color, 100%, 10%),
content-pre-number-color: hsl($custom_theme_primary_color, 0%, 67%),
@ -52,6 +57,7 @@ $lightcode: '';
);
} @else {
$lightcode: (
content-code-color: #827d70,
content-pre-main-color: #607d8b,
content-pre-color: #344952,
content-pre-number-color: #aaa,

View File

@ -2,6 +2,7 @@ $solarizedcode: '';
@if $theme_solarized_chroma_background == dark {
$solarizedcode: (
content-code-color: #fcfcfa,
content-pre-main-color: #FFA7C4,
content-pre-color: #eee,
content-pre-number-color: #666,
@ -12,6 +13,7 @@ $solarizedcode: '';
);
} @else if $theme_solarized_chroma_background == light {
$solarizedcode: (
content-code-color: #827d70,
content-pre-main-color: #607d8b,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -22,6 +24,7 @@ $solarizedcode: '';
);
} @else if $theme_solarized_chroma_background == hacker {
$solarizedcode: (
content-code-color: #1fff2a,
content-pre-main-color: #1FFF2A,
content-pre-color: #d1d1d1,
content-pre-number-color: #666,
@ -32,6 +35,7 @@ $solarizedcode: '';
);
} @else if $theme_solarized_chroma_background == solarized {
$solarizedcode: (
content-code-color: #424242,
content-pre-main-color: #B58900,
content-pre-color: #344952,
content-pre-number-color: #aaa,
@ -42,6 +46,7 @@ $solarizedcode: '';
);
} @else if $theme_solarized_chroma_background == custom {
$solarizedcode: (
content-code-color: #002633,
content-pre-main-color: hsl($custom_theme_primary_color, 65%, 32%),
content-pre-color: hsl($custom_theme_primary_color, 100%, 10%),
content-pre-number-color: hsl($custom_theme_primary_color, 0%, 67%),
@ -52,6 +57,7 @@ $solarizedcode: '';
);
} @else {
$solarizedcode: (
content-code-color: #424242,
content-pre-main-color: #B58900,
content-pre-color: #344952,
content-pre-number-color: #aaa,