From bb8503b85abf731b2263fb337e441eb16c2d08f2 Mon Sep 17 00:00:00 2001 From: oupala Date: Tue, 28 May 2019 15:09:52 +0200 Subject: [PATCH] fix: remove dependency to font Open Sans We want apaxy to need as few dependencies as possible, and even less external dependencies (because we have control over external dependencies). This commit removes dependency to font Open Sans. As pointed by nodisc in issue #59, there are some advantages in removing this dependency: no cross-site requests, no leaking of HTTP referers to font provider, works on LAN-only setups, no dependency on an external service. fix #59 --- apaxy/theme/400.html | 1 - apaxy/theme/403.html | 1 - apaxy/theme/404.html | 1 - apaxy/theme/408.html | 1 - apaxy/theme/500.html | 1 - apaxy/theme/502.html | 1 - apaxy/theme/style.css | 5 +---- 7 files changed, 1 insertion(+), 10 deletions(-) diff --git a/apaxy/theme/400.html b/apaxy/theme/400.html index 6204e63..1187ea6 100644 --- a/apaxy/theme/400.html +++ b/apaxy/theme/400.html @@ -7,7 +7,6 @@ -
diff --git a/apaxy/theme/403.html b/apaxy/theme/403.html index 645952d..2a7c38e 100644 --- a/apaxy/theme/403.html +++ b/apaxy/theme/403.html @@ -7,7 +7,6 @@ -
diff --git a/apaxy/theme/404.html b/apaxy/theme/404.html index f0725d4..ee41da2 100644 --- a/apaxy/theme/404.html +++ b/apaxy/theme/404.html @@ -7,7 +7,6 @@ -
diff --git a/apaxy/theme/408.html b/apaxy/theme/408.html index 1cff69f..1a91a2d 100644 --- a/apaxy/theme/408.html +++ b/apaxy/theme/408.html @@ -7,7 +7,6 @@ -
diff --git a/apaxy/theme/500.html b/apaxy/theme/500.html index f07c671..0491191 100644 --- a/apaxy/theme/500.html +++ b/apaxy/theme/500.html @@ -7,7 +7,6 @@ -
diff --git a/apaxy/theme/502.html b/apaxy/theme/502.html index 12a7d15..46a753b 100644 --- a/apaxy/theme/502.html +++ b/apaxy/theme/502.html @@ -7,7 +7,6 @@ -
diff --git a/apaxy/theme/style.css b/apaxy/theme/style.css index 2415c5f..ebfaf2e 100644 --- a/apaxy/theme/style.css +++ b/apaxy/theme/style.css @@ -9,9 +9,6 @@ button,hr,input{overflow:visible}audio,canvas,progress,video{display:inline-bloc Theme author: @adamwhitcroft \*------------------------------------*/ -@import url('//fonts.googleapis.com/css?family=Open+Sans'); - -/* Have to use @import for the font, as you can only specify a single stylesheet */ * { margin: 0; padding: 0; @@ -27,7 +24,7 @@ html { color: #61666c; font-weight: 400; font-size: 1em; - font-family: 'Open Sans', sans-serif; + font-family: sans-serif; line-height: 2em; }