diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sass/plyr.scss | 340 | ||||
-rw-r--r-- | src/sprite/icon-captions-off.svg | 3 | ||||
-rw-r--r-- | src/sprite/icon-captions-on.svg | 3 | ||||
-rw-r--r-- | src/sprite/icon-enter-fullscreen.svg | 11 | ||||
-rw-r--r-- | src/sprite/icon-exit-fullscreen.svg | 11 | ||||
-rw-r--r-- | src/sprite/icon-muted.svg | 3 | ||||
-rwxr-xr-x | src/sprite/icon-restart.svg | 5 | ||||
-rwxr-xr-x | src/sprite/icon-volume.svg | 1 |
8 files changed, 200 insertions, 177 deletions
diff --git a/src/sass/plyr.scss b/src/sass/plyr.scss index 8bf481db..8de9af6e 100644 --- a/src/sass/plyr.scss +++ b/src/sass/plyr.scss @@ -7,76 +7,76 @@ // ------------------------------- // Colors -$blue: #3498DB !default; -$gray-dark: #343F4A !default; -$gray: #565D64 !default; -$gray-light: #6B7D86 !default; -$gray-lighter: #CBD0D3 !default; -$off-white: #D6DADD !default; +$plyr-blue: #3498DB !default; +$plyr-gray-dark: #343F4A !default; +$plyr-gray: #565D64 !default; +$plyr-gray-light: #6B7D86 !default; +$plyr-gray-lighter: #CBD0D3 !default; +$plyr-off-white: #D6DADD !default; // Font sizes -$font-size-small: 14px !default; -$font-size-base: 16px !default; +$plyr-font-size-small: 14px !default; +$plyr-font-size-base: 16px !default; // Captions -$font-size-captions-base: ceil($font-size-base * 1.25) !default; -$font-size-captions-medium: ceil($font-size-base * 1.5) !default; -$font-size-captions-large: ($font-size-base * 2) !default; +$plyr-font-size-captions-base: ceil($plyr-font-size-base * 1.25) !default; +$plyr-font-size-captions-medium: ceil($plyr-font-size-base * 1.5) !default; +$plyr-font-size-captions-large: ($plyr-font-size-base * 2) !default; // Controls -$control-spacing: 10px !default; -$controls-bg: #fff !default; -$control-bg-hover: $blue !default; -$control-color: null !default; -$control-color-hover: null !default; +$plyr-control-spacing: 10px !default; +$plyr-controls-bg: #fff !default; +$plyr-control-bg-hover: $plyr-blue !default; // Contrast -@if lightness($controls-bg) >= 65% { - $control-color: $gray-light; +@if lightness($plyr-controls-bg) >= 65% { + $plyr-control-color: $plyr-gray-light !default; } @else { - $control-color: $gray-lighter; + $plyr-control-color: $plyr-gray-lighter !default; } -@if lightness($control-bg-hover) >= 65% { - $control-color-hover: $gray; +@if lightness($plyr-control-bg-hover) >= 65% { + $plyr-control-color-hover: $plyr-gray !default; } @else { - $control-color-hover: #fff; + $plyr-control-color-hover: #fff !default; } // Tooltips -$tooltip-bg: $controls-bg !default; -$tooltip-border-color: transparentize(@gray-dark, .1) !default; -$tooltip-border-width: 1px; -$tooltip-shadow: 0 0 5px $tooltip-border-color, 0 0 0 $tooltip-border-width $tooltip-border-color; -$tooltip-color: $control-color !default; -$tooltip-padding: $control-spacing !default; -$tooltip-arrow-size: 6px !default; -$tooltip-radius: 3px !default; +$plyr-tooltip-bg: $plyr-controls-bg !default; +$plyr-tooltip-border-color: transparentize(darken($plyr-controls-bg, 75%), .9) !default; +$plyr-tooltip-arrow-border-color: transparentize(darken($plyr-controls-bg, 75%), .8) !default; + +$plyr-tooltip-border-width: 1px; +$plyr-tooltip-shadow: 0 0 5px $plyr-tooltip-border-color, 0 0 0 $plyr-tooltip-border-width $plyr-tooltip-border-color; +$plyr-tooltip-color: $plyr-control-color !default; +$plyr-tooltip-padding: $plyr-control-spacing !default; +$plyr-tooltip-arrow-size: 6px !default; +$plyr-tooltip-radius: 3px !default; // Progress -$progress-bg: transparentize($gray, .2) !default; -$progress-playing-bg: $blue !default; -$progress-buffered-bg: transparentize($gray, .25) !default; -$progress-loading-size: 40px !default; -$progress-loading-bg: rgba(0,0,0, .15) !default; +$plyr-progress-bg: transparentize($plyr-gray, .8) !default; +$plyr-progress-playing-bg: $plyr-blue !default; +$plyr-progress-buffered-bg: transparentize($plyr-gray, .75) !default; +$plyr-progress-loading-size: 40px !default; +$plyr-progress-loading-bg: transparentize(#000, .85) !default; // Volume -$volume-track-height: 6px !default; -$volume-track-bg: darken($controls-bg, 10%) !default; -$volume-thumb-height: ($volume-track-height * 2) !default; -$volume-thumb-width: ($volume-track-height * 2) !default; -$volume-thumb-bg: $control-color !default; -$volume-thumb-bg-focus: $control-bg-hover !default; +$plyr-volume-track-height: 6px !default; +$plyr-volume-track-bg: darken($plyr-controls-bg, 10%) !default; +$plyr-volume-thumb-height: ($plyr-volume-track-height * 2) !default; +$plyr-volume-thumb-width: ($plyr-volume-track-height * 2) !default; +$plyr-volume-thumb-bg: $plyr-control-color !default; +$plyr-volume-thumb-bg-focus: $plyr-control-bg-hover !default; // Breakpoints -$bp-control-split: 560px !default; // When controls split into left/right -$bp-captions-large: 768px !default; // When captions jump to the larger font size +$plyr-bp-control-split: 560px !default; // When controls split into left/right +$plyr-bp-captions-large: 768px !default; // When captions jump to the larger font size // Animation // --------------------------------------- -@keyframes progress { - to { background-position: $progress-loading-size 0; } +@keyframes plyr-progress { + to { background-position: $plyr-progress-loading-size 0; } } // Font smoothing @@ -92,41 +92,30 @@ $bp-captions-large: 768px !default; // When captions jump to the larger } } -// Contain floats: nicolasgallagher.com/micro-clearfix-hack/ -@mixin clearfix() -{ - zoom: 1; - &:before, - &:after { content: ''; display: table; } - &:after { clear: both; } -} -// Tab focus styles -@mixin tab-focus() { - outline: thin dotted transparentize($gray-dark, .8); - outline-offset: 3px; -} - // <input type="range"> styling @mixin volume-thumb() { - height: $volume-thumb-height; - width: $volume-thumb-width; - background: $volume-thumb-bg; + height: $plyr-volume-thumb-height; + width: $plyr-volume-thumb-width; + background: $plyr-volume-thumb-bg; border: 0; border-radius: 100%; transition: background .3s ease; cursor: ew-resize; } @mixin volume-track() { - height: $volume-track-height; - background: $volume-track-bg; + height: $plyr-volume-track-height; + background: $plyr-volume-track-bg; border: 0; - border-radius: ($volume-track-height / 2); + border-radius: ($plyr-volume-track-height / 2); } @mixin seek-thumb() { background: transparent; border: 0; - width: ($control-spacing * 4); - height: $control-spacing; + width: 1px; + height: $plyr-control-spacing; +} +@mixin seek-thumb-touch() { + width: ($plyr-control-spacing * 4); transform: translateX(-50%); } @mixin seek-track() { @@ -141,6 +130,7 @@ $bp-captions-large: 768px !default; // When captions jump to the larger position: relative; max-width: 100%; min-width: 290px; + font-family: Avenir, "Avenir Next", "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif; // border-box everything // http://paulirish.com/2012/box-sizing-border-box-ftw/ @@ -178,6 +168,11 @@ $bp-captions-large: 768px !default; // When captions jump to the larger vertical-align: middle; } + // Hide default captions + video::-webkit-media-text-track-container { + display: none; + } + // For embeds &__video-embed { padding-bottom: 56.25%; /* 16:9 */ @@ -192,6 +187,7 @@ $bp-captions-large: 768px !default; // When captions jump to the larger width: 100%; height: 100%; border: 0; + user-select: none; } // Vimeo hack @@ -200,6 +196,11 @@ $bp-captions-large: 768px !default; // When captions jump to the larger padding-bottom: 200%; transform: translateY(-35.95%); } + + // To allow mouse events to be captured if full support + &.plyr iframe { + pointer-events: none; + } } // Captions @@ -209,49 +210,55 @@ $bp-captions-large: 768px !default; // When captions jump to the larger bottom: 0; left: 0; width: 100%; - padding: ($control-spacing * 2) ($control-spacing * 2) ($control-spacing * 3); + padding: ($plyr-control-spacing * 2) ($plyr-control-spacing * 2) ($plyr-control-spacing * 3); color: #fff; - font-size: $font-size-captions-base; + font-size: $plyr-font-size-captions-base; text-align: center; @include font-smoothing(); span { border-radius: 2px; padding: 3px 10px; - background: rgba(0,0,0, .9); + background: transparentize(#000, .1); } span:empty { display: none; } - @media (min-width: $bp-captions-large) { - font-size: $font-size-captions-medium; + @media (min-width: $plyr-bp-captions-large) { + font-size: $plyr-font-size-captions-medium; } } &--captions-active &__captions { display: block; } &--fullscreen-active &__captions { - font-size: $font-size-captions-large; + font-size: $plyr-font-size-captions-large; } // Playback controls &__controls { - @include clearfix(); @include font-smoothing(); position: relative; - padding: $control-spacing; - background: $controls-bg; + padding: $plyr-control-spacing; + background: $plyr-controls-bg; line-height: 1; text-align: center; - box-shadow: 0 1px 1px transparentize($gray-dark, .2); + box-shadow: 0 1px 1px transparentize($plyr-gray-dark, .8); + + // Clear floats + &::after { + content: ''; + display: table; + clear: both; + } // Layout &--right { display: block; - margin: $control-spacing auto 0; + margin: $plyr-control-spacing auto 0; } - @media (min-width: $bp-control-split) { + @media (min-width: $plyr-bp-control-split) { &--left { float: left; } @@ -266,13 +273,13 @@ $bp-captions-large: 768px !default; // When captions jump to the larger display: inline-block; vertical-align: middle; margin: 0 2px; - padding: ($control-spacing / 2) $control-spacing; + padding: ($plyr-control-spacing / 2) $plyr-control-spacing; overflow: hidden; border: 0; background: transparent; border-radius: 3px; cursor: pointer; - color: $control-color; + color: $plyr-control-color; transition: background .3s ease, color .3s ease, opacity .3s ease; svg { @@ -286,8 +293,8 @@ $bp-captions-large: 768px !default; // When captions jump to the larger // Hover and tab focus &.tab-focus:hover, &:hover { - background: $control-bg-hover; - color: $control-color-hover; + background: $plyr-control-bg-hover; + color: $plyr-control-color-hover; } // Default focus &:focus { @@ -306,48 +313,50 @@ $bp-captions-large: 768px !default; // When captions jump to the larger .plyr__time { display: inline-block; vertical-align: middle; - margin-left: $control-spacing; - color: $control-color; + margin-left: $plyr-control-spacing; + color: $plyr-control-color; font-weight: 600; - font-size: $font-size-small; + font-size: $plyr-font-size-small; } // Media duration hidden on small screens .plyr__time + .plyr__time { display: none; - @media (min-width: $bp-control-split) { + @media (min-width: $plyr-bp-control-split) { display: inline-block; } // Add a slash in before &::before { content: '\2044'; - margin-right: $control-spacing; + margin-right: $plyr-control-spacing; } } } // Tooltips &__tooltip { + visibility: hidden; position: absolute; z-index: 2; bottom: 100%; - margin-bottom: $tooltip-padding; - padding: $tooltip-padding ($tooltip-padding * 1.5); + margin-bottom: $plyr-tooltip-padding; + padding: $plyr-tooltip-padding ($plyr-tooltip-padding * 1.5); + pointer-events: none; opacity: 0; - background: $tooltip-bg; - box-shadow: $tooltip-shadow; - border-radius: $tooltip-radius; - color: $tooltip-color; - font-size: $font-size-small; + background: $plyr-tooltip-bg; + box-shadow: $plyr-tooltip-shadow; + border-radius: $plyr-tooltip-radius; + color: $plyr-tooltip-color; + font-size: $plyr-font-size-small; line-height: 1.5; font-weight: 600; - transform: translate(-50%, ($tooltip-padding * 3)) scale(.8); + transform: translate(-50%, 10px) scale(.8); transform-origin: 50% 100%; - transition: transform .2s .1s ease, opacity .2s .1s ease; + transition: transform .2s .1s ease, opacity .2s .1s ease, visibility .3s ease; // Arrows &::after, @@ -362,24 +371,26 @@ $bp-captions-large: 768px !default; // When captions jump to the larger } // The border triangle &::after { - $border-arrow-size: ($tooltip-arrow-size + ($tooltip-border-width * 1)); - bottom: -($border-arrow-size + $tooltip-border-width); - border-right: $border-arrow-size solid transparent; - border-top: $border-arrow-size solid $tooltip-border-color; - border-left: $border-arrow-size solid transparent; + $plyr-border-arrow-size: ($plyr-tooltip-arrow-size + ($plyr-tooltip-border-width * 1)); + bottom: -($plyr-border-arrow-size + $plyr-tooltip-border-width); + border-right: $plyr-border-arrow-size solid transparent; + border-top: $plyr-border-arrow-size solid $plyr-tooltip-arrow-border-color; + border-left: $plyr-border-arrow-size solid transparent; z-index: 1; } // The background triangle &::before { - bottom: -$tooltip-arrow-size; - border-right: $tooltip-arrow-size solid transparent; - border-top: $tooltip-arrow-size solid $tooltip-bg; - border-left: $tooltip-arrow-size solid transparent; + bottom: -$plyr-tooltip-arrow-size; + border-right: $plyr-tooltip-arrow-size solid transparent; + border-top: $plyr-tooltip-arrow-size solid $plyr-tooltip-bg; + border-left: $plyr-tooltip-arrow-size solid transparent; z-index: 2; } } button:hover .plyr__tooltip, - button.tab-focus:focus .plyr__tooltip { + button.tab-focus:focus .plyr__tooltip, + &__tooltip--visible { + visibility: visible; opacity: 1; transform: translate(-50%, 0) scale(1); } @@ -389,19 +400,20 @@ $bp-captions-large: 768px !default; // When captions jump to the larger // Common range styles input[type='range'].tab-focus:focus { - .tab-focus(); + outline: thin dotted transparentize($plyr-gray-dark, .8); + outline-offset: 3px; } // Playback progress // <progress> element - &-progress { + &__progress { position: absolute; bottom: 100%; left: 0; right: 0; width: 100%; - height: $control-spacing; - background: $progress-bg; + height: $plyr-control-spacing; + background: $plyr-progress-bg; &--buffer[value], &--played[value], @@ -410,7 +422,7 @@ $bp-captions-large: 768px !default; // When captions jump to the larger left: 0; top: 0; width: 100%; - height: $control-spacing; + height: $plyr-control-spacing; margin: 0; padding: 0; vertical-align: top; @@ -424,22 +436,25 @@ $bp-captions-large: 768px !default; // When captions jump to the larger &--played[value] { &::-webkit-progress-bar { background: transparent; + transition: width .2s ease; } // Inherit from currentColor; &::-webkit-progress-value { background: currentColor; + transition: width .2s ease; } &::-moz-progress-bar { background: currentColor; + transition: width .2s ease; } } &--played[value] { z-index: 2; - color: $progress-playing-bg; + color: $plyr-progress-playing-bg; } &--buffer[value] { - color: $progress-buffered-bg; + color: $plyr-progress-buffered-bg; } // Seek control @@ -488,21 +503,41 @@ $bp-captions-large: 768px !default; // When captions jump to the larger border: 0; } } + + // Seek tooltip to show time + .plyr__tooltip { + left: 0; + } + } + + // Touch seek wider handle + &--is-touch &--seek[type='range'] { + &::-webkit-slider-thumb { + @include seek-thumb-touch(); + } + // Mozilla + &::-moz-range-thumb { + @include seek-thumb-touch(); + } + // Microsoft + &::-ms-thumb { + @include seek-thumb-touch(); + } } // Loading state &--loading .plyr__progress--buffer { - animation: progress 1s linear infinite; - background-size: $progress-loading-size $progress-loading-size; + animation: plyr-progress 1s linear infinite; + background-size: $plyr-progress-loading-size $plyr-progress-loading-size; background-repeat: repeat-x; - background-color: $progress-buffered-bg; + background-color: $plyr-progress-buffered-bg; background-image: linear-gradient( -45deg, - $progress-loading-bg 25%, + $plyr-progress-loading-bg 25%, transparent 25%, transparent 50%, - $progress-loading-bg 50%, - $progress-loading-bg 75%, + $plyr-progress-loading-bg 50%, + $plyr-progress-loading-bg 75%, transparent 75%, transparent); color: transparent; @@ -526,7 +561,7 @@ $bp-captions-large: 768px !default; // When captions jump to the larger -webkit-appearance: none; -moz-appearance: none; width: 100px; - margin: 0 $control-spacing 0 0; + margin: 0 $plyr-control-spacing 0 0; padding: 0; cursor: pointer; background: transparent; @@ -538,7 +573,7 @@ $bp-captions-large: 768px !default; // When captions jump to the larger } &::-webkit-slider-thumb { -webkit-appearance: none; - margin-top: -(($volume-thumb-height - $volume-track-height) / 2); + margin-top: -(($plyr-volume-thumb-height - $plyr-volume-track-height) / 2); @include volume-thumb(); } @@ -552,10 +587,10 @@ $bp-captions-large: 768px !default; // When captions jump to the larger // Microsoft &::-ms-track { - height: $volume-track-height; + height: $plyr-volume-track-height; background: transparent; border-color: transparent; - border-width: (($volume-thumb-height - $volume-track-height) / 2) 0; + border-width: (($plyr-volume-thumb-height - $plyr-volume-track-height) / 2) 0; color: transparent; } &::-ms-fill-lower, @@ -570,13 +605,13 @@ $bp-captions-large: 768px !default; // When captions jump to the larger outline: 0; &::-webkit-slider-thumb { - background: $volume-thumb-bg-focus; + background: $plyr-volume-thumb-bg-focus; } &::-moz-range-thumb { - background: $volume-thumb-bg-focus; + background: $plyr-volume-thumb-bg-focus; } &::-ms-thumb { - background: $volume-thumb-bg-focus; + background: $plyr-volume-thumb-bg-focus; } } } @@ -597,12 +632,12 @@ $bp-captions-large: 768px !default; // When captions jump to the larger // Audio specific styles // Position the progress within the container &--audio .plyr__controls { - padding-top: ($control-spacing * 2); + padding-top: ($plyr-control-spacing * 2); } &--audio .plyr__progress { bottom: auto; top: 0; - background: $off-white; + background: $plyr-off-white; } // Full screen mode @@ -631,32 +666,33 @@ $bp-captions-large: 768px !default; // When captions jump to the larger left: 0; right: 0; } + } - // Hide controls when playing in full screen - &--fullscreen--hide-controls&--fullscreen-active&--playing { - .plyr__controls { - transform: translateY(100%) translateY($control-spacing / 2); - transition: transform .3s .2s ease; - } - &.plyr--hover .plyr__controls { - transform: translateY(0); - } - .plyr__captions { - bottom: ($control-spacing / 2); - transition: bottom .3s .2s ease; - } + // Hide controls when playing in full screen + &--fullscreen-active.plyr--fullscreen--hide-controls.plyr--playing, + &.plyr--fullscreen.plyr--fullscreen--hide-controls.plyr--playing { + .plyr__controls { + transform: translateY(100%) translateY($plyr-control-spacing / 2); + transition: transform .3s .2s ease; } + .plyr__captions { + bottom: ($plyr-control-spacing / 2); + transition: bottom .3s .2s ease; + } + &.plyr--hover .plyr__controls { + transform: translateY(0); + } + } - // Captions - &--fullscreen .plyr__captions, - &--fullscreen-active .plyr__captions, - &--fullscreen--hide-controls&--fullscreen-active&--playing&--hover &__captions { - top: auto; - bottom: 90px; - - @media (min-width: $bp-control-split) { - bottom: 60px; - } + // Captions + &.plyr--fullscreen .plyr__captions, + &--fullscreen-active .plyr__captions, + &--fullscreen--hide-controls.plyr--fullscreen-active.plyr--playing.plyr--hover .plyr__captions { + top: auto; + bottom: 90px; + + @media (min-width: $plyr-bp-control-split) { + bottom: 60px; } } diff --git a/src/sprite/icon-captions-off.svg b/src/sprite/icon-captions-off.svg index d9c2c444..788e4de4 100644 --- a/src/sprite/icon-captions-off.svg +++ b/src/sprite/icon-captions-off.svg @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns"> - <title>Captions Off</title> <g> <path d="M1,2 C0.448,2 0,2.448 0,3 L0,15 C0,15.552 0.448,16 1,16 L17,16 C17.552,16 18,15.552 18,15 L18,3 C18,2.448 17.552,2 17,2 L1,2 Z M2,14 L2,4 L16,4 L16,14 L2,14 L2,14 Z"></path> </g> -</svg>
\ No newline at end of file +</svg> diff --git a/src/sprite/icon-captions-on.svg b/src/sprite/icon-captions-on.svg index 9053a31c..c02dfcb1 100644 --- a/src/sprite/icon-captions-on.svg +++ b/src/sprite/icon-captions-on.svg @@ -1,10 +1,9 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Captions On</title> <g> <path d="M1,2 C0.448,2 0,2.448 0,3 L0,15 C0,15.552 0.448,16 1,16 L17,16 C17.552,16 18,15.552 18,15 L18,3 C18,2.448 17.552,2 17,2 L1,2 Z M2,14 L2,4 L16,4 L16,14 L2,14 L2,14 Z"></path> <rect x="3" y="11" width="3" height="2"></rect> <rect x="12" y="11" width="3" height="2"></rect> <rect x="7" y="11" width="4" height="2"></rect> </g> -</svg>
\ No newline at end of file +</svg> diff --git a/src/sprite/icon-enter-fullscreen.svg b/src/sprite/icon-enter-fullscreen.svg index 200e44e0..e8d1ab1a 100644 --- a/src/sprite/icon-enter-fullscreen.svg +++ b/src/sprite/icon-enter-fullscreen.svg @@ -1,10 +1,7 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Enter Fullscreen</title> - <g> - <g transform="translate(9.000000, 9.000000) rotate(-180.000000) translate(-9.000000, -9.000000) translate(0.000000, 2.000000)"> - <path d="M7.69999981,6.30000001 C7.00064659,5.62264405 6.3,6.3 6.3,6.3 L2,10.6 L2,6 L0,6 L0,13 C0,13.6 0.4,14 1,14 L8,14 L8,12 L3.4,12 L7.7,7.7 C7.7,7.7 8.39935303,6.97735597 7.69999981,6.30000001 Z"></path> - <path d="M11,14 L11,12 L16,12 L16,2 L2,2 L2,3 L0,3 L0,1 C0,0.4 0.4,0 1,0 L17,0 C17.6,0 18,0.4 18,1 L18,13 C18,13.6 17.6,14 17,14 L11,14 Z"></path> - </g> + <g transform="translate(9.000000, 9.000000) rotate(-180.000000) translate(-9.000000, -9.000000) translate(0.000000, 2.000000)"> + <path d="M7.69999981,6.30000001 C7.00064659,5.62264405 6.3,6.3 6.3,6.3 L2,10.6 L2,6 L0,6 L0,13 C0,13.6 0.4,14 1,14 L8,14 L8,12 L3.4,12 L7.7,7.7 C7.7,7.7 8.39935303,6.97735597 7.69999981,6.30000001 Z"></path> + <path d="M11,14 L11,12 L16,12 L16,2 L2,2 L2,3 L0,3 L0,1 C0,0.4 0.4,0 1,0 L17,0 C17.6,0 18,0.4 18,1 L18,13 C18,13.6 17.6,14 17,14 L11,14 Z"></path> </g> -</svg>
\ No newline at end of file +</svg> diff --git a/src/sprite/icon-exit-fullscreen.svg b/src/sprite/icon-exit-fullscreen.svg index 3c6f31e7..0fdd6b45 100644 --- a/src/sprite/icon-exit-fullscreen.svg +++ b/src/sprite/icon-exit-fullscreen.svg @@ -1,10 +1,7 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Exit Fullscreen</title> - <g> - <g transform="translate(0.000000, 2.000000)"> - <path d="M7.69999981,6.30000001 C7.00064659,5.62264405 6.3,6.3 6.3,6.3 L2,10.6 L2,6 L0,6 L0,13 C0,13.6 0.4,14 1,14 L8,14 L8,12 L3.4,12 L7.7,7.7 C7.7,7.7 8.39935303,6.97735597 7.69999981,6.30000001 Z"></path> - <path d="M11,14 L11,12 L16,12 L16,2 L2,2 L2,3 L0,3 L0,1 C0,0.4 0.4,0 1,0 L17,0 C17.6,0 18,0.4 18,1 L18,13 C18,13.6 17.6,14 17,14 L11,14 Z"></path> - </g> + <g transform="translate(0.000000, 2.000000)"> + <path d="M7.69999981,6.30000001 C7.00064659,5.62264405 6.3,6.3 6.3,6.3 L2,10.6 L2,6 L0,6 L0,13 C0,13.6 0.4,14 1,14 L8,14 L8,12 L3.4,12 L7.7,7.7 C7.7,7.7 8.39935303,6.97735597 7.69999981,6.30000001 Z"></path> + <path d="M11,14 L11,12 L16,12 L16,2 L2,2 L2,3 L0,3 L0,1 C0,0.4 0.4,0 1,0 L17,0 C17.6,0 18,0.4 18,1 L18,13 C18,13.6 17.6,14 17,14 L11,14 Z"></path> </g> -</svg>
\ No newline at end of file +</svg> diff --git a/src/sprite/icon-muted.svg b/src/sprite/icon-muted.svg index 6d017d02..8a0014f1 100644 --- a/src/sprite/icon-muted.svg +++ b/src/sprite/icon-muted.svg @@ -1,9 +1,8 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Muted</title> <g transform="translate(0.000000, 2.000000)"> <path d="M9.214,0 C9.103,0 8.989,0.032 8.88,0.101 L4.832,2.911 C4.749,2.969 4.65,3 4.549,3 L0.996,3 C0.446,3 1.33226763e-15,3.448 1.33226763e-15,4 L1.33226763e-15,10 C1.33226763e-15,10.552 0.446,11 0.996,11 L4.549,11 C4.651,11 4.749,11.031 4.832,11.089 L8.88,13.899 C8.989,13.968 9.103,14 9.214,14 C9.606,14 9.961,13.6 9.961,13.051 L9.961,0.95 C9.961,0.4 9.606,0.001 9.214,0.001 L9.214,0 Z M7.969,10.834 L5.582,9.177 C5.416,9.062 5.218,8.999 5.016,8.999 L2.491,8.999 C2.216,8.999 1.993,8.775 1.993,8.499 L1.993,5.499 C1.993,5.223 2.216,4.999 2.491,4.999 L5.016,4.999 C5.218,4.999 5.416,4.937 5.582,4.821 L7.969,3.164 L7.969,10.833 L7.969,10.834 Z"></path> <path d="M14.934,6.799 C14.848,5.051 13.42,3.808 12.427,3.15 C11.957,2.838 11.333,3.028 11.102,3.558 L11.064,3.644 C10.876,4.075 11.019,4.583 11.4,4.838 C12.106,5.311 12.986,6.085 13.024,6.903 C13.056,7.579 12.471,8.371 11.361,9.173 C10.963,9.461 10.832,10.012 11.076,10.448 L11.118,10.523 C11.384,10.998 11.984,11.147 12.418,10.835 C14.158,9.584 15.004,8.229 14.934,6.798 L14.934,6.799 Z"></path> <path d="M17.934,6.799 C17.848,5.051 16.42,3.808 15.427,3.15 C14.957,2.838 14.333,3.028 14.102,3.558 L14.064,3.644 C13.876,4.075 14.019,4.583 14.4,4.838 C15.106,5.311 15.986,6.085 16.024,6.903 C16.056,7.579 15.471,8.371 14.361,9.173 C13.963,9.461 13.832,10.012 14.076,10.448 L14.118,10.523 C14.384,10.998 14.984,11.147 15.418,10.835 C17.158,9.584 18.004,8.229 17.934,6.798 L17.934,6.799 Z" transform="translate(15.945467, 6.999165) rotate(-180.000000) translate(-15.945467, -6.999165) "></path> </g> -</svg>
\ No newline at end of file +</svg> diff --git a/src/sprite/icon-restart.svg b/src/sprite/icon-restart.svg index 6cf89d8d..2a889021 100755 --- a/src/sprite/icon-restart.svg +++ b/src/sprite/icon-restart.svg @@ -1,8 +1,5 @@ <?xml version="1.0" encoding="utf-8"?>
-<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- width="16px" height="16px" viewBox="0 0 16 16" enable-background="new 0 0 16 16" xml:space="preserve">
+<svg viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<path d="M7.7,1.2l0.7,6.4l2.1-2.1c1.9,1.9,1.9,5.1,0,7C9.6,13.5,8.3,14,7,14c-1.3,0-2.6-0.5-3.5-1.5
c-1.9-1.9-1.9-5.1,0-7c0.6-0.6,1.4-1.1,2.3-1.3L5.2,2.3C4,2.6,2.9,3.2,2,4.1c-2.7,2.7-2.7,7.1,0,9.9c1.3,1.3,3.1,2,4.9,2
c1.9,0,3.6-0.7,4.9-2c2.7-2.7,2.7-7.1,0-9.9l2.2-2.2L7.7,1.2z"/>
diff --git a/src/sprite/icon-volume.svg b/src/sprite/icon-volume.svg index 27d6d809..9de20690 100755 --- a/src/sprite/icon-volume.svg +++ b/src/sprite/icon-volume.svg @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <svg viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Volume</title> <path d="M10.214 2c-0.111 0-0.225 0.032-0.334 0.101l-4.048 2.81c-0.083 0.058-0.182 0.089-0.283 0.089h-3.553c-0.55 0-0.996 0.448-0.996 1v6c0 0.552 0.446 1 0.996 1h3.553c0.102 0 0.2 0.031 0.283 0.089l4.048 2.81c0.109 0.069 0.223 0.101 0.334 0.101 0.392 0 0.747-0.4 0.747-0.949v-12.101c0-0.55-0.355-0.949-0.747-0.949zM8.969 12.834l-2.387-1.657c-0.166-0.115-0.364-0.178-0.566-0.178h-2.525c-0.275 0-0.498-0.224-0.498-0.5v-3c0-0.276 0.223-0.5 0.498-0.5h2.525c0.202 0 0.4-0.062 0.566-0.178l2.387-1.657v7.669z"></path> <path d="M16.934 8.799c-0.086-1.748-1.514-2.991-2.507-3.649-0.47-0.312-1.094-0.122-1.325 0.408l-0.038 0.086c-0.188 0.431-0.045 0.939 0.336 1.194 0.706 0.473 1.586 1.247 1.624 2.065 0.032 0.676-0.553 1.468-1.663 2.27-0.398 0.288-0.529 0.839-0.285 1.275l0.042 0.075c0.266 0.475 0.866 0.624 1.3 0.312 1.74-1.251 2.586-2.606 2.516-4.037z"></path> </svg> |