Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ body {
overflow: clip;
/* Stop iOS from auto-inflating text ("text autosizing"): the screenplay
* paragraphs pin line-height to a fixed 16px, so inflating only the
* font-size crams the lines on top of each other in the editor. */
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
* font-size crams the lines on top of each other in the editor. `none`
* (not 100%) is required — iOS WebKit still boosted the font at 100% —
* and it's safe because user scaling is disabled in the viewport meta. */
-webkit-text-size-adjust: none;
text-size-adjust: none;
}

.app-layout {
Expand Down
8 changes: 5 additions & 3 deletions styles/scriptio.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@
/* iOS text autosizing inflates the font past the fixed 16px line box,
clipping page numbers and the first line of each page and making the
text look oversized. The html/body reset doesn't reliably reach this
zoomed subtree, so pin autosizing off on the editor itself. */
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
zoomed subtree, so pin autosizing off on the editor itself. `none` is
required rather than 100% — iOS WebKit kept boosting the font inside
the zoomed subtree at 100%. Safe here since user scaling is disabled. */
-webkit-text-size-adjust: none;
text-size-adjust: none;

/* Default screenplay paragraph attributes - direct children only
Critical: block + width:100% ensures consistent sizing between empty
Expand Down
Loading