This commit is contained in:
Sam Potts 2015-08-27 07:30:14 +10:00
parent b39961ec49
commit 0785ca6024
6 changed files with 750 additions and 533 deletions

2
dist/plyr.css vendored

File diff suppressed because one or more lines are too long

2
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

2
docs/dist/docs.css vendored

File diff suppressed because one or more lines are too long

View File

@ -6,6 +6,7 @@
.example-audio .player,
.example-video .player {
margin: 0 auto @padding-base;
box-shadow: 0 1px 1px rgba(0,0,0, .1);
&-controls {
border-radius: 0 0 @border-radius-base @border-radius-base;
@ -22,18 +23,38 @@
overflow: hidden;
}
}
// Base styles
.example-video .player {
max-width: @example-width-video;
video,
iframe {
border-radius: @border-radius-base;
}
}
// Style full supported player
.example-video .player-video,
.example-video .player-youtube,
.example-video .player-vimeo {
video,
.player-video-wrapper {
border-radius: @border-radius-base @border-radius-base 0 0;
}
iframe {
.player-video-wrapper {
-webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
}
&-fullscreen,
&.fullscreen-active {
max-width: none;
video,
.player-controls,
.player-video-wrapper {
border-radius: 0;
}
.player-video-wrapper {
-webkit-mask-image: none;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -170,6 +170,7 @@
&-video-embed {
padding-bottom: 56.25%; /* 16:9 */
height: 0;
overflow: hidden;
iframe {
position: absolute;
@ -178,6 +179,14 @@
width: 100%;
height: 100%;
border: 0;
user-select: none;
}
// Vimeo hack
> div {
position: relative;
padding-bottom: 200%;
transform: translateY(-35.95%);
}
}