Skip to content

Commit

Permalink
Use CSS3 Transition for :hover bg colour on CodeMirror editor
Browse files Browse the repository at this point in the history
  • Loading branch information
adammw committed Dec 26, 2011
1 parent ed47997 commit ea3c525
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions static/css/codemirror.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
font-size: 14px;
font-weight: bold;
visibility: visible;

/* transition between transparent and semi-transparent black on hover */
transition: background-color 500ms;
-webkit-transition: background-color 500ms;
-o-transition: background-color 500ms;
-moz-transition: background-color 500ms;
-ms-transition: background-color 500ms;
}

.CodeMirror:hover {
Expand Down

0 comments on commit ea3c525

Please sign in to comment.