From 919fccd2381c329a6d56a3afc532353790ec9146 Mon Sep 17 00:00:00 2001 From: squidfunk Date: Tue, 19 Nov 2019 13:11:21 +0100 Subject: [PATCH] Reduced repaints for admonitions on scroll --- src/assets/stylesheets/extensions/_admonition.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/assets/stylesheets/extensions/_admonition.scss b/src/assets/stylesheets/extensions/_admonition.scss index 5feca1a05..f7e15f29e 100644 --- a/src/assets/stylesheets/extensions/_admonition.scss +++ b/src/assets/stylesheets/extensions/_admonition.scss @@ -31,7 +31,6 @@ .admonition { @include z-depth(2); - position: relative; margin: 1.5625em 0; padding: 0 px2rem(12px); border-left: px2rem(4px) solid $clr-blue-a200; @@ -78,15 +77,15 @@ @extend %md-icon; position: absolute; - left: px2rem(12px); + margin-left: px2rem(-28px); color: $clr-blue-a200; font-size: px2rem(20px); content: "\E3C9"; // edit // Adjust for RTL languages [dir="rtl"] & { - right: px2rem(12px); - left: initial; + margin-right: px2rem(-28px); + margin-left: initial; } } }