Reduced repaints for admonitions on scroll

This commit is contained in:
squidfunk 2019-11-19 13:11:21 +01:00
parent b49ae6f679
commit 919fccd238

View File

@ -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;
} }
} }
} }