Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
fix(placeholder): adjust css
Browse files Browse the repository at this point in the history
  • Loading branch information
asakrejz committed Apr 19, 2022
1 parent a67948c commit d846e4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
21 changes: 3 additions & 18 deletions src/vue/components/EmbedPlaceholder/EmbedPlaceholder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,33 +215,18 @@ export default Vue.extend<NonNullish, Methods, NonNullish, Props>({
}
@media (min-width: 0) and (max-width: 599.99px) {
.a-teaser.embed-placeholder__container {
:not(.nobp) .a-teaser.embed-placeholder__container {
aspect-ratio: auto;
}
.embed-placeholder__header {
:not(.nobp) .embed-placeholder__header {
display: none;
}
}
@media (max-width: 399.99px) {
.quad.embed-placeholder__container {
:not(.nobp) .quad.embed-placeholder__container {
aspect-ratio: auto;
}
}
/* workaround nobp class */
@media (min-width: 1024px) {
.a-teaser.embed-placeholder__container {
aspect-ratio: 16 / 9;
}
.quad.embed-placeholder__container {
aspect-ratio: 1 / 1;
}
.embed-placeholder__header {
display: flex;
}
}
</style>
21 changes: 3 additions & 18 deletions src/vue/components/EmbedPlaceholderPur/EmbedPlaceholderPur.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,33 +188,18 @@ export default Vue.extend<NonNullish, Methods, NonNullish, Props>({
}
@media (min-width: 0) and (max-width: 1023.99px) {
.a-teaser > .embed-placeholder__header--pur {
:not(.nobp) .a-teaser > .embed-placeholder__header--pur {
display: none;
}
.double-a-teaser > .embed-placeholder__header--pur {
:not(.nobp) .double-a-teaser > .embed-placeholder__header--pur {
display: none;
}
}
@media (min-width: 0) and (max-width: 599.99px) {
.embed-placeholder__header--pur {
:not(.nobp) .embed-placeholder__header--pur {
display: none;
}
}
/* workaround nobp class */
@media (min-width: 1024px) {
.a-teaser > .embed-placeholder__header--pur {
display: flex;
}
.double-a-teaser > .embed-placeholder__header--pur {
display: flex;
}
.embed-placeholder__header--pur {
display: flex;
}
}
</style>

0 comments on commit d846e4e

Please sign in to comment.