mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 13:53:43 -04:00
Localize edit button and hide on print
This commit is contained in:
@@ -57,5 +57,10 @@
|
||||
@include break-to-device(tablet portrait) {
|
||||
margin-right: -0.8rem;
|
||||
}
|
||||
|
||||
// Hide for print
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
IN THE SOFTWARE.
|
||||
-->
|
||||
|
||||
{% import "partials/i18n.html" as i18n %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html class="no-js">
|
||||
<head>
|
||||
@@ -170,7 +172,8 @@
|
||||
|
||||
<!-- Edit button, if URL was defined -->
|
||||
{% if config.edit_uri %}
|
||||
<a href="{{ page.edit_url }}" title="Edit this page"
|
||||
<a href="{{ page.edit_url }}"
|
||||
title="{{ i18n.t('edit.link.title') }}"
|
||||
class="md-icon md-content__edit">edit</a>
|
||||
{% endif %}
|
||||
|
||||
@@ -196,7 +199,7 @@
|
||||
|
||||
<!-- Application footer -->
|
||||
{% block footer %}
|
||||
{% include "partials/footer.html" with context %}
|
||||
{% include "partials/footer.html" %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
<!-- Translations -->
|
||||
{% macro t(key) %}{{ {
|
||||
"edit.link.title": "Edit this page",
|
||||
"footer.previous": "Previous",
|
||||
"footer.next": "Next",
|
||||
"search.placeholder": "Search",
|
||||
|
||||
Reference in New Issue
Block a user