Merge pull request #1233 from thelounge/xPaw/user-select

Make everything unselectable by default
This commit is contained in:
Jérémie Astori 2017-06-20 23:38:17 -04:00 committed by GitHub
commit ead4a7f791

View File

@ -40,6 +40,12 @@ body {
font: 16px Lato, sans-serif; font: 16px Lato, sans-serif;
margin: 0; margin: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
/** /**
* Disable pull-to-refresh on mobile that conflicts with scrolling the message list. * Disable pull-to-refresh on mobile that conflicts with scrolling the message list.
* See http://stackoverflow.com/a/29313685/1935861 * See http://stackoverflow.com/a/29313685/1935861
@ -155,6 +161,17 @@ kbd {
color: rgba(0, 0, 0, .35) !important; color: rgba(0, 0, 0, .35) !important;
} }
#help,
#windows .header .title,
#windows .header .topic,
#chat .messages {
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
cursor: text;
}
/* Icons */ /* Icons */
#viewport .lt:before, #viewport .lt:before,
@ -551,14 +568,6 @@ kbd {
right: 3px; right: 3px;
} }
#sidebar,
#footer {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#footer { #footer {
background: rgba(0, 0, 0, .06); background: rgba(0, 0, 0, .06);
bottom: 0; bottom: 0;
@ -1394,10 +1403,6 @@ kbd {
padding-left: 9px; padding-left: 9px;
padding-right: 5px; padding-right: 5px;
border-radius: 2px; border-radius: 2px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-flex: 0 0 auto; -webkit-flex: 0 0 auto;
flex: 0 0 auto; flex: 0 0 auto;
border: 1px solid transparent; border: 1px solid transparent;