From 0ea65b2cfdd4a1e5f127aa80853443fae24d20ba Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 24 Jan 2023 22:21:04 +0800 Subject: [PATCH] Remove old spoiler effect This was fun but sadly perf is really bad --- index.html | 57 --------------------------------------- src/components/status.css | 11 -------- 2 files changed, 68 deletions(-) diff --git a/index.html b/index.html index 4b81bc0e..a18f8685 100644 --- a/index.html +++ b/index.html @@ -45,62 +45,5 @@
- - - - - - - - - - - - diff --git a/src/components/status.css b/src/components/status.css index cf16b879..3cf11e34 100644 --- a/src/components/status.css +++ b/src/components/status.css @@ -188,11 +188,9 @@ ~ *:not(.media-container, .card), .status .content-container.has-spoiler .spoiler ~ .card .meta-container { filter: blur(5px) invert(0.5); - /* filter: url(#spoiler); */ text-rendering: optimizeSpeed; image-rendering: crisp-edges; image-rendering: pixelated; - /* transform: translate3d(-5px, -5px, 0); */ pointer-events: none; user-select: none; contain: layout; @@ -206,15 +204,6 @@ image-rendering: pixelated; animation: none !important; } -/* @media (prefers-color-scheme: dark) { - .status - .content-container.has-spoiler - .spoiler - ~ *:not(.media-container, .card), - .status .content-container.has-spoiler .spoiler ~ .card .meta-container { - filter: url(#spoiler-dark); - } -} */ .status .content-container.show-spoiler .spoiler { border-style: dotted; }