mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Improved support for reduced motion media
This commit is contained in:
parent
37bd327763
commit
7d8165cda6
9
material/assets/stylesheets/main.bb3983ee.min.css
vendored
Normal file
9
material/assets/stylesheets/main.bb3983ee.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
material/assets/stylesheets/main.bb3983ee.min.css.map
Normal file
1
material/assets/stylesheets/main.bb3983ee.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.c45fdb8e.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.bb3983ee.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.e6a45f82.min.css' | url }}">
|
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.e6a45f82.min.css' | url }}">
|
||||||
|
@ -36,6 +36,11 @@ html {
|
|||||||
*::before,
|
*::before,
|
||||||
*::after {
|
*::after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
|
|
||||||
|
// [reduced motion]: Disable all transitions
|
||||||
|
@media (prefers-reduced-motion) {
|
||||||
|
transition: none !important; // stylelint-disable-line
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove margin in all browsers
|
// Remove margin in all browsers
|
||||||
|
@ -39,8 +39,7 @@
|
|||||||
// Arithmatex content
|
// Arithmatex content
|
||||||
> * {
|
> * {
|
||||||
width: min-content;
|
width: min-content;
|
||||||
// stylelint-disable-next-line declaration-no-important
|
margin: 1em auto !important; // stylelint-disable-line
|
||||||
margin: 1em auto !important;
|
|
||||||
padding: 0 px2rem(16px);
|
padding: 0 px2rem(16px);
|
||||||
touch-action: auto;
|
touch-action: auto;
|
||||||
}
|
}
|
||||||
|
@ -109,11 +109,6 @@
|
|||||||
transform 250ms;
|
transform 250ms;
|
||||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
content: "";
|
content: "";
|
||||||
|
|
||||||
// [reduced motion]: Disable animation
|
|
||||||
@media (prefers-reduced-motion) {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,11 +85,6 @@
|
|||||||
max-height 0ms 250ms,
|
max-height 0ms 250ms,
|
||||||
z-index 250ms;
|
z-index 250ms;
|
||||||
|
|
||||||
// [reduced motion]: Disable animation
|
|
||||||
@media (prefers-reduced-motion) {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Tooltip on parent focus
|
// Tooltip on parent focus
|
||||||
:focus-within > & {
|
:focus-within > & {
|
||||||
max-height: 1000%;
|
max-height: 1000%;
|
||||||
@ -100,11 +95,6 @@
|
|||||||
opacity 250ms,
|
opacity 250ms,
|
||||||
max-height 250ms,
|
max-height 250ms,
|
||||||
z-index 0ms;
|
z-index 0ms;
|
||||||
|
|
||||||
// [reduced motion]: Disable animation
|
|
||||||
@media (prefers-reduced-motion) {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show outline for keyboard devices
|
// Show outline for keyboard devices
|
||||||
@ -196,7 +186,6 @@
|
|||||||
|
|
||||||
// [reduced motion]: Disable animation
|
// [reduced motion]: Disable animation
|
||||||
@media (prefers-reduced-motion) {
|
@media (prefers-reduced-motion) {
|
||||||
transition: none;
|
|
||||||
animation: none;
|
animation: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -211,11 +200,6 @@
|
|||||||
color 250ms,
|
color 250ms,
|
||||||
background-color 250ms;
|
background-color 250ms;
|
||||||
animation: none;
|
animation: none;
|
||||||
|
|
||||||
// [reduced motion]: Disable animation
|
|
||||||
@media (prefers-reduced-motion) {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -225,11 +209,6 @@
|
|||||||
transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1);
|
transition: transform 400ms cubic-bezier(0.1, 0.7, 0.1, 1);
|
||||||
content: attr(data-md-annotation-id);
|
content: attr(data-md-annotation-id);
|
||||||
|
|
||||||
// [reduced motion]: Disable animation
|
|
||||||
@media (prefers-reduced-motion) {
|
|
||||||
transition: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// [not print]: if we're not in print mode, show a `+` sign instead of
|
// [not print]: if we're not in print mode, show a `+` sign instead of
|
||||||
// the original numbers, as context is already given by the position.
|
// the original numbers, as context is already given by the position.
|
||||||
@media not print {
|
@media not print {
|
||||||
|
Loading…
Reference in New Issue
Block a user