Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #50 from stroeer/fix/optimize-play-button-position
Browse files Browse the repository at this point in the history
optimize play button position
  • Loading branch information
evaschmuhl authored Jun 15, 2022
2 parents d2e0dbd + 222e248 commit ec744af
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.3",
"version": "1.1.4",
"name": "@stroeer/stroeer-videoplayer-plugin-endcard",
"description": "Ströer Videoplayer Endcard Plugin",
"main": "dist/stroeerVideoplayer-endcard-plugin.umd.js",
Expand Down
43 changes: 31 additions & 12 deletions src/endcard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;
position: absolute;
width: 100%;
bottom: $endcard-plugin-controlbar-height-mobile;
top: 0;
left: 0;
right: 0;
}

.plugin-endcard-tile,
Expand All @@ -61,6 +64,15 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;

.plugin-endcard-tile-replay {
z-index: 101;

.plugin-endcard-overlay {
position: absolute;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
bottom: 0;
}
}

.plugin-endcard-tile-single,
Expand Down Expand Up @@ -116,12 +128,14 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;

.plugin-endcard-title {
margin: 0;
padding: $endcard-plugin-spacing-small;
padding: 0 $endcard-plugin-spacing-small;
width: 100%;
box-sizing: border-box;
color: $endcard-plugin-text-color;
font-weight: bold;
font-size: $endcard-plugin-font-size-medium;
position: absolute;
bottom: 0;
}

.plugin-endcard-replay-title {
Expand Down Expand Up @@ -152,19 +166,23 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;
z-index: 1;
}

.plugin-endcard-revolverplay-icon {
.plugin-endcard-revolverplay-icon,
.plugin-endcard-play-icon {
display: block;
margin: 0 auto;
position: absolute;
left: 50%;
top: 40%;
margin-left: -11px;
margin-top: -14px;
}

.plugin-endcard-play-icon {
display: block;
margin: 0 auto $endcard-plugin-spacing-small;
.plugin-endcard-revolverplay-icon {
margin-left: -51px;
margin-top: -37px;
}

.plugin-endcard-replay-icon {
display: block;
margin: 0 auto;
}

.plugin-endcard-progress-value {
Expand Down Expand Up @@ -198,10 +216,15 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;

.plugin-endcard-title {
background: $endcard-plugin-title-bg;
padding-bottom: $endcard-plugin-spacing-small;

.plugin-endcard-tile-0 & {
font-size: $endcard-plugin-font-size-large;
padding: $endcard-plugin-spacing-large;

.plugin-endcard-title-main {
-webkit-line-clamp: 3;
}
}
}

Expand All @@ -222,10 +245,6 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;
.plugin-endcard-tile-replay {
display: block;
clear: left;

.plugin-endcard-overlay {
bottom: calc(50% - ((21px + #{$endcard-plugin-font-size-smaller} + #{$endcard-plugin-spacing-small}) / 2));
}
}

.plugin-endcard-tile-1,
Expand All @@ -249,7 +268,7 @@ $endcard-plugin-controlbar-height-mobile: 55px !default;
}

.plugin-endcard-revolverplay-icon {
margin-bottom: $endcard-plugin-spacing-large;
top: 50%;
}

.plugin-endcard-button-pause {
Expand Down

0 comments on commit ec744af

Please sign in to comment.