mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Visual formatting
This commit is contained in:
parent
d470f89056
commit
3f678c048f
@ -34,7 +34,7 @@ Install the latest version of Material with `pip`:
|
|||||||
pip install mkdocs-material
|
pip install mkdocs-material
|
||||||
```
|
```
|
||||||
|
|
||||||
Append the following line to your project's `mkdocs.yml`:
|
Add the following line to `mkdocs.yml`:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
theme:
|
theme:
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import ResizeObserver from "resize-observer-polyfill"
|
||||||
import { Observable, fromEventPattern } from "rxjs"
|
import { Observable, fromEventPattern } from "rxjs"
|
||||||
import { shareReplay, startWith } from "rxjs/operators"
|
import { shareReplay, startWith } from "rxjs/operators"
|
||||||
|
|
||||||
@ -70,7 +71,7 @@ export function watchElementSize(
|
|||||||
width: Math.round(contentRect.width),
|
width: Math.round(contentRect.width),
|
||||||
height: Math.round(contentRect.height)
|
height: Math.round(contentRect.height)
|
||||||
}))
|
}))
|
||||||
.observe(el, { box: "border-box" }) // TODO: centralize, .observe and .unobserve
|
.observe(el)
|
||||||
})
|
})
|
||||||
.pipe(
|
.pipe(
|
||||||
startWith(getElementSize(el)),
|
startWith(getElementSize(el)),
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
import "../stylesheets/main.scss"
|
import "../stylesheets/main.scss"
|
||||||
import "../stylesheets/palette.scss"
|
import "../stylesheets/palette.scss"
|
||||||
|
|
||||||
import "resize-observer-polyfill"
|
|
||||||
|
|
||||||
import { values } from "ramda"
|
import { values } from "ramda"
|
||||||
import {
|
import {
|
||||||
merge,
|
merge,
|
||||||
@ -46,8 +44,7 @@ import {
|
|||||||
observeOn,
|
observeOn,
|
||||||
take,
|
take,
|
||||||
shareReplay,
|
shareReplay,
|
||||||
share,
|
share
|
||||||
skip
|
|
||||||
} from "rxjs/operators"
|
} from "rxjs/operators"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -108,16 +108,6 @@
|
|||||||
.footnote-ref {
|
.footnote-ref {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
pointer-events: initial;
|
pointer-events: initial;
|
||||||
|
|
||||||
// Render a thin line before footnote
|
|
||||||
&::before {
|
|
||||||
display: inline;
|
|
||||||
margin: 0 0.2em;
|
|
||||||
font-size: 1.25em;
|
|
||||||
vertical-align: px2rem(-5px);
|
|
||||||
border-left: px2rem(1px) solid var(--md-default-fg-color--lighter);
|
|
||||||
content: "";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Footnote back reference
|
// Footnote back reference
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
.emojione,
|
.emojione,
|
||||||
.twemoji,
|
.twemoji,
|
||||||
.gemoji {
|
.gemoji {
|
||||||
width: px2rem(20px);
|
width: px2em(18px);
|
||||||
vertical-align: text-bottom;
|
vertical-align: -15%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user