yapp 5.0.12 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -204,7 +204,7 @@ If you choose to enable Fira Code then you need to provide the necessary web fon
|
|
|
204
204
|
|
|
205
205
|
```
|
|
206
206
|
@font-face {
|
|
207
|
-
src: url("/css/woff2/
|
|
207
|
+
src: url("/css/woff2/Fira Code-Light.woff2");
|
|
208
208
|
font-family: "Fira Code";
|
|
209
209
|
font-weight: normal;
|
|
210
210
|
}
|
|
@@ -215,8 +215,8 @@ You do not have to provide this, rendering Yapp's styles will do so for you, but
|
|
|
215
215
|
You can also preload the font files by putting something like the following in the header of the containing HTML page:
|
|
216
216
|
|
|
217
217
|
```
|
|
218
|
-
<link rel="preload" href="/css/woff2/
|
|
219
|
-
<link rel="preload" href="/css/woff2/
|
|
218
|
+
<link rel="preload" href="/css/woff2/Fira Code-Bold.woff2" as="font" type="font/woff2" crossorigin >
|
|
219
|
+
<link rel="preload" href="/css/woff2/Fira Code-Regular.woff2" as="font" type="font/woff2" crossorigin >
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
Note that both the path and the host of the URLs are assumed fixed in the snippets above but this may not be the case. Instructions on how to rectify this can be found in the section on styling Yapp that follows:
|
|
@@ -281,9 +281,9 @@ In a similar vein to the overall style you can either copy and completely replac
|
|
|
281
281
|
.yapp .java.syntax > .string-literal { color: "#f5087a"; }
|
|
282
282
|
```
|
|
283
283
|
|
|
284
|
-
###
|
|
284
|
+
### Fira Code styles
|
|
285
285
|
|
|
286
|
-
If the paths of the web font files are different to the default then you may want to alter the
|
|
286
|
+
If the paths of the web font files are different to the default then you may want to alter the Fira Code style:
|
|
287
287
|
|
|
288
288
|
https://github.com/djalbat/yapp/blob/master/src/style/firaCode.js
|
|
289
289
|
|