mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-04 11:35:17 -04:00
Formatting
This commit is contained in:
@@ -148,14 +148,12 @@ export function mountPalette(
|
||||
const { backgroundColor } = window.getComputedStyle(header)
|
||||
|
||||
/* Return color in hexadecimal format */
|
||||
return `#${
|
||||
backgroundColor.match(/\d+/g)!
|
||||
.map(value => (+value).toString(16).padStart(2, "0"))
|
||||
.join("")
|
||||
}`
|
||||
return backgroundColor.match(/\d+/g)!
|
||||
.map(value => (+value).toString(16).padStart(2, "0"))
|
||||
.join("")
|
||||
})
|
||||
)
|
||||
.subscribe(color => meta.content = color)
|
||||
.subscribe(color => meta.content = `#${color}`)
|
||||
|
||||
/* Revert transition durations after color switch */
|
||||
push$.pipe(observeOn(asyncScheduler))
|
||||
|
||||
Reference in New Issue
Block a user