Template:Mbox/styles.css

Template page
Revision as of 09:26, 16 October 2020 by ZexisStryfe (talk | contribs) (Created page with ".mbox { margin-top: 0.4rem; border-radius: 8px; font-size: 0.875rem; background: #1d2129; color: #a0a1a5; display: flex; flex-direction: column; }...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.mbox {
    margin-top: 0.4rem;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #1d2129;
    color: #a0a1a5;
    display: flex;
    flex-direction: column;
}

.mbox.mbox-high {
    background: #b32424;
    color: #fee7e6;
}

.mbox.mbox-med {
    background: #ac6600;
    color: #fef6e7;
}

.mbox-title {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.mbox-icon img {
    opacity: .5;
    margin-right: 10px;
    width: 14px;
    height: auto;
    filter: invert(1);
}

.mbox-text {
    position: absolute;
    z-index: 10;
    padding: 15px 20px;
    border-radius: 8px;
    background: inherit;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.0625), 0 10px 10px rgba(0, 0, 0, 0.055);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.mbox:hover .mbox-text {
    opacity: 1;
    visibility: visible;
}

@media only screen and (max-width: 720px) {
    .mbox {
        margin: 0.4rem -20px 0 -20px;
    }

    .mbox-title {
        padding: 10px 20px;
    }
}