Skip to content

Commit

Permalink
Merge pull request thelounge#1233 from thelounge/xPaw/user-select
Browse files Browse the repository at this point in the history
Make everything unselectable by default
  • Loading branch information
astorije authored Jun 21, 2017
2 parents 9e7ece9 + 97f18e9 commit 1427f9a
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions client/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ body {
font: 16px Lato, sans-serif;
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.
* See http://stackoverflow.com/a/29313685/1935861
Expand Down Expand Up @@ -155,6 +161,17 @@ kbd {
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 */

#viewport .lt:before,
Expand Down Expand Up @@ -551,14 +568,6 @@ kbd {
right: 3px;
}

#sidebar,
#footer {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

#footer {
background: rgba(0, 0, 0, .06);
bottom: 0;
Expand Down Expand Up @@ -1394,10 +1403,6 @@ kbd {
padding-left: 9px;
padding-right: 5px;
border-radius: 2px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-flex: 0 0 auto;
flex: 0 0 auto;
border: 1px solid transparent;
Expand Down

0 comments on commit 1427f9a

Please sign in to comment.