mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed direction=None in base.html
This commit is contained in:
parent
80f1d3e37b
commit
584eac86ee
@ -61,7 +61,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
transition: opacity 250ms;
|
transition: opacity 250ms;
|
||||||
font-size: px2rem(13px);
|
font-size: px2rem(13px);
|
||||||
line-height: 1.25;
|
line-height: 1.2;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
// Hack: reduce jitter
|
// Hack: reduce jitter
|
||||||
backface-visibility: hidden;
|
backface-visibility: hidden;
|
||||||
|
@ -168,7 +168,7 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<!-- Text direction and color palette, if defined -->
|
<!-- Text direction and color palette, if defined -->
|
||||||
{% set direction = config.theme.direction | default(lang.t('direction')) %}
|
{% set direction = config.theme.direction or lang.t('direction') %}
|
||||||
{% if palette.primary or palette.accent %}
|
{% if palette.primary or palette.accent %}
|
||||||
{% set primary = palette.primary | replace(" ", "-") | lower %}
|
{% set primary = palette.primary | replace(" ", "-") | lower %}
|
||||||
{% set accent = palette.accent | replace(" ", "-") | lower %}
|
{% set accent = palette.accent | replace(" ", "-") | lower %}
|
||||||
|
@ -28,15 +28,11 @@
|
|||||||
{% set repo = repo[:-1] %}
|
{% set repo = repo[:-1] %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% set path = page.meta.path | default([""]) %}
|
{% set path = page.meta.path | default([""]) %}
|
||||||
{% set file = page.meta.source %}
|
|
||||||
{% set repo_icon = config.extra.repo_icon | default(
|
|
||||||
"fontawesome/brands/git-alt"
|
|
||||||
) %}
|
|
||||||
<a
|
<a
|
||||||
href="{{ [repo, path, page.meta.source] | join('/') }}"
|
href="{{ [repo, path, page.meta.source] | join('/') }}"
|
||||||
title="{{ file }}"
|
title="{{ page.meta.source }}"
|
||||||
class="md-content__button md-icon"
|
class="md-content__button md-icon"
|
||||||
>
|
>
|
||||||
{{ lang.t("meta.source") }}
|
{{ lang.t("meta.source") }}
|
||||||
{% include ".icons/" ~ repo_icon ~ ".svg" %}
|
{% include ".icons/" ~ config.theme.icon.repo ~ ".svg" %}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user