benjipott / video.js-chromecast

Use chromecast with videojs html5 player
Other
207 stars 86 forks source link

Chomecast button position a little off #24

Open onigetoc opened 7 years ago

onigetoc commented 7 years ago

Hi, i find that the Chomecast button position is a little off. margin-top: 1px;

add this to CSS.

.video-js .vjs-chromecast-button {
    margin-top: 1px; /*add margin top*/
    font-size: 0.7em;
}
Fenny commented 6 years ago

@onigetoc I had the same issue, but the correct fix is: .video-js .vjs-chromecast-button:before { font-size: 1.4em; }

sqlninja commented 6 years ago

While @Jad3z solution will work, I found that the spacing between the buttons was a little too large, so instead of changing the font on the before element I just changed it on the main element and that seemed to have reduced the spacing...

.video-js .vjs-chromecast-button{
    font-size: inherit;
}