-
Notifications
You must be signed in to change notification settings - Fork 10
/
d2l-typography-shared-styles.js
68 lines (57 loc) · 1.33 KB
/
d2l-typography-shared-styles.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import '@brightspace-ui/core/components/colors/colors.js';
import '@polymer/polymer/polymer-legacy.js';
const $_documentContainer = document.createElement('template');
$_documentContainer.innerHTML = `<custom-style>
<style is="custom-style">
html {
--d2l-body-standard-text: {
font-size: 0.95rem;
font-weight: 400;
line-height: 1.4rem;
};
--d2l-body-compact-text: {
font-size: 0.8rem;
font-weight: 400;
line-height: 1.2rem;
};
--d2l-body-small-text: {
color: var(--d2l-color-tungsten);
font-size: 0.7rem;
font-weight: 400;
line-height: 1rem;
margin: auto;
};
--d2l-heading-1: {
font-size: 2rem;
font-weight: 400;
line-height: 2.4rem;
margin: 1.5rem 0 1.5rem 0;
};
--d2l-heading-2: {
font-size: 1.5rem;
font-weight: 400;
line-height: 1.8rem;
margin: 1.5rem 0 1.5rem 0;
};
--d2l-heading-3: {
font-size: 1rem;
font-weight: 700;
line-height: 1.5rem;
margin: 1.5rem 0 1.5rem 0;
};
--d2l-heading-4: {
font-size: 0.8rem;
font-weight: 700;
line-height: 1.2rem;
margin: 1.5rem 0 1.5rem 0;
};
--d2l-label-text: {
font-size: 0.7rem;
line-height: 1rem;
font-weight: 700;
letter-spacing: 0.2px;
};
}
</style>
</custom-style>`;
document.head.appendChild($_documentContainer.content);