From 830eac5338f70e4b69e441d738a743e63dee6a1f Mon Sep 17 00:00:00 2001 From: Steven Engler Date: Sat, 6 Jul 2019 16:06:03 -0400 Subject: [PATCH] Fixed code formatting bugs on the iPhone --- static/css/styles.css | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/static/css/styles.css b/static/css/styles.css index 98f3b16..6a6b6e5 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -31,6 +31,8 @@ a:hover { /* set the tab size for browsers that support it */ tab-size: 4; -moz-tab-size: 4; + /* needed for the iPhone so that the two columns (line numbers and code) don't have different font sizes */ + -webkit-text-size-adjust: 100%; } .highlight > * { @@ -45,7 +47,12 @@ a:hover { word-wrap: normal; } -.highlight .lntable td:last-child { +.highlight td.lntd pre { + /* needed to fix an iPhone scrolling bug */ + overflow-x: hidden; +} + +.highlight td.lntd:last-child { /* needed until this bug is fixed: https://github.com/alecthomas/chroma/issues/225 */ width: 100%; }