mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
docs(styles): Add external link icon workaround
Adds some third-party CSS as`mkdocs-material` doesn't seem interested in a PR to upstream this feature to the community. --- Uses a font icon approach for the external link as alternatives like SVG was reported in PR as breaking on Chrome. The logo has been made larger than theme default, it needs a little push from the left to align well with the tabs below it. --- Unrelated: Additionally experiment with the Instant Navigation feature. --- docs(styles): Various improvements Multiple related commits from original PR have been squashed into this. Some messages may be redundant due to loss of history. --- docs(styles): Minor improvements - Use relative path for external-link - UI enhancement for version selector - Improve inline documentation for `customizations.css` Make separate styling sections more evident (since we're not using multiple files or build tools). --- docs(styles): Replace permalink to fix UX bug --- docs(styles): Replace permalink feature for alternative approach Previous commit already switched `permalink` for `anchorlink` option, but the `#` symbol had UI concerns regarding font-size/scale and fitting into the gutter. Gutter change reverted, switch to REM units and symbol replaced by thin vertical rectangle scaled by font height, far better consistency for placement. --- docs(styles): Refactor the heading link style Effectively ended up making a border-left line style, just not as consistent and more complicated. Fixed that by adjusting styles. Adds optional background fill and restores inline code style for headings.
This commit is contained in:
parent
251a87e622
commit
f13df19b87
3 changed files with 89 additions and 1 deletions
|
@ -16,6 +16,10 @@ theme:
|
|||
features:
|
||||
- navigation.tabs
|
||||
- navigation.expand
|
||||
- navigation.instant
|
||||
|
||||
extra_css:
|
||||
- assets/css/customizations.css
|
||||
|
||||
# We do not use `mike`, but enabling this will enable the version selector UI.
|
||||
# It references `versions.json` on `gh-pages` branch,
|
||||
|
@ -26,7 +30,7 @@ extra:
|
|||
|
||||
markdown_extensions:
|
||||
- toc:
|
||||
permalink: ⚓︎
|
||||
anchorlink: true
|
||||
- abbr
|
||||
- attr_list
|
||||
- admonition
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue