Skip to content

Commit 981ee65

Browse files
committed
Improved readability of version warning for slate color scheme
1 parent 3b6c142 commit 981ee65

File tree

8 files changed

+11
-7
lines changed

8 files changed

+11
-7
lines changed

material/assets/stylesheets/main.f1b09aa2.min.css

-1
This file was deleted.

material/assets/stylesheets/main.f1b09aa2.min.css.map

-1
This file was deleted.

material/assets/stylesheets/main.ffa9267a.min.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/assets/stylesheets/main.ffa9267a.min.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/base.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
{% endif %}
4141
{% endblock %}
4242
{% block styles %}
43-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.f1b09aa2.min.css' | url }}">
43+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.ffa9267a.min.css' | url }}">
4444
{% if config.theme.palette %}
4545
{% set palette = config.theme.palette %}
4646
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a0c5b2b5.min.css' | url }}">
@@ -120,7 +120,7 @@
120120
{% endif %}
121121
</div>
122122
{% if config.extra.version %}
123-
<div data-md-component="outdated" hidden>
123+
<div data-md-color-scheme="default" data-md-component="outdated" hidden>
124124
{% if self.outdated() %}
125125
<aside class="md-banner md-banner--warning">
126126
<div class="md-banner__inner md-grid md-typeset">

src/assets/stylesheets/main/_colors.scss

+4
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@
111111
--md-admonition-fg-color: var(--md-default-fg-color);
112112
--md-admonition-bg-color: var(--md-default-bg-color);
113113

114+
// Warning color shades
115+
--md-warning-fg-color: hsla(0, 0%, 0%, 0.87);
116+
--md-warning-bg-color: hsla(60, 100%, 80%, 1);
117+
114118
// Footer color shades
115119
--md-footer-fg-color: hsla(0, 0%, 100%, 1);
116120
--md-footer-fg-color--light: hsla(0, 0%, 100%, 0.7);

src/assets/stylesheets/main/components/_banner.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737

3838
// Banner with warning
3939
&--warning {
40-
color: var(--md-default-fg-color);
41-
background: var(--md-typeset-mark-color);
40+
color: var(--md-warning-fg-color);
41+
background-color: var(--md-warning-bg-color);
4242
}
4343

4444
// Banner wrapper

src/base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239

240240
<!-- Version warning -->
241241
{% if config.extra.version %}
242-
<div data-md-component="outdated" hidden>
242+
<div data-md-color-scheme="default" data-md-component="outdated" hidden>
243243
{% if self.outdated() %}
244244
<aside class="md-banner md-banner--warning">
245245
<div class="md-banner__inner md-grid md-typeset">

0 commit comments

Comments
 (0)