| 1 | /* markdown typesets */ |
| 2 | .md-typeset .admonition, |
| 3 | .md-typeset details { |
| 4 | font-size: 1em |
| 5 | } |
| 6 | |
| 7 | .md-typeset h1, .md-typeset h2 { |
| 8 | font-weight: bolder; |
| 9 | letter-spacing: -.01em; |
| 10 | } |
| 11 | |
| 12 | /* grid */ |
| 13 | .md-grid { |
| 14 | max-width: 95%; |
| 15 | } |
| 16 | |
| 17 | @media (min-width: 1220px) { |
| 18 | .md-main__inner { |
| 19 | max-width: 80%; |
| 20 | margin-top: 0; |
| 21 | } |
| 22 | .md-sidebar { |
| 23 | height: auto; |
| 24 | } |
| 25 | .md-sidebar--primary { |
| 26 | border-right: 1px solid var(--md-default-fg-color--lightest); |
| 27 | } |
| 28 | .md-nav .md-nav__link { |
| 29 | font-size: 1.1em; |
| 30 | } |
| 31 | .md-nav .md-nav__link h3 { |
| 32 | font-size: 0.9em; |
| 33 | } |
| 34 | .md-nav .md-nav__title { |
| 35 | display: none; |
| 36 | } |
| 37 | .md-nav__icon { |
| 38 | width: 1.2rem; |
| 39 | height: 1.2rem; |
| 40 | margin-top: -.1rem; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /* remove pilcrow as permanent link and add chain icon similar to github https://github.com/squidfunk/mkdocs-material/discussions/3535 */ |
| 45 | |
| 46 | .headerlink { |
| 47 | --permalink-size: 16px; /* for font-relative sizes, 0.6em is a good choice */ |
| 48 | --permalink-spacing: 4px; |
| 49 | |
| 50 | width: calc(var(--permalink-size) + var(--permalink-spacing)); |
| 51 | height: var(--permalink-size); |
| 52 | vertical-align: middle; |
| 53 | background-color: var(--md-default-fg-color--lighter); |
| 54 | background-size: var(--permalink-size); |
| 55 | mask-size: var(--permalink-size); |
| 56 | -webkit-mask-size: var(--permalink-size); |
| 57 | mask-repeat: no-repeat; |
| 58 | -webkit-mask-repeat: no-repeat; |
| 59 | visibility: visible; |
| 60 | mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg>'); |
| 61 | -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg>'); |
| 62 | } |
| 63 | |
| 64 | [id]:target .headerlink { |
| 65 | background-color: var(--md-typeset-a-color); |
| 66 | } |
| 67 | |
| 68 | .headerlink:hover { |
| 69 | background-color: var(--md-accent-fg-color) !important; |
| 70 | } |
| 71 | |
| 72 | @media screen and (min-width: 76.25em) { |
| 73 | h1, h2, h3, h4, h5, h6 { |
| 74 | display: flex; |
| 75 | align-items: center; |
| 76 | flex-direction: row; |
| 77 | column-gap: 0.2em; /* fixes spaces in titles */ |
| 78 | } |
| 79 | |
| 80 | .headerlink { |
| 81 | order: -1; |
| 82 | margin-left: calc(var(--permalink-size) * -1 - var(--permalink-spacing)) !important; |
| 83 | } |
| 84 | } |