From 5f71c899ab2a221e7f95ce34e4bbcf97f580183d Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 12 Apr 2015 19:23:06 +0100 Subject: [PATCH] proper targeting of css rules --- src/static/css/iframe_editor.css | 18 ++++++++---------- src/static/css/pad.css | 6 ++++++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/static/css/iframe_editor.css b/src/static/css/iframe_editor.css index 49349c150..ecc6b48b0 100644 --- a/src/static/css/iframe_editor.css +++ b/src/static/css/iframe_editor.css @@ -1,8 +1,8 @@ /* These CSS rules are included in both the outer and inner ACE iframe. Also see inner.css, included only in the inner one. */ -html { cursor: text; } /* in Safari, produces text cursor for whole doc (inc. below body) */ -span { cursor: auto; } +#innerdocbody html { cursor: text; } /* in Safari, produces text cursor for whole doc (inc. below body) */ +#innerdocbody span { cursor: auto; } ::selection { background: #acf; @@ -11,7 +11,7 @@ span { cursor: auto; } background: #acf; } -a { +#innerdocbody a { cursor: pointer !important; white-space:pre-wrap; } @@ -80,21 +80,19 @@ ul.list-indent6, ul.list-indent7, ul.list-indent8, ul.list-indent9, ul.list-inde ul.list-indent11, ul.list-indent12, ul.list-indent13, ul.list-indent14, ul.list-indent15, ul.list-indent16 { list-style-type: none; } -body { - margin: 0; - white-space: nowrap; - word-wrap: normal; -} - #outerdocbody { background-color: #fff; } -body.grayedout { background-color: #eee !important } + +#innerdocbody.grayedout { background-color: #eee !important } #innerdocbody { font-size: 12px; /* overridden by body.style */ font-family:Arial, sans-serif; /* overridden by body.style */ line-height: 16px; /* overridden by body.style */ + margin: 0; + white-space: nowrap; + word-wrap: normal; } body.doesWrap { diff --git a/src/static/css/pad.css b/src/static/css/pad.css index b56e41f1d..9837cf6ff 100644 --- a/src/static/css/pad.css +++ b/src/static/css/pad.css @@ -547,6 +547,12 @@ table#otheruserstable { border-top-left-radius: 5px; border-top-right-radius: 5px; display: none; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } #chattext { background-color: white;