Modèle:Test1 : Différence entre versions
[version vérifiée] | [version vérifiée] |
Ligne 1 : | Ligne 1 : | ||
− | {{#if:{{{ | + | <div class="modalContainer" {{#if:{{{Center|}}}|style="margin: 0 auto;"}}> |
− | <div class="modal" style="z-index: | + | <div class="button modal-trigger" {{#if:{{{buttonStyle|}}}|style="{{{buttonStyle}}}"}}>{{{1}}}</div> |
− | + | <div class="modal" style="z-index: 101;"> | |
+ | <div class="modal-content" style="{{#if:{{{overflow|}}}|overflow-y: visible;|overflow-y: auto;}} {{#switch:{{{Largeur|1}}} | ||
+ | |1=max-width: 800px; width: 90%; | ||
+ | |2=width: fit-content; max-width: 85%; | ||
+ | |3=width: min-content; max-width: 85%; min-width: min(300px, 80%); | ||
+ | }} {{#if:{{{Hauteur|}}}|max-height: 85%;}} padding: 0; {{#if:{{{Flex|}}}|display: flex; flex-direction: column;}}"> | ||
<div style="display: flex; justify-content: space-between; align-items: flex-start;"> | <div style="display: flex; justify-content: space-between; align-items: flex-start;"> | ||
<div style="padding: 10px;">{{{title|}}}</div> | <div style="padding: 10px;">{{{title|}}}</div> | ||
− | <div class="close-button" style="width: 40px; height: 40px; font-size: 32px; user-select: none; display: flex; align-items: center; justify-content: center; border-top-right-radius: 8px; cursor: pointer;"><span>×</span></div> | + | <div class="close close-button" style="width: 40px; height: 40px; font-size: 32px; user-select: none; display: flex; align-items: center; justify-content: center; border-top-right-radius: 8px; cursor: pointer; padding: 0; position: initial;"><span>×</span></div> |
</div> | </div> | ||
− | <div style="padding: 10px;"> | + | <div style="padding: 0 10px 10px 10px;">{{{2}}}</div> |
− | {{{ | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | </div> |