Open DanielHabenicht opened 2 years ago
@DanielHabenicht I know this is not the original request, but for the records, I was able to customize the color of the lines below the titles by adding a templates/styles.scss
file with the following content:
$color: #004491;
@media print {
.md-typeset h1 {border-bottom: 2px solid $color; } // for material theme
article h1 { border-bottom: 2px solid $color; } // other theme
.md-typeset h2 {border-bottom: 1px solid $color; } // for material theme
article h2 { border-bottom: 1px solid $color; } // other theme
.md-typeset h3 {border-bottom: 0.5px solid $color; } // for material theme
article h3 { border-bottom: 0.5px solid $color; } // other theme
}
@ojacques
I don't know why but your solution doesn't work on my side. I have used the original workaround of @DanielHabenicht to customize the border-bottom color.
The colors used for TOC and underlines of the headlines are currently statically set:
Instead of displaying the theme color
inidigo-blue
they use the colors set here: https://github.com/orzih/mkdocs-with-pdf/blob/f2e78d8c8ecb505636ba31a4830646038a78accd/mkdocs_with_pdf/styles/_heading.scss#L1-L12 https://github.com/orzih/mkdocs-with-pdf/blob/f2e78d8c8ecb505636ba31a4830646038a78accd/mkdocs_with_pdf/styles/_toc.scss#L42It would be great if theses colors could either be specified in the plugin settings or use global defaults.
Workaround: