From 7165f9c26e9ef91aad6fcd35532a98feea00e318 Mon Sep 17 00:00:00 2001 From: Nathan Arthur Date: Wed, 20 Mar 2024 15:21:53 -0400 Subject: [PATCH] hide elements on snap --- src/styles/global.css | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/src/styles/global.css b/src/styles/global.css index 0ef04e6..862df66 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -13,10 +13,8 @@ font-display: block; font-weight: 700; src: - url(@fontsource/source-sans-pro/files/source-sans-pro-latin-700-normal.woff2) - format("woff2"), - url(@fontsource/source-sans-pro/files/source-sans-pro-latin-700-normal.woff) - format("woff"); + url(@fontsource/source-sans-pro/files/source-sans-pro-latin-700-normal.woff2) format("woff2"), + url(@fontsource/source-sans-pro/files/source-sans-pro-latin-700-normal.woff) format("woff"); } @font-face { @@ -25,10 +23,8 @@ font-display: block; font-weight: 900; src: - url(@fontsource/source-sans-pro/files/source-sans-pro-latin-900-normal.woff2) - format("woff2"), - url(@fontsource/source-sans-pro/files/source-sans-pro-latin-900-normal.woff) - format("woff"); + url(@fontsource/source-sans-pro/files/source-sans-pro-latin-900-normal.woff2) format("woff2"), + url(@fontsource/source-sans-pro/files/source-sans-pro-latin-900-normal.woff) format("woff"); } @font-face { @@ -36,8 +32,7 @@ font-style: normal; font-display: block; font-weight: 400 700; - src: url(@fontsource-variable/lora/files/lora-latin-wght-normal.woff2) - format("woff2-variations"); + src: url(@fontsource-variable/lora/files/lora-latin-wght-normal.woff2) format("woff2-variations"); } @font-face { @@ -45,8 +40,7 @@ font-style: italic; font-display: block; font-weight: 50 100 200 300 500; - src: url(@fontsource-variable/lora/files/lora-latin-wght-italic.woff2) - format("woff2-variations"); + src: url(@fontsource-variable/lora/files/lora-latin-wght-italic.woff2) format("woff2-variations"); } :root { @@ -83,11 +77,11 @@ h2, h3, h4, h5, -h1 > *, -h2 > *, -h3 > *, -h4 > *, -h5 > * { +h1>*, +h2>*, +h3>*, +h4>*, +h5>* { line-height: var(--line-height-headings); font-family: "Source Sans Pro", sans-serif; font-weight: 700; @@ -177,3 +171,14 @@ ol { margin-left: auto; margin-right: auto; } + +/* .snap purpose: improve puppeteer diffing reliability */ + +body.snap #comments, +body.snap #sha { + display: none; +} + +body.snap img { + filter: brightness(0); +} \ No newline at end of file