mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-23 23:21:00 +01:00
Formatting
This commit is contained in:
parent
8015c3991e
commit
b968bf6e8f
@ -27,10 +27,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% set palette = config.theme.palette %}
|
||||
{% if palette and not palette is mapping %}
|
||||
{% if not config.theme.palette is mapping %}
|
||||
<form class="md-header__option" data-md-component="palette">
|
||||
{% for option in palette %}
|
||||
{% for option in config.theme.palette %}
|
||||
{% set primary = option.primary | replace(" ", "-") | lower %}
|
||||
{% set accent = option.accent | replace(" ", "-") | lower %}
|
||||
<input class="md-option" data-md-color-media="{{ option.media }}" data-md-color-scheme="{{ option.scheme }}" data-md-color-primary="{{ primary }}" data-md-color-accent="{{ accent }}" type="radio" name="__palette" id="__palette_{{ loop.index }}">
|
||||
|
@ -152,7 +152,7 @@
|
||||
{% block extrahead %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<!-- Text direction and color palette, if defined -->
|
||||
<!-- Set text direction and color palette, if defined -->
|
||||
{% set direction = config.theme.direction or lang.t('direction') %}
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
|
@ -64,10 +64,9 @@
|
||||
</div>
|
||||
|
||||
<!-- Color palette -->
|
||||
{% set palette = config.theme.palette %}
|
||||
{% if palette and not palette is mapping %}
|
||||
{% if not config.theme.palette is mapping %}
|
||||
<form class="md-header__option" data-md-component="palette">
|
||||
{% for option in palette %}
|
||||
{% for option in config.theme.palette %}
|
||||
{% set primary = option.primary | replace(" ", "-") | lower %}
|
||||
{% set accent = option.accent | replace(" ", "-") | lower %}
|
||||
<input
|
||||
|
Loading…
Reference in New Issue
Block a user