Skip to content

Commit

Permalink
fix(videodetail): fix posterfading responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Jun 24, 2021
1 parent 62406b8 commit aab58bb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
19 changes: 13 additions & 6 deletions src/components/Video/Video.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

.main {
display: flex;
max-width: 100vw;
overflow: hidden;

&.hidden {
display: none;
Expand Down Expand Up @@ -177,14 +179,19 @@
}

&.fading {
width: 100vw;
height: 100vh;
mask-image: radial-gradient(farthest-corner at 80% 20%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 50%);
-webkit-mask-image: radial-gradient(farthest-corner at 80% 20%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 50%); /* stylelint-disable-line */
width: 80vw;
height: calc(85vw / 16 * 9);
mask-image: radial-gradient(farthest-corner at 80% 20%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 60%);
-webkit-mask-image: radial-gradient(farthest-corner at 80% 20%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 60%); /* stylelint-disable-line */

@include responsive.tablet-only() {
width: 80vw;
height: calc(140vw / 16 * 9);
}

@include responsive.mobile-only() {
mask-image: radial-gradient(farthest-corner at 70% 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 65%);
-webkit-mask-image: radial-gradient(farthest-corner at 70% 0%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 65%); /* stylelint-disable-line */
width: 110vw;
height: calc(180vw / 16 * 9);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Movie/Movie.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
.related {
display: flex;
align-items: center;
margin: 16px 0;
> h3 {
padding-bottom: 16px;
font-family: var(--body-alt-font-family);
font-weight: 700;
font-size: 24px;
Expand Down
2 changes: 1 addition & 1 deletion src/screens/Series/Series.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
.episodes {
display: flex;
align-items: center;
margin: 16px 0;
> h3 {
padding-bottom: 16px;
font-family: var(--body-alt-font-family);
font-weight: 700;
font-size: 24px;
Expand Down

0 comments on commit aab58bb

Please sign in to comment.