Small fixes

This commit is contained in:
Sam Potts
2017-12-20 21:45:06 +00:00
parent ac3d1d1242
commit 7d4bf91a35
11 changed files with 13 additions and 13 deletions

2
src/js/controls.js vendored
View File

@ -400,7 +400,7 @@ const controls = {
if (utils.is.event(event)) {
percent = 100 / clientRect.width * (event.pageX - clientRect.left);
} else if (utils.hasClass(this.elements.display.seekTooltip, visible)) {
percent = this.elements.display.seekTooltip.style.left.replace('%', '');
percent = parseFloat(this.elements.display.seekTooltip.style.left, 10);
} else {
return;
}

View File

@ -33,7 +33,7 @@
// border-box everything
// http://paulirish.com/2012/box-sizing-border-box-ftw/
@if $plyr-border-box == true {
@if $plyr-border-box {
.plyr--full-ui {
box-sizing: border-box;
@ -46,7 +46,7 @@
}
// Fix 300ms delay
@if $plyr-touch-action == true {
@if $plyr-touch-action {
.plyr--full-ui {
a,
button,

View File

@ -17,15 +17,13 @@
overflow: hidden;
// !important is not always needed
@if $plyr-sr-only-important == true {
@if $plyr-sr-only-important {
border: 0 !important;
height: 1px !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
}
@if $plyr-sr-only-important == false {
} @else {
border: 0;
height: 1px;
padding: 0;