add compatibility fixes for papermod <-> chroma

This commit is contained in:
Aditya Telange 2023-12-23 20:06:13 +05:30
parent 86bd826d79
commit 2b768174a8
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,20 @@
.chroma {
background-color: unset !important;
}
.chroma .hl {
display: flex;
}
table pre.chroma code {
padding: 0.4rem 0;
}
/* .chroma .lntd:first-of-type {
padding-inline-start: 10px;
}
.chroma .lntd:last-of-type {
padding-inline-end: 10px;
width: 100%;
} */

View File

@ -57,9 +57,10 @@
{{- /* markup.highlight.noClasses should be set to `false` */}} {{- /* markup.highlight.noClasses should be set to `false` */}}
{{- $chroma_styles := (resources.Get "css/includes/chroma-styles.css") }} {{- $chroma_styles := (resources.Get "css/includes/chroma-styles.css") }}
{{- $chroma_mod := (resources.Get "css/includes/chroma-mod.css") }}
{{- /* order is important */}} {{- /* order is important */}}
{{- $core := (slice $theme_vars $reset $common $chroma_styles $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }} {{- $core := (slice $theme_vars $reset $common $chroma_styles $chroma_mod $includes_all $media) | resources.Concat "assets/css/core.css" | resources.Minify }}
{{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }} {{- $extended := (resources.Match "css/extended/*.css") | resources.Concat "assets/css/extended.css" | resources.Minify }}
{{- /* bundle all required css */}} {{- /* bundle all required css */}}
@ -123,7 +124,7 @@
--secondary: rgb(155, 156, 157); --secondary: rgb(155, 156, 157);
--tertiary: rgb(65, 66, 68); --tertiary: rgb(65, 66, 68);
--content: rgb(196, 196, 197); --content: rgb(196, 196, 197);
--hljs-bg: rgb(46, 46, 51); --code-block-bg: rgb(46, 46, 51);
--code-bg: rgb(55, 56, 62); --code-bg: rgb(55, 56, 62);
--border: rgb(51, 51, 51); --border: rgb(51, 51, 51);
} }