From 171a5b78f8302a7a29b3da87a907f1e79704c6ef Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Tue, 27 Feb 2024 18:15:37 +0800 Subject: [PATCH] opt: css feature content-visibility only available in modern style --- src/stylesheets/article-style-st-classic.css | 2 -- src/stylesheets/article-style-st-modern.css | 3 +++ src/stylesheets/article-style.css | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/stylesheets/article-style-st-classic.css b/src/stylesheets/article-style-st-classic.css index 94f835e0..a861aaf8 100644 --- a/src/stylesheets/article-style-st-classic.css +++ b/src/stylesheets/article-style-st-classic.css @@ -67,8 +67,6 @@ pre { background: #fefdeb; /*fix for invalid blg*/ font-style: normal; - content-visibility: auto; - contain-intrinsic-height: auto 600px; } /* CSS trick to prevent the floating elements to overflow diff --git a/src/stylesheets/article-style-st-modern.css b/src/stylesheets/article-style-st-modern.css index e8761e36..71827361 100644 --- a/src/stylesheets/article-style-st-modern.css +++ b/src/stylesheets/article-style-st-modern.css @@ -25,6 +25,9 @@ a:hover { background: white; padding-left: 2em; padding-right: 2em; + + content-visibility: auto; + contain-intrinsic-height: auto 600px; } .gdactivearticle { diff --git a/src/stylesheets/article-style.css b/src/stylesheets/article-style.css index fc2740bc..c566dd7b 100644 --- a/src/stylesheets/article-style.css +++ b/src/stylesheets/article-style.css @@ -99,8 +99,6 @@ pre { margin-bottom: 8px; /*fix for invalid blg*/ font-style: normal; - content-visibility: auto; - contain-intrinsic-height: auto 600px; } .empty-space {