Browse Source

Include fonts in extension

Removes dependency on Google Fonts service.
tags/v2.0
Matt Baer 7 years ago
parent
commit
b2b7f93c16
6 changed files with 20 additions and 4 deletions
  1. +18
    -0
      fonts.css
  2. BIN
      fonts/lora-700.woff2
  3. BIN
      fonts/lora.woff2
  4. BIN
      fonts/open-sans.woff2
  5. +1
    -2
      manifest.json
  6. +1
    -2
      popup.html

+ 18
- 0
fonts.css View File

@@ -0,0 +1,18 @@
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 400;
src: local('Lora'), local('Lora-Regular'), url('fonts/lora.woff2') format('woff2');
}
@font-face {
font-family: 'Lora';
font-style: normal;
font-weight: 700;
src: local('Lora Bold'), local('Lora-Bold'), url('fonts/lora-700.woff2') format('woff2');
}
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: local('Open Sans'), local('OpenSans'), url('fonts/open-sans.woff2') format('woff2');
}

BIN
fonts/lora-700.woff2 View File


BIN
fonts/lora.woff2 View File


BIN
fonts/open-sans.woff2 View File


+ 1
- 2
manifest.json View File

@@ -28,8 +28,7 @@
"activeTab",
"contextMenus",
"webRequest",
"*://*.write.as/",
"https://fonts.googleapis.com/"
"*://*.write.as/"
],
"externally_connectable": {
"matches": ["*://*.write.as/*"]


+ 1
- 2
popup.html View File

@@ -99,8 +99,7 @@
</div>
</form>
<link href='https://fonts.googleapis.com/css?family=Lora:400,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<link href='fonts.css' rel='stylesheet' type='text/css'>
</body>
</html>


Loading…
Cancel
Save