fix(jeu): positionnement overlay — retire float iframe, position absolute overlay
This commit is contained in:
parent
c26de10eac
commit
2af4604c08
2 changed files with 24 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
importance="high"
|
importance="high"
|
||||||
width="400"
|
width="400"
|
||||||
height="650"
|
height="650"
|
||||||
style="float: right; border: medium; overflow: hidden; margin: 10px; pointer-events: none;"
|
style="border: none; overflow: hidden; pointer-events: none; display: block;"
|
||||||
src="<?= $block->url()->html() ?>"
|
src="<?= $block->url()->html() ?>"
|
||||||
></iframe>
|
></iframe>
|
||||||
<div class="iframe-click-overlay">
|
<div class="iframe-click-overlay">
|
||||||
|
|
|
||||||
|
|
@ -368,6 +368,29 @@
|
||||||
font-size: var(--font-size-caption);
|
font-size: var(--font-size-caption);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* --- Bloc jeu iframe --- */
|
||||||
|
.article-body :global(.iframe-game-container) {
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-body :global(.iframe-click-overlay) {
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.article-body :global(.iframe-deactivate-btn) {
|
||||||
|
position: absolute;
|
||||||
|
top: 8px;
|
||||||
|
right: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
/* --- Recommandations --- */
|
/* --- Recommandations --- */
|
||||||
.article-related {
|
.article-related {
|
||||||
border-top: 1px solid rgba(255, 255, 255, 0.15);
|
border-top: 1px solid rgba(255, 255, 255, 0.15);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue