From 329d452c7f969d6ff2a2af1d303eac302268bf7c Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 5 Apr 2020 14:09:20 +0200 Subject: [PATCH] Updated anouncement bar --- docs/plugins/search.md | 2 +- material/overrides/home.html | 2 +- material/overrides/main.html | 8 +++++++- src/overrides/home.html | 9 +++++++++ src/overrides/main.html | 18 +++++++++++++++++- 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/docs/plugins/search.md b/docs/plugins/search.md index ada85bfe6..2c39bb3f1 100644 --- a/docs/plugins/search.md +++ b/docs/plugins/search.md @@ -9,7 +9,7 @@ and is implemented using [lunr.js][2] which includes stemmers for the English language by default, while stemmers for other languages are included with [lunr-languages][3], both of which are integrated with this theme. -!!! tip "Add the [localsearch][4] plugin to support search from `file://`" +!!! tip "Make search work offline" While search will not work for the `file://` protocol, as web workers and the use of `XMLHTTPRequest` are both blocked by modern browsers for security diff --git a/material/overrides/home.html b/material/overrides/home.html index 238c4cf73..1bcf18fff 100644 --- a/material/overrides/home.html +++ b/material/overrides/home.html @@ -4,7 +4,7 @@ {% extends "overrides/main.html" %} {% block tabs %} {{ super() }} - +
diff --git a/material/overrides/main.html b/material/overrides/main.html index a6757845a..8ab169333 100644 --- a/material/overrides/main.html +++ b/material/overrides/main.html @@ -24,5 +24,11 @@ {% endblock %} {% block announce %} - Material for MkDocs 5.0.0rc4 + + + Check out squidfunk's latest blog post – + + The Cognitive Complexity of CSS + + {% endblock %} diff --git a/src/overrides/home.html b/src/overrides/home.html index 32029aab5..ada5edfb3 100644 --- a/src/overrides/home.html +++ b/src/overrides/home.html @@ -96,6 +96,15 @@ border-color: var(--md-accent-fg-color); } + /* [mobile portrait -]: Adjust headline */ + @media screen and (max-width: 30em) { + + /* Make main headline smaller */ + .tx-hero h1 { + font-size: 1.4rem; + } + } + /* [tablet landscape +]: Display content and image next to each other */ @media screen and (min-width: 60em) { diff --git a/src/overrides/main.html b/src/overrides/main.html index 218d6bfa4..e16c227f0 100644 --- a/src/overrides/main.html +++ b/src/overrides/main.html @@ -55,5 +55,21 @@ {% block announce %} - Material for MkDocs 5.0.0rc4 + + + Check out squidfunk's latest blog post – + + The Cognitive Complexity of CSS + + {% endblock %}