ntno / mkdocs-terminal

monospace theme for MkDocs
https://ntno.github.io/mkdocs-terminal/
MIT License
96 stars 3 forks source link

Upgrade to terminal v0.7.5 #150

Closed ntno closed 3 weeks ago

ntno commented 3 weeks ago

point to terminal.css version 0.7.5 (currently at 0.7.4)

resolves #144

Description

the "Terminal for MkDocs" theme is currently behind the terminal.css upstream. this change updates terminal/css/terminal.css to point to version 0.7.5 and makes a few updates to terminal/css/theme.css and one addition to terminal/css/terminal.css to maintain current behavior.

Changes

Testing

spun up local documentation server in Firefox and spot checked

Checklist

ntno commented 3 weeks ago

table styling change

after the header row, the leftmost column will use regular font weight and regular font color instead of strong font weight and secondary font color

terminal.css v0.7.4

74

terminal.css v0.7.5

75

ntno commented 3 weeks ago

overriding change to code font color

terminal.css 0.7.4

regular-font-in-0 7 4

terminal.css 0.7.5

lighter-code-font-in-0 7 5

overriding

in terminal.css

adds new var

    --code-font-color: var(--font-color);

in theme.css

/* use the `code-bg-color` and `code-font-color` for `<code>` blocks */

pre code {
    background-color: var(--code-bg-color);
    color: var(--code-font-color);
}

after override

back-to-regular-font-after-override

ntno commented 3 weeks ago

overriding styling change to macro error block

mkdocs-terminal 4.5.0

Screen Shot 2024-08-19 at 10 02 46 PM

proposed change

Screen Shot 2024-08-19 at 10 02 40 PM

after override

Screen Shot 2024-08-19 at 10 19 46 PM

.terminal-mkdocs-macro-error-banner {
    border-style: solid;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65em 2em;
    border-color: var(--error-color);
}

p.terminal-mkdocs-macro-error-banner {
    color: var(--font-color);
}

p.terminal-mkdocs-macro-error-banner>code {
    color: var(--code-font-color);
}