Heydon Pickering 8 лет назад
Родитель
Сommit
ac14576ae8
39 измененных файлов с 70 добавлено и 38 удалено
  1. 1 0
      content/_index.md
  2. BIN
      docs/css/fonts/miriamlibre-bold.woff
  3. BIN
      docs/css/fonts/miriamlibre-bold.woff2
  4. BIN
      docs/css/fonts/pt_sans-web-bold.woff
  5. BIN
      docs/css/fonts/pt_sans-web-bold.woff2
  6. BIN
      docs/css/fonts/pt_sans-web-italic.woff
  7. BIN
      docs/css/fonts/pt_sans-web-italic.woff2
  8. BIN
      docs/css/fonts/pt_sans-web-regular.woff
  9. BIN
      docs/css/fonts/pt_sans-web-regular.woff2
  10. 34 0
      docs/css/styles.css
  11. 1 2
      docs/index.html
  12. 0 2
      docs/patterns/coding/code-blocks/index.html
  13. 0 2
      docs/patterns/coding/codepen-embedding/index.html
  14. 0 2
      docs/patterns/coding/color-palettes/index.html
  15. 0 2
      docs/patterns/coding/index.html
  16. 0 2
      docs/patterns/coding/tested/index.html
  17. 0 2
      docs/patterns/coding/writing-inline-demos/index.html
  18. 0 2
      docs/patterns/index.html
  19. 0 2
      docs/patterns/installation/index.html
  20. 0 2
      docs/patterns/library-setup/index.html
  21. 0 2
      docs/patterns/serving/index.html
  22. 0 2
      docs/patterns/writing/expandable-sections/index.html
  23. 0 2
      docs/patterns/writing/including-images/index.html
  24. 0 2
      docs/patterns/writing/index.html
  25. 0 2
      docs/patterns/writing/library-structure/index.html
  26. 0 2
      docs/patterns/writing/markdown-and-metadata/index.html
  27. 0 2
      docs/patterns/writing/notes-and-warnings/index.html
  28. 0 2
      docs/patterns/writing/references/index.html
  29. 0 0
      docs/service-worker.js
  30. 0 2
      themes/infusion/layouts/_default/baseof.html
  31. BIN
      themes/infusion/static/css/fonts/miriamlibre-bold.woff
  32. BIN
      themes/infusion/static/css/fonts/miriamlibre-bold.woff2
  33. BIN
      themes/infusion/static/css/fonts/pt_sans-web-bold.woff
  34. BIN
      themes/infusion/static/css/fonts/pt_sans-web-bold.woff2
  35. BIN
      themes/infusion/static/css/fonts/pt_sans-web-italic.woff
  36. BIN
      themes/infusion/static/css/fonts/pt_sans-web-italic.woff2
  37. BIN
      themes/infusion/static/css/fonts/pt_sans-web-regular.woff
  38. BIN
      themes/infusion/static/css/fonts/pt_sans-web-regular.woff2
  39. 34 0
      themes/infusion/static/css/styles.css

+ 1 - 0
content/_index.md

@@ -12,6 +12,7 @@ Welcome to **Infusion**: a pattern library builder for inclusive designers. Thes
 * Easily make sections collapsible without writing HTML
 * Choose between plain or line-numbered code blocks
 * A responsive, screen reader and keyboard accessible static website as output
+* Available to read offline, thanks to service worker integration
 {{% /ticks %}}
 
 To get started, take a look at {{% pattern "Installation" %}}.

BIN
docs/css/fonts/miriamlibre-bold.woff


BIN
docs/css/fonts/miriamlibre-bold.woff2


BIN
docs/css/fonts/pt_sans-web-bold.woff


BIN
docs/css/fonts/pt_sans-web-bold.woff2


BIN
docs/css/fonts/pt_sans-web-italic.woff


BIN
docs/css/fonts/pt_sans-web-italic.woff2


BIN
docs/css/fonts/pt_sans-web-regular.woff


BIN
docs/css/fonts/pt_sans-web-regular.woff2


+ 34 - 0
docs/css/styles.css

