Template:Mbox/styles.css

Template page
Revision as of 12:33, 8 April 2022 by Aeywoo (talk | contribs) (Aeywoo moved page Template:Mobx/styles.css to Template:Mbox/styles.css without leaving a redirect: Misspelled sub-template page name.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.mbox {
	position: relative;
    margin-top: .4rem;
    margin-bottom: .8rem;
    border-radius: 8px;
    color: var( --color-base--subtle );
    font-size: .875rem;
    background-color: var( --background-color-framed );
    display: flex;
    flex-direction: column;
}
.mbox.mbox-high {
    background-color: var( --background-color-destructive );
}
.mbox.mbox-med {
    background-color: var( --background-color-warning );
}
.mbox-title {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
}
.mbox-icon img {
    opacity: .5;
    margin-right: 10px;
    width: 14px;
    height: auto;
}
.mbox-text {
    position: absolute;
    z-index: 10;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .0625), 0 10px 10px rgba(0, 0, 0, .055);
    opacity: 0;
    background-color: var( --background-color-framed );
    visibility: hidden;
    transition: opacity .2s ease, box-shadow .2s ease;
}
.mbox:hover .mbox-text {
    opacity: 1;
    visibility: visible;
}
.mbox-high .mbox-text {
    background-color: var( --background-color-destructive );
}
.mbox-med .mbox-text  {
    background-color: var( --background-color-warning );
}

/* Dark mode */
html.skin-citizen-dark .mbox-icon img {
    filter: invert(1);
}

/* Readability fixes */
html.skin-citizen-dark .mbox {
	color: var( --color-base--emphasized );
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.