You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-5Lines changed: 19 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,8 +63,6 @@ builtin_css: true
63
63
builtin_js: true
64
64
# Enable Plugin's dynamic text sizing
65
65
textsizing: true
66
-
# Dynamic text sizing factor for resolution scaling
67
-
textsizing_factor: 1.25
68
66
# Synchronize Slide-navigation
69
67
sync: 'none'
70
68
# URL Route to use for Poll-sync
@@ -91,6 +89,22 @@ content: 'Content'
91
89
parser: 'Parser'
92
90
# Class to use for Styles management
93
91
styles: 'Styles'
92
+
# Breakpoints for responsive textsizing
93
+
breakpoints:
94
+
- width: 240
95
+
font_size: 8
96
+
- width: 320
97
+
font_size: 12
98
+
- width: 576
99
+
font_size: 16
100
+
- width: 768
101
+
font_size: 20
102
+
- width: 992
103
+
font_size: 24
104
+
- width: 1200
105
+
font_size: 28
106
+
- width: 1600
107
+
font_size: 32
94
108
# Options to pass to Reveal.js
95
109
options:
96
110
width: "100%"
@@ -187,16 +201,16 @@ You can of course also style the plugin using your theme's /css/custom.css-file,
187
201
188
202
#### Fitting text to a slide
189
203
190
-
The plugin makes available a method of dynamically scaling text within a slide, which is similar yet distinct from what happens in PowerPoint 2016. Rather than do this scaling entirely automatically, which tends to work poorly across devices and resolutions, you set a _scale_ and a_base_, eg.:
204
+
The plugin makes available a method of dynamically scaling text within a slide, which is similar yet distinct from what happens in PowerPoint 2016. Rather than do this scaling entirely automatically, which tends to work poorly across devices and resolutions, you set a _scale_ and an optional_base_, eg.:
191
205
192
206
[data-textsize-scale=1.125]
193
207
[data-textsize-base=16]
194
208
195
-
If Textsizing is enabled in the plugin's options and on the Page, the relation between block text -- any text not in a header-element -- and header-text (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`) is determined by the `textsize-scale`-property. That is, the size of the header-element's text relative to the base font-size set by `textsize-base`.
209
+
If Textsizing is enabled in the plugin's options and on the Page, the relation between block text -- any text not in a header-element -- and header-text (`h1`, `h2`, `h3`, `h4`, `h5`, `h6`) is determined by the `textsize-scale`-property. That is, the size of the header-element's text relative to the base font-size.
196
210
197
211
In the example above, the scale is set to the "Major Second" rhythm, and with a base of 16 -- the minimum font-size recommended for web -- this yields the following sizes for headers: 28.83 (`h1`), 25.63 (`h2`), 22.78 (`h3`), 20.25 (`h4`), 18 (`h5`), and 16 (`h6`). The base, and hence text, is adjusted upwards as the size of the screen increases to enable dynamic, responsive text-sizing.
198
212
199
-
**The normal base size is 16, because the recommended minimum font size for text on the web is 16px. The higher the number in the scale is, header-elements will be correspondly larger - exponentially so.**
213
+
**Note: The base should be the minimum size of text. The higher the number in the scale is, header-elements will be correspondly larger - exponentially so.**
0 commit comments