Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3688 from jeffslofish/Issue3131-copyable-jslint-e…
Browse files Browse the repository at this point in the history
…rrors

Issue #3131 - Making JSLint errors copyable
  • Loading branch information
redmunds committed May 10, 2013
2 parents c27664b + 97d737c commit d57cd75
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div id="jslint-results" class="bottom-panel vert-resizable top-resizer no-focus">
<div id="jslint-results" class="bottom-panel vert-resizable top-resizer">
<div class="toolbar simple-toolbar-layout">
<div class="title">{{JSLINT_ERRORS}}</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions src/styles/brackets.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ html, body {
overflow: hidden;

/* Turn off selection for UI elements */
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
.user-select(none);

/* And make sure we get a pointer cursor even over text */
cursor: default;
Expand Down Expand Up @@ -839,3 +834,8 @@ li.smart_autocomplete_highlight {
background-size: 100%;
}
}

/* Turn on text selection for JSLint error messages */
#jslint-results {
.user-select(text);
}
11 changes: 11 additions & 0 deletions src/styles/brackets_mixins.less
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,14 @@
-o-transform-origin: @horizontal @vertical;
transform-origin: @horizontal @vertical;
}

/* Change the settings for user-select and its counterparts, defaulting to none. */
.user-select(@type: none) {
-webkit-user-select: @type;
-khtml-user-select: @type;
-moz-user-select: @type;
-ms-user-select: @type;
-o-user-select: @type;
user-select: @type;
}

14 changes: 2 additions & 12 deletions src/styles/brackets_patterns_override.less
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,7 @@

// Enable text selection
cursor: auto;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-o-user-select: text;
user-select: text;
.user-select(text);
}
}
}
Expand Down Expand Up @@ -564,12 +559,7 @@

// Enable text selection
cursor: auto;
-webkit-user-select: text;
-khtml-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-o-user-select: text;
user-select: text;
.user-select(text);
}
}

Expand Down

0 comments on commit d57cd75

Please sign in to comment.