Skip to content

Commit

Permalink
hide elements on snap
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Mar 20, 2024
1 parent 4bd38a7 commit 7165f9c
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -25,28 +23,24 @@
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 {
font-family: "Lora Variable";
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 {
font-family: "Lora Variable";
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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

0 comments on commit 7165f9c

Please sign in to comment.