diff --git a/overrides/main.html b/overrides/main.html new file mode 100644 index 000000000..954af3bc6 --- /dev/null +++ b/overrides/main.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{% block announce %} +{% if config.theme.language == 'zh' %} + {% set announcements = "纸质书将于近期发布,敬请关注!" %} +{% elif config.theme.language == 'en' %} + {% set announcements = "The paper book (Chinese edition) will be published soon. Stay tuned!" %} +{% endif %} + + + +{{ announcements }} +{% endblock %} \ No newline at end of file diff --git a/overrides/stylesheets/extra.css b/overrides/stylesheets/extra.css index 358a6a3e2..44e371856 100644 --- a/overrides/stylesheets/extra.css +++ b/overrides/stylesheets/extra.css @@ -207,6 +207,19 @@ body { width: 1.25em; } +/* header banner */ +.md-banner { + background-color: var(--md-code-bg-color); + color: var(--md-default-fg-color); + font-size: 0.75rem; +} + +.md-banner svg { + margin-right: 0.3rem; + height: 0.63rem; + fill: var(--md-default-fg-color); +} + .pythontutor-iframe { width: 125%; height: 125%;