mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Allowed to override primary and accent colors more easily
This commit is contained in:
parent
078a411a22
commit
c62ff2c283
@ -34,7 +34,7 @@
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.20d9efc8.min.css' | url }}">
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.472b142f.min.css' | url }}">
|
||||
{% if config.theme.palette %}
|
||||
{% set palette = config.theme.palette %}
|
||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.08040f6c.min.css' | url }}">
|
||||
@ -82,8 +82,8 @@
|
||||
{% set palette = palette | first %}
|
||||
{% endif %}
|
||||
{% set scheme = palette.scheme | d("default", true) %}
|
||||
{% set primary = palette.primary | d("indigo", true) %}
|
||||
{% set accent = palette.accent | d("indigo", true) %}
|
||||
{% set primary = palette.primary %}
|
||||
{% set accent = palette.accent %}
|
||||
<body dir="{{ direction }}" data-md-color-scheme="{{ scheme | replace(' ', '-') }}" data-md-color-primary="{{ primary | replace(' ', '-') }}" data-md-color-accent="{{ accent | replace(' ', '-') }}">
|
||||
{% else %}
|
||||
<body dir="{{ direction }}">
|
||||
|
Loading…
Reference in New Issue
Block a user