MediaWiki:Mbox.css

/**	🙝 Mbox, from: 🙝 https://dev.fandom.com/wiki/Global_Lua_Modules/Mbox **/

.mbox { --type-important: rgba(200, 0, 0, 0.8); --type-moderate: rgba(233, 124, 47, 0.8); --type-minor: rgba(241, 197, 37, 0.8); display: flex; position: relative; background-color: rgb(var(--theme-body-background-color--rgb), 0.5); border: 1px solid var(--theme-body-background-color); border-left-width: 8px; border-left-color: var(--theme-body-background-color); border-radius: 3px; margin-bottom: 5px; min-height: 32px; }

.mbox:not(.file).mbox-type-important { border-left-color: var(--type-important); }

.mbox.file.mbox-type-important .mbox__content__image { border: 2px outset var(--theme-alert-color--secondary); }

.mbox.file.mbox-type-important { background-color: rgb(var(--theme-alert-color--rgb), 0.5); border-color: var(--theme-alert-color--secondary); }

.mbox.mbox-type-moderate { border-left-color: var(--type-moderate); }

.mbox.mbox-type-minor { border-left-color: var(--type-minor); }

.mbox__content { display: flex; box-sizing: border-box; align-items: center; width: 100%; padding: 8px 15px; }

.mbox__content__image { display: flex; height: 100%; flex-direction: row; align-items: center; justify-content: center; margin-right: 10px; width: 40px; }

.mbox__content__wrapper { display: table-cell; vertical-align: middle; }

.mbox__content__header { display: block; font-weight: bold; }

.mbox__content__text { display: block; }

.mbox__content__text__comment { font-size: small; }

.mbox__content__aside { width: 100px; text-align: center; padding: 0 0 0 10px; border-left: 1px solid var(--theme-body-background-color); margin-left: auto; display: flex; margin-right: 10px; word-break: break-word; }

.mbox__close { position: absolute; right: 0; top: 0; padding: 2px 7px; font-weight: bold; font-size: 16px; color: var(--theme-page-text-color); cursor: pointer; }

.mbox__close:hover { opacity: 0.5; }

.mbox__close:after { content: "×"; display: inline-block; transition: transform 0.1s ease; }

.mw-collapsed + .mbox__close:after { margin: 0 !important; transform: rotate(45deg); }

.mbox.file { margin: 0 auto; border-width: 2px; border-style: outset; }

.mbox.file .mbox__content { justify-content: center; padding: 5px 20px 5px 5px; }

.mbox.file .mbox__content__image { border-radius: 100px; min-width: 60px; height: 60px; border: 2px outset var(--theme-body-background-color); }

.mbox.file .mbox__content__wrapper { margin: auto; }

.mbox.file .mbox__content__aside { margin: 0; }

.mbox.small { margin: 0 auto; border-width: 1px; border-radius: 100px; width: fit-content; }

.mbox.small .mbox__content { padding-left: 15px; }

.mbox.small .mbox__content { padding: 5px 15px 5px 5px; }

.mbox.small .mbox__content__image { background-color: var(--theme-body-background-color); border-radius: 100px; width: 75px; height: 75px; }

.mbox.small .mbox__content__text { font-size: smaller; }

.mbox.big { border-width: 2px solid var(--theme-body-background-color); border-left-width: 9px; padding: 8px 15px 8px 15px; border-radius: 5px 200px 200px 5px; }

.mbox.big .mbox__content { justify-content: center; flex-direction: row-reverse; }

.mbox.big .mbox__content__wrapper { margin: auto; padding: 0 10px; }

.mbox.big .mbox__content__wrapper > div { text-align: center; }

.mbox.big .mbox__content__aside { margin: 0; border-left: none; padding: 0 10px 0 0; border-right: 1px solid var(--theme-body-background-color); }

.mbox.big .mbox__close { left: 0; width: 0; }

.skin-fandommobile .mbox.small .mbox__content__image { background-color: var(--theme-body-background-color); border-radius: 100px; min-width: 50px; height: 50px; }

.skin-fandommobile .mbox .article-media-placeholder { border: none; }

.skin-fandommobile .mbox .article-media-thumbnail { margin-bottom: 0; }

.mbox.small .mbox__close, .mbox.small .mbox__aside { display: none; }