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

Commit

Permalink
Tone down hover state on video player, and add focus state (#103)
Browse files Browse the repository at this point in the history
* Makes the overall feeling of the hover state less 'claret'
* Gives keyboard users a focus state on the focusable element, the play button itself
  • Loading branch information
benbarnett authored May 15, 2017
1 parent 5c1b22f commit d925b3e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scss/_placeholder.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.o-video__placeholder {
background: oColorsGetPaletteColor('claret');
background: oColorsGetPaletteColor('slate');
color: oColorsGetPaletteColor('white');
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
Expand Down Expand Up @@ -55,6 +55,11 @@
left: 0;
margin: auto;
background-color: oColorsGetPaletteColor('black');

:hover > &,
:focus > & {
background-color: oColorsGetPaletteColor('claret');
}
}

}

0 comments on commit d925b3e

Please sign in to comment.