mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Reduced repaints for admonitions on scroll
This commit is contained in:
parent
b49ae6f679
commit
919fccd238
@ -31,7 +31,6 @@
|
|||||||
.admonition {
|
.admonition {
|
||||||
@include z-depth(2);
|
@include z-depth(2);
|
||||||
|
|
||||||
position: relative;
|
|
||||||
margin: 1.5625em 0;
|
margin: 1.5625em 0;
|
||||||
padding: 0 px2rem(12px);
|
padding: 0 px2rem(12px);
|
||||||
border-left: px2rem(4px) solid $clr-blue-a200;
|
border-left: px2rem(4px) solid $clr-blue-a200;
|
||||||
@ -78,15 +77,15 @@
|
|||||||
@extend %md-icon;
|
@extend %md-icon;
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: px2rem(12px);
|
margin-left: px2rem(-28px);
|
||||||
color: $clr-blue-a200;
|
color: $clr-blue-a200;
|
||||||
font-size: px2rem(20px);
|
font-size: px2rem(20px);
|
||||||
content: "\E3C9"; // edit
|
content: "\E3C9"; // edit
|
||||||
|
|
||||||
// Adjust for RTL languages
|
// Adjust for RTL languages
|
||||||
[dir="rtl"] & {
|
[dir="rtl"] & {
|
||||||
right: px2rem(12px);
|
margin-right: px2rem(-28px);
|
||||||
left: initial;
|
margin-left: initial;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user