@brightspace-ui/typography 9.0.0 → 9.0.1

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.
Files changed (2) hide show
  1. package/d2l-typography.js +2 -48
  2. package/package.json +1 -1
package/d2l-typography.js CHANGED
@@ -1,48 +1,11 @@
1
1
  import '@brightspace-ui/core/components/colors/colors.js';
2
2
  import '@polymer/polymer/polymer-legacy.js';
3
3
  import './d2l-typography-shared-styles.js';
4
-
5
- const importUrl = 'https://s.brightspace.com/lib/fonts/0.5.0/assets/';
4
+ import { fontFacesCss } from '@brightspace-ui/core/components/typography/styles.js';
6
5
 
7
6
  const $_fontFaces = document.createElement('style');
8
7
  $_fontFaces.id = 'd2l-typography-font-face';
9
- $_fontFaces.innerHTML = `
10
- @font-face {
11
- font-family: 'Lato';
12
- font-style: normal;
13
- font-weight: 400;
14
- src: local('Lato Regular'), local('Lato-Regular'), url(${new URL('Lato-400.woff2', importUrl)}) format('woff2'), url(${new URL('Lato-400.woff', importUrl)}) format('woff'), url(${new URL('Lato-400.ttf', importUrl)}) format('truetype');
15
- }
16
- @font-face {
17
- font-family: 'Lato';
18
- font-style: normal;
19
- font-weight: 700;
20
- src: local('Lato Bold'), local('Lato-Bold'), url(${new URL('Lato-700.woff2', importUrl)}) format('woff2'), url(${new URL('Lato-700.woff', importUrl)}) format('woff'), url(${new URL('Lato-700.ttf', importUrl)}) format('truetype');
21
- }
22
- @font-face {
23
- font-family: 'Open Dyslexic';
24
- font-style: normal;
25
- font-weight: 400;
26
- src: local('Open Dyslexic Regular'), local('OpenDyslexic-Regular'), url(${new URL('OpenDyslexic.woff', importUrl)}) format('woff'), url(${new URL('OpenDyslexic.ttf', importUrl)}) format('truetype');
27
- }
28
- @font-face {
29
- font-family: 'Open Dyslexic';
30
- font-style: italic;
31
- font-weight: 400;
32
- src: local('Open Dyslexic Italic'), local('OpenDyslexic-Italic'), url(${new URL('OpenDyslexic-Italic.woff', importUrl)}) format('woff'), url(${new URL('OpenDyslexic-Italic.ttf', importUrl)}) format('truetype');
33
- }
34
- @font-face {
35
- font-family: 'Open Dyslexic';
36
- font-style: normal;
37
- font-weight: 700;
38
- src: local('Open Dyslexic Bold'), local('OpenDyslexic-Bold'), url(${new URL('OpenDyslexic-700.woff', importUrl)}) format('woff'), url(${new URL('OpenDyslexic-700.ttf', importUrl)}) format('truetype');
39
- }
40
- @font-face {
41
- font-family: 'Open Dyslexic';
42
- font-style: italic;
43
- font-weight: 700;
44
- src: local('Open Dyslexic Bold Italic'), local('OpenDyslexic-BoldItalic'), url(${new URL('OpenDyslexic-700-Italic.woff', importUrl)}) format('woff'), url(${new URL('OpenDyslexic-700-Italic.ttf', importUrl)}) format('truetype');
45
- }`;
8
+ $_fontFaces.innerHTML = fontFacesCss;
46
9
  document.head.appendChild($_fontFaces);
47
10
 
48
11
  const $_documentContainer = document.createElement('template');
@@ -84,15 +47,6 @@ $_documentContainer.innerHTML = `<dom-module id="d2l-typography">
84
47
  @apply --d2l-font-paragraph-custom;
85
48
  }
86
49
 
87
- .d2l-typography.d2l-dyslexic,
88
- .d2l-typography .d2l-dyslexic,
89
- .vui-typography.vui-dyslexic,
90
- .vui-typography .vui-dyslexic {
91
- font-family: 'Open Dyslexic', sans-serif;
92
- font-weight: 400;
93
- @apply --d2l-font-dyslexic-custom;
94
- }
95
-
96
50
  .d2l-typography:lang(ar),
97
51
  .d2l-typography :lang(ar),
98
52
  .vui-typography:lang(ar),
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "eslint-plugin-lit": "^1",
24
24
  "eslint-plugin-sort-class-members": "^1"
25
25
  },
26
- "version": "9.0.0",
26
+ "version": "9.0.1",
27
27
  "main": "d2l-typography.js",
28
28
  "files": [
29
29
  "d2l-typography-shared-styles.js",