Skip to content

Commit

Permalink
Close GH-524: Blocking user text selection by default on player compo…
Browse files Browse the repository at this point in the history
…nents. fixes #46.
  • Loading branch information
heff committed May 31, 2013
1 parent 8799984 commit 847e392
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/css/video-js.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ REQUIRED STYLES (be careful overriding)
/* Allow poster to be vertially aligned. */
vertical-align: middle;
/* display: table-cell; */ /*This works in Safari but not Firefox.*/

/* Turn off user selection (text highlighting) by default.
The majority of player components will not be text blocks.
Text areas will need to turn user selection back on. */
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
-o-user-select: none;
user-select: none;
}

/* Playback technology elements expand to the width/height of the containing div.
Expand Down

0 comments on commit 847e392

Please sign in to comment.