mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed custom admonition icons not working when color palette is defined
This commit is contained in:
parent
30dcb66c71
commit
7998dbf06a
1
material/assets/stylesheets/main.5d38496d.min.css
vendored
Normal file
1
material/assets/stylesheets/main.5d38496d.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.5d38496d.min.css.map
Normal file
1
material/assets/stylesheets/main.5d38496d.min.css.map
Normal file
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
@ -34,7 +34,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% 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 %}
|
{% if config.theme.palette %}
|
||||||
{% set palette = config.theme.palette %}
|
{% set palette = config.theme.palette %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cbb835fc.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.cbb835fc.min.css' | url }}">
|
||||||
|
@ -26,6 +26,22 @@
|
|||||||
|
|
||||||
// Color variables
|
// Color variables
|
||||||
:root {
|
: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
|
// Default color shades
|
||||||
--md-default-fg-color: hsla(0, 0%, 0%, 0.87);
|
--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 #{px2rem(4px)} #{px2rem(10px)} hsla(0, 0%, 0%, 0.2),
|
||||||
0 0 #{px2rem(1px)} hsla(0, 0%, 0%, 0.35);
|
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;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user