Fixed custom admonition icons not working when color palette is defined

This commit is contained in:
squidfunk 2022-06-05 08:42:58 +02:00
parent 30dcb66c71
commit 7998dbf06a
6 changed files with 19 additions and 10 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

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.c0b802b2.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.5d38496d.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cbb835fc.min.css' | url }}">

View File

@ -26,6 +26,22 @@
// Color variables
:root {
@extend %root;
}
// ----------------------------------------------------------------------------
// Allow to explicitly use color schemes in nested content
[data-md-color-scheme="default"] {
@extend %root;
}
// ----------------------------------------------------------------------------
// Placeholders
// ----------------------------------------------------------------------------
// Default theme, i.e. light mode
%root {
// Default color shades
--md-default-fg-color: hsla(0, 0%, 0%, 0.87);
@ -116,10 +132,3 @@
0 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.2),
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.35);
}
// ----------------------------------------------------------------------------
// Allow to explicitly use color schemes in nested content
[data-md-color-scheme="default"] {
@extend :root;
}