Skip to content

Commit 08d8c72

Browse files
committed
Update DefaultLineLength value
1 parent 52d0308 commit 08d8c72

9 files changed

Lines changed: 25 additions & 6 deletions

File tree

css/vars/pagination.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"RS__colWidth": "100vw",
33
"RS__colCount": 1,
44
"RS__colGap": 0,
5-
"RS__defaultLineLength": "40rem",
5+
"RS__defaultLineLength": "100%",
66
"RS__pageGutter": 0,
77
"RS__viewportWidth": "100%"
88
}

docs/CSS03-injection_and_pagination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ The inline (horizontal by default, vertical in vertical-writing) page margins.
123123
--RS__defaultLineLength
124124
```
125125

126-
The default line-length when none is set by the user. It should be set in `rem` in order to take `:root`’s `font-size` as a reference, whichever the `body`’s `font-size` might be.
126+
The default line-length when none is set by the user. It represents the `max-width` of the `body` element and is `100%` by default so that it does not conflict with the the zoom factor.
127127

128128
* * *
129129

docs/CSS19-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ The inline (horizontal by default, vertical in vertical-writing) page margins.
273273
--RS__defaultLineLength
274274
```
275275

276-
The default line-length when none is set by the user. It must be set in `rem` in order to take `:root`’s `font-size` as a reference, whichever the `body`’s `font-size` might be.
276+
The default line-length when none is set by the user. It represents the `max-width` of the `body` element and is `100%` by default so that it does not conflict with the the zoom factor.
277277

278278
### Scroll
279279

docs/CSS28-migration_guide.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,8 @@ As of version `2.0.0` (stable), the `--RS__pageGutter` property no longer applie
274274

275275
**This is a breaking change.**
276276

277-
If you need to apply padding to the scroll view, you can use the `--RS__scrollPadding` properties instead. This can be useful to get around safe area insets, or to add whitespace so that contents are not hidden behind UI elements.
277+
If you need to apply padding to the scroll view, you can use the `--RS__scrollPadding` properties instead. This can be useful to get around safe area insets, or to add whitespace so that contents are not hidden behind UI elements.
278+
279+
## Default line-length value has changed
280+
281+
As of version `2.0.0` (stable), the default line-length when none is set by the user is `100%` instead of `40rem`. This is to prevent conflicts with the zoom factor.

docs/ReadiumCSS_docs/OEBPS/Text/Section-003.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160

161161
<pre><code>--RS__defaultLineLength</code></pre>
162162

163-
<p>The default line-length when none is set by the user. It must be set in <code>rem</code> in order to take <code>:root</code>’s <code>font-size</code> as a reference, whichever the <code>body</code>’s <code>font-size</code> might be.</p>
163+
<p>The default line-length when none is set by the user. It represents the <code>max-width</code> of the <code>body</code> element and is <code>100%</code> by default so that it does not conflict with the the zoom factor.</p>
164164

165165
<hr/>
166166

docs/ReadiumCSS_docs/OEBPS/Text/Section-019.xhtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247

248248
<pre><code>--RS__defaultLineLength</code></pre>
249249

250-
<p>The default line-length when none is set by the user. It must be set in <code>rem</code> in order to take <code>:root</code>’s <code>font-size</code> as a reference, whichever the <code>body</code>’s <code>font-size</code> might be.</p>
250+
<p>The default line-length when none is set by the user. It represents the <code>max-width</code> of the <code>body</code> element and is <code>100%</code> by default so that it does not conflict with the the zoom factor.</p>
251251
</section>
252252

253253
<section id="scroll" class="level3">

docs/ReadiumCSS_docs/OEBPS/Text/Section-028.xhtml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ const backgroundColor = defaultColors.RS__backgroundColor;</code></pre>
330330

331331
<p>If you need to apply padding to the scroll view, you can use the <code>--RS__scrollPadding</code> properties instead. This can be useful to get around safe area insets, or to add whitespace so that contents are not hidden behind UI elements.</p>
332332
</section>
333+
334+
<section id="default-line-length-value-changed" class="level2">
335+
<h2 id="sigil_toc_id_225">Default line-length value has changed</h2>
336+
337+
<p>As of version <code>2.0.0</code> (stable), the default line-length when none is set by the user is <code>100%</code> instead of <code>40rem</code>. This is to prevent conflicts with the zoom factor.</p>
338+
</section>
333339
</section>
334340
</body>
335341
</html>

docs/ReadiumCSS_docs/OEBPS/Text/nav.xhtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,9 @@
779779
<li>
780780
<a href="../Text/Section-028.xhtml#sigil_toc_id_224">PageGutter no longer applies in scroll view</a>
781781
</li>
782+
<li>
783+
<a href="../Text/Section-028.xhtml#sigil_toc_id_225">Default line-length value has changed</a>
784+
</li>
782785
</ol>
783786
</li>
784787
</ol>

docs/ReadiumCSS_docs/OEBPS/toc.ncx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,6 +1425,12 @@
14251425
</navLabel>
14261426
<content src="Text/Section-028.xhtml#sigil_toc_id_224" />
14271427
</navPoint>
1428+
<navPoint id="navPoint237">
1429+
<navLabel>
1430+
<text>Default line-length value has changed</text>
1431+
</navLabel>
1432+
<content src="Text/Section-028.xhtml#sigil_toc_id_225" />
1433+
</navPoint>
14281434
</navPoint>
14291435
</navMap>
14301436
</ncx>

0 commit comments

Comments
 (0)