-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Before adding "relative" style attributes to "Wrapper" elements, increase corresponding judgments; Refactor: Video Player UI layout;
- Loading branch information
Showing
15 changed files
with
394 additions
and
874 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* PLAY_BUTTON HTML | ||
* @type {string} | ||
*/ | ||
export const PLAY_BUTTON = ` | ||
<svg viewBox="0 0 64 64"> | ||
<path d="M26,45.5L44,32L26,18.6v27V45.5L26,45.5z M32,2C15.4,2,2,15.5,2,32c0,16.6,13.4,30,30,30c16.6,0,30-13.4,30-30 C62,15.4,48.5,2,32,2L32,2z M32,56c-9.7,0-18.5-5.9-22.2-14.8C6.1,32.2,8.1,21.9,15,15c6.9-6.9,17.2-8.9,26.2-5.2 C50.1,13.5,56,22.3,56,32C56,45.3,45.2,56,32,56L32,56z"/> | ||
</svg> | ||
`; | ||
|
||
/** | ||
* UNMUTE_BUTTON HTML | ||
* @type {string} | ||
*/ | ||
export const UNMUTE_BUTTON = ` | ||
<svg viewBox="0 0 64 64"> | ||
<path d="M58.3,45.5l-4.8-4.3c1.4-2.9,2.2-6.2,2.2-9.6c0-11.1-8.2-20.3-18.9-21.9V3.3C50.9,4.9,62,16.9,62,31.6 C62,36.6,60.6,41.4,58.3,45.5L58.3,45.5z M30.4,5.6v15.2l-8.3-7.3L30.4,5.6L30.4,5.6z M36.7,19.9c4.6,1.9,7.9,6.4,7.9,11.7 c0,0.6-0.1,1.1-0.1,1.7l-7.8-6.9V19.9L36.7,19.9z M57.5,60.7l-7.1-6.3c-3.9,2.9-8.6,4.8-13.7,5.4v-6.4c3.2-0.5,6.2-1.7,8.8-3.4 l-8.1-7.2c-0.2,0.1-0.5,0.3-0.7,0.4v-1l-6.3-5.6v20.2L15.4,42.6H2V20.5h10.2l-9.7-8.6l4.2-4.7L61.7,56L57.5,60.7L57.5,60.7z"/> | ||
</svg> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*--------------------------- | ||
* mixin | ||
*---------------------------*/ | ||
/** | ||
* flex container inner elements alignment | ||
* $mainAxis | ||
* $crossAxis | ||
* options: false, center, flex-end, ... | ||
*/ | ||
@mixin flex-box-align($mainAxis:false, $crossAxis:false) { | ||
@if ($mainAxis != false) { | ||
justify-content: $mainAxis; | ||
} | ||
@if ($crossAxis != false) { | ||
align-items: $crossAxis; | ||
} | ||
} | ||
|
||
/*--------------------------- | ||
* %placeholder | ||
*---------------------------*/ | ||
// absolute | ||
%abs { | ||
position: absolute; | ||
z-index: 1; | ||
} | ||
|
||
// fullContainer | ||
%fullContainer { | ||
@extend %abs; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
// flexCenter | ||
%flexCenter { | ||
display: flex; | ||
@include flex-box-align(center, center); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
@import "utilities"; | ||
|
||
.canvas, | ||
.poster { | ||
@extend %fullContainer; | ||
display: block; | ||
} | ||
|
||
.poster { | ||
&.hidden { | ||
display: none; | ||
} | ||
} | ||
|
||
// buttons | ||
%buttonCommon { | ||
@extend %fullContainer; | ||
|
||
opacity: .7; | ||
cursor: pointer; | ||
-webkit-tap-highlight-color: rgba(255, 0, 0, 0); | ||
|
||
&.hidden { | ||
display: none; | ||
} | ||
} | ||
|
||
.playButton { | ||
@extend %buttonCommon; | ||
@extend %flexCenter; | ||
z-index: 10; | ||
|
||
> svg { | ||
width: 8vw; | ||
height: 8vw; | ||
max-width: 60px; | ||
max-height: 60px; | ||
fill: #fff; | ||
} | ||
} | ||
|
||
.unmuteButton { | ||
@extend %buttonCommon; | ||
z-index: 10; | ||
display: flex; | ||
justify-content: flex-end; | ||
align-items: flex-end; | ||
|
||
> svg { | ||
margin: 0 15px 15px 0; | ||
width: 6vw; | ||
height: 6vw; | ||
max-width: 40px; | ||
max-height: 40px; | ||
fill: #fff; | ||
} | ||
} | ||
|
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.