mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added focus outline to admonitions and details
This commit is contained in:
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.83068744.min.css
vendored
Normal file
1
material/assets/stylesheets/main.83068744.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -44,7 +44,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block styles %}
|
{% block styles %}
|
||||||
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.2da9acca.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.83068744.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.ecc896b0.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.ecc896b0.min.css' | url }}">
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ $admonitions: (
|
|||||||
border: px2rem(1px) solid $clr-blue-a200;
|
border: px2rem(1px) solid $clr-blue-a200;
|
||||||
border-radius: px2rem(4px);
|
border-radius: px2rem(4px);
|
||||||
box-shadow: var(--md-shadow-z1);
|
box-shadow: var(--md-shadow-z1);
|
||||||
|
transition: box-shadow 125ms;
|
||||||
page-break-inside: avoid;
|
page-break-inside: avoid;
|
||||||
|
|
||||||
// [print]: Omit shadow as it may lead to rendering errors
|
// [print]: Omit shadow as it may lead to rendering errors
|
||||||
@@ -79,6 +80,11 @@ $admonitions: (
|
|||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Admonition on focus
|
||||||
|
&:focus-within {
|
||||||
|
box-shadow: 0 0 0 px2rem(4px) color.adjust($clr-blue-a200, $alpha: -0.9);
|
||||||
|
}
|
||||||
|
|
||||||
// Hack: Chrome exhibits a weird issue where it will set nested elements to
|
// Hack: Chrome exhibits a weird issue where it will set nested elements to
|
||||||
// content-box. Doesn't happen in other browsers, so looks like a bug.
|
// content-box. Doesn't happen in other browsers, so looks like a bug.
|
||||||
> * {
|
> * {
|
||||||
@@ -164,6 +170,11 @@ $admonitions: (
|
|||||||
// Admonition flavour
|
// Admonition flavour
|
||||||
.md-typeset .admonition.#{$name} {
|
.md-typeset .admonition.#{$name} {
|
||||||
border-color: $tint;
|
border-color: $tint;
|
||||||
|
|
||||||
|
// Admonition on focus
|
||||||
|
&:focus-within {
|
||||||
|
box-shadow: 0 0 0 px2rem(4px) color.adjust($tint, $alpha: -0.9);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Admonition flavour title
|
// Admonition flavour title
|
||||||
|
|||||||
Reference in New Issue
Block a user