@brightspace-ui/core 2.13.2 → 2.13.3

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.
@@ -110,6 +110,38 @@
110
110
  </template>
111
111
  </d2l-demo-snippet>
112
112
 
113
+ <h2>HTML Block (large font)</h2>
114
+
115
+ <d2l-demo-snippet>
116
+ <template>
117
+ <d2l-html-block>
118
+ <div style="font-size: 42px;">
119
+ Just a text node...
120
+ <h1>heading 1</h1>
121
+ <h2>heading 2</h2>
122
+ <h3>heading 3</h3>
123
+ <h4>heading 4</h4>
124
+ <h5>heading 5</h5>
125
+ <h6>heading 6</h6>
126
+ <div><strong>strong</strong></div>
127
+ <div><b>bold</b></div>
128
+ <div>text</div>
129
+ <pre>preformatted</pre>
130
+ <p>paragraph</p>
131
+ <ul>
132
+ <li>unordered item 1</li>
133
+ <li>unordered item 2</li>
134
+ </ul>
135
+ <ol>
136
+ <li>ordered item 1</li>
137
+ <li>ordered item 2</li>
138
+ </ol>
139
+ <div><a href="https://d2l.com">anchor</a></div>
140
+ </div>
141
+ </d2l-html-block>
142
+ </template>
143
+ </d2l-demo-snippet>
144
+
113
145
  <h2>HTML Block (math)</h2>
114
146
 
115
147
  <d2l-demo-snippet>
@@ -9,7 +9,10 @@ export const htmlBlockContentStyles = css`
9
9
  .d2l-html-block-compact {
10
10
  font-size: 0.8rem;
11
11
  font-weight: 400;
12
- line-height: 1.2rem;
12
+ line-height: 1.5; /* 1.2rem / 0.8rem */
13
+ }
14
+ .d2l-html-block-rendered {
15
+ line-height: 1.47; /* 1.4rem / 0.95rem */
13
16
  }
14
17
  .d2l-html-block-rendered > :first-child {
15
18
  margin-top: 0;
@@ -22,33 +25,33 @@ export const htmlBlockContentStyles = css`
22
25
  }
23
26
  h1 {
24
27
  font-size: 2em;
25
- line-height: 37px;
26
- margin: 21.43px 0;
28
+ line-height: 1;
29
+ margin: 21px 0;
27
30
  }
28
31
  h2 {
29
32
  font-size: 1.5em;
30
- line-height: 27px;
31
- margin: 19.92px 0;
33
+ line-height: 1;
34
+ margin: 20px 0;
32
35
  }
33
36
  h3 {
34
37
  font-size: 1.2em;
35
- line-height: 23px;
36
- margin: 18.72px 0;
38
+ line-height: 1;
39
+ margin: 19px 0;
37
40
  }
38
41
  h4 {
39
42
  font-size: 1em;
40
- line-height: 20px;
41
- margin: 21.28px 0;
43
+ line-height: 1.05;
44
+ margin: 21px 0;
42
45
  }
43
46
  h5 {
44
47
  font-size: 0.83em;
45
- line-height: 16px;
46
- margin: 22.13px 0;
48
+ line-height: 1;
49
+ margin: 22px 0;
47
50
  }
48
51
  h6 {
49
52
  font-size: 0.67em;
50
- line-height: 13px;
51
- margin: 24.97px 0;
53
+ line-height: 1;
54
+ margin: 25px 0;
52
55
  }
53
56
  pre {
54
57
  font-family: Monospace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.13.2",
3
+ "version": "2.13.3",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",