Browse Source

improvement: prevent loading resources from third party CDN (via #4598)

Remove usage of Google Fonts to avoid any data protection issue. Using a
CDN will leak data to a third party that can be simply avoided by using
system fonts instead.

Furthermore the usage of CDNs can cause legal issues in EU countries.
bubble
Markus Poerschke 6 years ago
committed by kyle
parent
commit
875caab173
4 changed files with 3 additions and 6 deletions
  1. +0
    -1
      dev-helpers/index.html
  2. +0
    -1
      dist/index.html
  3. +3
    -3
      src/style/_type.scss
  4. +0
    -1
      test/e2e/helpers/index.html

+ 0
- 1
dev-helpers/index.html View File

@@ -5,7 +5,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />


+ 0
- 1
dist/index.html View File

@@ -4,7 +4,6 @@
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />


+ 3
- 3
src/style/_type.scss View File

@@ -1,13 +1,13 @@
@mixin text_body($color: $text-body-default-font-color)
{
font-family: 'Open Sans', sans-serif;
font-family: sans-serif;

color: $color;
}

@mixin text_code($color: $text-code-default-font-color)
{
font-family: 'Source Code Pro', monospace;
font-family: monospace;
font-weight: 600;

color: $color;
@@ -15,7 +15,7 @@

@mixin text_headline($color: $text-headline-default-font-color)
{
font-family: 'Titillium Web', sans-serif;
font-family: sans-serif;

color: $color;
}

+ 0
- 1
test/e2e/helpers/index.html View File

@@ -5,7 +5,6 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="./favicon-16x16.png" sizes="16x16" />


Loading…
Cancel
Save