1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 17:02:41 +01:00
phorge-phorge/webroot/rsrc/css/application/differential
epriestley 5f0d8e09d8 Use "user-select: none" to provide a visual cue about copy/paste JS magic
Summary:
  - For line numbers, use "user-select: none" to make them unselectable. This provides a stronger visual cue that copy/paste is enchanted.
  - In Paste, make it look sensible again after the blame-on-blame refactor in Diffusion. See also TODO to share this code formally.
  - In Diffusion, use the "phabricator-oncopy" behavior.

NOTE: I left blame/commit columns selectable in Diffusion, since you might reasonably want to copy/paste them?

NOTE: In Differential, the left side of the diff still highlights, even though it will be copied only if you select part of a line on the left and nothing else. But this seemed like a reasonable behavior, so I left it.

Test Plan:
  - Looked at Paste. Saw a nice line number column. Selected text, got the expected selection. Copied text, got the expected copy.
  - Looked at Diffusion. Saw a nice line number column, still. Selected text, got expected selection. Copied text, got expected copy.
  - Looked at Differential. Highlighted stuff, got expected results. Copied stuff, got expected results.

Reviewers: btrahan, vrana, jungejason

Reviewed By: vrana

CC: aran

Maniphest Tasks: T1123

Differential Revision: https://secure.phabricator.com/D2242
2012-04-16 15:55:16 -07:00
..
add-comment.css Tweak Maniphest CSS, fix remarkup in description change views 2011-05-22 13:26:55 -07:00
changeset-view.css Use "user-select: none" to provide a visual cue about copy/paste JS magic 2012-04-16 15:55:16 -07:00
core.css Make Differential comments be styled similarly to Maniphest comments 2012-01-29 16:18:10 -08:00
local-commits-view.css Display local commit information in Differential 2011-08-31 13:49:50 -07:00
revision-comment-list.css Collapse comments in long threads. 2011-02-05 11:06:56 -08:00
revision-comment.css Improve inline comment previews 2012-03-28 10:11:41 -07:00
revision-detail.css Unify Differential/Maniphest/Diffusion styles and allow commits to be flagged explicitly 2012-03-30 14:12:10 -07:00
revision-history.css DifferentialRevisionView 2011-01-29 15:37:41 -08:00
table-of-contents.css Show coverage percentages in table of contents 2012-03-12 17:06:55 -07:00