Improved readability of version warning for slate color scheme

This commit is contained in:
squidfunk 2023-02-18 11:39:33 +01:00
parent 3b6c142958
commit 981ee65498
8 changed files with 11 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -40,7 +40,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f1b09aa2.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.ffa9267a.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a0c5b2b5.min.css' | url }}">
@ -120,7 +120,7 @@
{% endif %}
</div>
{% if config.extra.version %}
<div data-md-component="outdated" hidden>
<div data-md-color-scheme="default" data-md-component="outdated" hidden>
{% if self.outdated() %}
<aside class="md-banner md-banner--warning">
<div class="md-banner__inner md-grid md-typeset">

View File

@ -111,6 +111,10 @@
--md-admonition-fg-color: var(--md-default-fg-color);
--md-admonition-bg-color: var(--md-default-bg-color);
// Warning color shades
--md-warning-fg-color: hsla(0, 0%, 0%, 0.87);
--md-warning-bg-color: hsla(60, 100%, 80%, 1);
// Footer color shades
--md-footer-fg-color: hsla(0, 0%, 100%, 1);
--md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);

View File

@ -37,8 +37,8 @@
// Banner with warning
&--warning {
color: var(--md-default-fg-color);
background: var(--md-typeset-mark-color);
color: var(--md-warning-fg-color);
background-color: var(--md-warning-bg-color);
}
// Banner wrapper

View File

@ -239,7 +239,7 @@
<!-- Version warning -->
{% if config.extra.version %}
<div data-md-component="outdated" hidden>
<div data-md-color-scheme="default" data-md-component="outdated" hidden>
{% if self.outdated() %}
<aside class="md-banner md-banner--warning">
<div class="md-banner__inner md-grid md-typeset">