@@ -1,3 +1,37 @@
+/* fonts */
+
+@font-face {
+    font-family: 'PT Sans';
+    src: url('fonts/pt_sans-web-bold.woff2') format('woff2'),
+         url('fonts/pt_sans-web-bold.woff') format('woff');
+    font-weight: bold;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'PT Sans';
+    src: url('fonts/pt_sans-web-italic.woff2') format('woff2'),
+         url('fonts/pt_sans-web-italic.woff') format('woff');
+    font-weight: normal;
+    font-style: italic;
+}
+
+@font-face {
+    font-family: 'PT Sans';
+    src: url('fonts/pt_sans-web-regular.woff2') format('woff2'),
+         url('fonts/pt_sans-web-regular.woff') format('woff');
+    font-weight: normal;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'Miriam Libre';
+    src: url('fonts/miriamlibre-bold.woff2') format('woff2'),
+         url('fonts/miriamlibre-bold.woff') format('woff');
+    font-weight: bold;
+    font-style: normal;
+}
+
 *, *::before, *::after {
   font-family: inherit;
   color: inherit;

+ 1 - 2
docs/index.html

@@ -23,8 +23,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>
@@ -237,6 +235,7 @@
 <li>Easily make sections collapsible without writing HTML</li>
 <li>Choose between plain or line-numbered code blocks</li>
 <li>A responsive, screen reader and keyboard accessible static website as output</li>
+<li>Available to read offline, thanks to service worker integration</li>
 </ul>
 
 </div>

+ 0 - 2
docs/patterns/coding/code-blocks/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/coding/codepen-embedding/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/coding/color-palettes/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/coding/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/coding/tested/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/coding/writing-inline-demos/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/installation/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/library-setup/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/serving/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/expandable-sections/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/including-images/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/library-structure/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/markdown-and-metadata/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/notes-and-warnings/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

+ 0 - 2
docs/patterns/writing/references/index.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="https://heydon.github.io/infusion/css/prism.css" />
     <link rel="stylesheet" type="text/css" href="https://heydon.github.io/infusion/css/styles.css">
     <title>

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
docs/service-worker.js


+ 0 - 2
themes/infusion/layouts/_default/baseof.html

@@ -22,8 +22,6 @@
     <meta name="msapplication-TileColor" content="#ffffff">
     <meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
     <meta name="theme-color" content="#ffffff">
-    <link href="https://fonts.googleapis.com/css?family=Miriam+Libre:700" rel="stylesheet">
-    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet">
     <link rel="stylesheet" href="{{ .Site.BaseURL }}css/prism.css" />
     <link rel="stylesheet" type="text/css" href="{{ .Site.BaseURL }}css/styles.css">
     <title>

BIN
themes/infusion/static/css/fonts/miriamlibre-bold.woff


BIN
themes/infusion/static/css/fonts/miriamlibre-bold.woff2


BIN
themes/infusion/static/css/fonts/pt_sans-web-bold.woff


BIN
themes/infusion/static/css/fonts/pt_sans-web-bold.woff2


BIN
themes/infusion/static/css/fonts/pt_sans-web-italic.woff


BIN
themes/infusion/static/css/fonts/pt_sans-web-italic.woff2


BIN
themes/infusion/static/css/fonts/pt_sans-web-regular.woff


BIN
themes/infusion/static/css/fonts/pt_sans-web-regular.woff2


+ 34 - 0
themes/infusion/static/css/styles.css

@@ -1,3 +1,37 @@
+/* fonts */
+
+@font-face {
+    font-family: 'PT Sans';
+    src: url('fonts/pt_sans-web-bold.woff2') format('woff2'),
+         url('fonts/pt_sans-web-bold.woff') format('woff');
+    font-weight: bold;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'PT Sans';
+    src: url('fonts/pt_sans-web-italic.woff2') format('woff2'),
+         url('fonts/pt_sans-web-italic.woff') format('woff');
+    font-weight: normal;
+    font-style: italic;
+}
+
+@font-face {
+    font-family: 'PT Sans';
+    src: url('fonts/pt_sans-web-regular.woff2') format('woff2'),
+         url('fonts/pt_sans-web-regular.woff') format('woff');
+    font-weight: normal;
+    font-style: normal;
+}
+
+@font-face {
+    font-family: 'Miriam Libre';
+    src: url('fonts/miriamlibre-bold.woff2') format('woff2'),
+         url('fonts/miriamlibre-bold.woff') format('woff');
+    font-weight: bold;
+    font-style: normal;
+}
+
 *, *::before, *::after {
   font-family: inherit;
   color: inherit;

Некоторые файлы не были показаны из-за большого количества измененных файлов