Skip to content

Commit

Permalink
fix video size
Browse files Browse the repository at this point in the history
  • Loading branch information
cogniSyb committed Dec 5, 2023
1 parent 0775e2d commit 1f2884f
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions common/modal/modal.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
position: relative;
transform: translateY(-100vh);
transition: transform 0.3s ease-out;
}

:root:not(.redesign-v2) .modal-content {
margin-top: 100px;
background-color: var(--c-grey-1);
}

Expand Down Expand Up @@ -179,6 +183,7 @@
gap: 2%;
}

/* stylelint-disable-next-line no-descending-specificity */
.modal-content:has(.modal-soundcloud) {
aspect-ratio: unset;
}
Expand All @@ -199,3 +204,36 @@
width: 100%;
height: unset;
}

.redesign-v2 .modal-content:has(.modal-video) {
padding: 0 16px;
max-width: calc(var(--wrapper-width) + 32px);
}

.redesign-v2 .modal-video {
width: calc(100% - 32px);
height: auto;
border-radius: 8px 8px 0 0;
}

@media (min-width: 744px) {
.redesign-v2 .modal-content:has(.modal-video) {
padding: 0 32px;
}

.redesign-v2 .modal-video {
width: calc(100% - 64px);
}
}

@media (min-width: 1200px) {
.redesign-v2 .modal-content:has(.modal-video) {
padding: 0;
margin: 0 auto;
max-width: var(--wrapper-width);
}

.redesign-v2 .modal-video {
width: 100%;
}
}

0 comments on commit 1f2884f

Please sign in to comment.