mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Formatting
This commit is contained in:
parent
944180d572
commit
c4c99f8915
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/extra.c507a49a.min.css
vendored
Normal file
1
material/assets/stylesheets/extra.c507a49a.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/extra.c507a49a.min.css.map
Normal file
1
material/assets/stylesheets/extra.c507a49a.min.css.map
Normal file
File diff suppressed because one or more lines are too long
@ -234,13 +234,13 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.c0285e69.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.e1167f37.min.js' | url }}"></script>
|
||||
{% for path in config.extra_javascript %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
{% if page.meta and page.meta.ᴴₒᴴₒᴴₒ %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.73715943.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/extra.c507a49a.min.css' | url }}">
|
||||
<script src="{{ 'assets/javascripts/extra/bundle.f719a234.min.js' | url }}" defer></script>
|
||||
{% endif %}
|
||||
</body>
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user