aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2017-12-20 21:45:06 +0000
committerSam Potts <sam@potts.es>2017-12-20 21:45:06 +0000
commit7d4bf91a35a8faa1b2e409e5a059ba152a30df7e (patch)
tree188083fe40f8bab421268a6ee743205844ba03c0 /src
parentac3d1d124259963773c0350c5ae12a18cadfa492 (diff)
downloadplyr-7d4bf91a35a8faa1b2e409e5a059ba152a30df7e.tar.lz
plyr-7d4bf91a35a8faa1b2e409e5a059ba152a30df7e.tar.xz
plyr-7d4bf91a35a8faa1b2e409e5a059ba152a30df7e.zip
Small fixes
Diffstat (limited to 'src')
-rw-r--r--src/js/controls.js2
-rw-r--r--src/sass/base.scss4
-rw-r--r--src/sass/utils/hidden.scss6
3 files changed, 5 insertions, 7 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 8138367e..22ca30ad 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -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;
}
diff --git a/src/sass/base.scss b/src/sass/base.scss
index 1b454151..307da36e 100644
--- a/src/sass/base.scss
+++ b/src/sass/base.scss
@@ -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,
diff --git a/src/sass/utils/hidden.scss b/src/sass/utils/hidden.scss
index 4deecf52..f3b46147 100644
--- a/src/sass/utils/hidden.scss
+++ b/src/sass/utils/hidden.scss
@@ -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;