Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Move font-face defs into HTML for CDN (#5612)

authored by

Eric Bailey and committed by
GitHub
3fb14d18 1cedd4a3

+30 -15
+14
bskyweb/templates/base.html
··· 24 24 * 25 25 * THIS NEEDS TO BE DUPLICATED IN `bskyweb/templates/base.html` 26 26 */ 27 + @font-face { 28 + font-family: 'InterVariable'; 29 + src: url(/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf) format('truetype'); 30 + font-weight: 300 1000; 31 + font-style: normal; 32 + font-display: swap; 33 + } 34 + @font-face { 35 + font-family: 'InterVariableItalic'; 36 + src: url(/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf) format('truetype'); 37 + font-weight: 300 1000; 38 + font-style: italic; 39 + font-display: swap; 40 + } 27 41 html { 28 42 background-color: white; 29 43 scrollbar-gutter: stable both-edges;
+2
src/alf/fonts.ts
··· 70 70 * IMPORTANT: This is unused. Expo statically extracts these fonts. 71 71 * 72 72 * All used fonts MUST be configured here. Unused fonts can be commented out. 73 + * 74 + * This is used for both web fonts and native fonts. 73 75 */ 74 76 export function DO_NOT_USE() { 75 77 return useFonts({
-15
src/style.css
··· 6 6 * may need to touch all three. Ask Eric if you aren't sure. 7 7 */ 8 8 9 - @font-face { 10 - font-family: 'InterVariable'; 11 - src: url(/assets/fonts/inter/InterVariable.ttf) format('truetype'); 12 - font-weight: 300 1000; 13 - font-style: normal; 14 - font-display: swap; 15 - } 16 - @font-face { 17 - font-family: 'InterVariableItalic'; 18 - src: url(/assets/fonts/inter/InterVariable-Italic.ttf) format('truetype'); 19 - font-weight: 300 1000; 20 - font-style: italic; 21 - font-display: swap; 22 - } 23 - 24 9 /** 25 10 * BEGIN STYLES 26 11 *
+14
web/index.html
··· 29 29 * 30 30 * THIS NEEDS TO BE DUPLICATED IN `bskyweb/templates/base.html` 31 31 */ 32 + @font-face { 33 + font-family: 'InterVariable'; 34 + src: url(/static/media/InterVariable.c9f788f6e7ebaec75d7c.ttf) format('truetype'); 35 + font-weight: 300 1000; 36 + font-style: normal; 37 + font-display: swap; 38 + } 39 + @font-face { 40 + font-family: 'InterVariableItalic'; 41 + src: url(/static/media/InterVariable-Italic.55d6a3f35e9b605ba6f4.ttf) format('truetype'); 42 + font-weight: 300 1000; 43 + font-style: italic; 44 + font-display: swap; 45 + } 32 46 html { 33 47 background-color: white; 34 48 scrollbar-gutter: stable both-edges;