From 21d76306a46e9bf14bd17d0ba5dfa3aa684e4991 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 22 Jun 2016 22:05:16 +0300 Subject: [PATCH] disable text selection globally except inputs and message body --- mail.css | 46 ++++++++++++++++------------------------------ 1 file changed, 16 insertions(+), 30 deletions(-) diff --git a/mail.css b/mail.css index 5056ea5..71f6902 100644 --- a/mail.css +++ b/mail.css @@ -9,6 +9,12 @@ html, body -moz-text-size-adjust: none; text-size-adjust: none; overflow: hidden; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .clear @@ -50,6 +56,16 @@ select, input, textarea, button margin: 0; } +input[type=text], input:not([type]), textarea, .message-view .text +{ + -webkit-touch-callout: default; + -webkit-user-select: text; + -khtml-user-select: text; + -moz-user-select: text; + -ms-user-select: text; + user-select: text; +} + table { border-collapse: collapse; @@ -82,12 +98,6 @@ button, a.button text-align: left; /*white-space: nowrap; height: 32px;*/ - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } button img, a.button img @@ -277,12 +287,6 @@ div width: 20%; /* right border */ border-right: 1px solid #aca9a7; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } .top-border-gradient @@ -587,12 +591,6 @@ div top: 0; bottom: 0; cursor: default; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } .tab-panel .tab-bar @@ -711,12 +709,6 @@ div { /* right border */ border-right: 1px solid #aca9a7; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } .message-list .actions @@ -1626,12 +1618,6 @@ div outline: 0; background: white; border-left: 1px solid #cac6c5; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; overflow: auto; padding-top: 30px; }