From 6de8c2b15dd6dce9d10ecf40edbc47fc5c32254c Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Thu, 21 Jan 2021 22:43:48 -0500 Subject: [PATCH] bump deps; safari styles fix --- package.json | 2 +- styles/notion.css | 12 ++++++++++-- yarn.lock | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 00655ee..4b910ee 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "react-body-classname": "^1.3.1", "react-dom": "17.0.1", "react-icons": "^4.1.0", - "react-notion-x": "^3.3.0", + "react-notion-x": "^3.3.1", "react-use": "^15.3.3" }, "devDependencies": { diff --git a/styles/notion.css b/styles/notion.css index c9e4caa..bc4574f 100644 --- a/styles/notion.css +++ b/styles/notion.css @@ -74,12 +74,20 @@ .notion-collection-card-cover { transition: filter 150ms linear; filter: brightness(100%); - /* filter: hue-rotate(0); */ } .notion-collection-card:hover .notion-collection-card-cover { filter: brightness(120%); - /* filter: hue-rotate(180deg); */ +} + +/* only target safari */ +@media screen and (-webkit-min-device-pixel-ratio: 0) { + _::-webkit-full-page-media, + _:future, + :root, + .notion-collection-card-cover { + transition: none 0ms linear; + } } .notion-quote { diff --git a/yarn.lock b/yarn.lock index a3b657b..fcf9322 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5146,10 +5146,10 @@ react-modal@^3.11.2: react-lifecycles-compat "^3.0.0" warning "^4.0.3" -react-notion-x@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-3.3.0.tgz#403dba7b73cc39dc9a9e2e85362f27dd7cf372da" - integrity sha512-bFepkcG2ZvOhU1UnaG01IIiHflisfcafH+3142onrdD2rTvypicYjZ01SwdYZ54fBPzTXQSt/dpr0Dt7Pk3BeA== +react-notion-x@^3.3.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/react-notion-x/-/react-notion-x-3.3.1.tgz#b4ad09a0bd05d7e10ce722c9ea02e545b1911712" + integrity sha512-gbe6gf0U28jvEimqJ37gX9fgPhEA+l3sydY/xb6aKqYlQ+8wCE++K60zBx90W3X5nH0D+cLm1WXAVL/mlBPgeQ== dependencies: "@matejmazur/react-katex" "^3.1.3" date-fns "^2.15.0"