MediaWiki:Fandomdesktop.css

.mbox { --type-important: rgba(var(--theme-alert-color--rgb), .2); --type-moderate: rgba(var(--theme-warning-color--rgb), .2); --type-minor: rgba(241, 197, 37, .2); display: flex; position: relative; background-color: rgba(var(--theme-accent-color--rgb), .1); border: 1px solid rgba(var(--theme-page-dynamic-color-1--rgb), .1); border-radius: 6px; margin-bottom: 5px; color: var(--theme-body-text-color); min-height: 32px; } /* Ensuring the mbox type colors are (kinda) readable */ .theme-fandomdesktop-dark .mbox { --type-important: rgba(251, 88, 88, .2); --type-moderate: rgba(255, 162, 96, .2); --type-minor: rgba(255, 219, 86, .2); }

.mbox.mbox-type-important { background-color: var(--type-important); border-color: var(--type-important); color: var(--theme-alert-color) } .mbox.mbox-type-moderate { background-color: var(--type-moderate); border-color: var(--type-moderate); } .mbox.mbox-type-minor { background-color: var(--type-minor); border-color: var(--type-minor); }

.mbox__content { display: table; box-sizing: border-box; width: 100%; padding: 8px 15px; }

.mbox__content__image { display: table-cell; width: 40px; height: 100%; text-align: center; vertical-align: middle; padding-right: 15px; }

.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 { display: table-cell; width: 100px; vertical-align: middle; text-align: center; padding-left: 15px; border-left: 1px solid rgba(var(--theme-page-dynamic-color-1--rgb), .2); }

.mbox__close { position: absolute; right: 0; top: 0; padding: 2px 7px; font-weight: bold; font-size: 16px; cursor: pointer; transition: all .15s ease-in; opacity: .6 } .mbox__close:hover { opacity: 1 } .mbox__close:after { content: '×'; } .mw-collapsed + .mbox__close { transform: rotate(45deg); padding: 4px 7px 5px 2px; }