Template:Mbox/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 10: Line 10:
}
}


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


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


.mbox-title {
.mbox__title {
     padding: 10px 15px;
     padding: 10px 15px;
     display: flex;
     display: flex;
Line 25: Line 25:
}
}


.mbox-icon {
.mbox__icon {
display: flex;
}
 
.mbox__icon a.image {
display: inline-block;
display: inline-block;
background: none;
}
}


.mbox-icon img {
.mbox__icon img,
.mbox__icon a.image {
     opacity: .5;
     opacity: .5;
     /*margin-right: 4px;*/
     /*width: 14px;*/
    width: 14px;
     height: auto;
     height: auto;
    background: none;
}
}


.mbox-icon img:last-child {
.mbox__icon a.image,
.mbox__icon > img {
margin-right: 4px;
}
 
.mbox__icon a.image:last-child,
.mbox__icon > img:last-child {
margin-right: 10px;
margin-right: 10px;
}
}


.mbox-text {
.mbox__text {
     position: absolute;
     position: absolute;
     z-index: 10;
     z-index: 10;
Line 53: Line 63:
}
}


.mbox:hover .mbox-text {
.mbox:hover .mbox__text {
     opacity: 1;
     opacity: 1;
     visibility: visible;
     visibility: visible;
}
/* Expanded mbox */
.mbox--expanded .mbox__text {
    position: static;
    background: inherit;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    padding: 0 15px 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: initial;
}
}


Line 63: Line 87:
     }
     }


     .mbox-title {
     .mbox__title {
         padding: 10px 20px;
         padding: 10px 20px;
     }
     }
Line 70: Line 94:
/* Dark mode */
/* Dark mode */
html.skin-citizen-dark .mbox {
html.skin-citizen-dark .mbox {
     background: #1d2129;
     background: #171a1d;
     color: #a0a1a5;
     color: rgba(255,255,255,0.6);
}
}


html.skin-citizen-dark .mbox-icon img {
html.skin-citizen-dark .mbox__icon img {
     filter: invert(1);
     filter: invert(1);
}
}


html.skin-citizen-dark .mbox.mbox-high {
html.skin-citizen-dark .mbox__icon.mbox__icon--noinvert img {
    filter: none;
}
 
html.skin-citizen-dark .mbox.mbox--high {
     background: #b32424;
     background: #b32424;
     color: #fee7e6;
     color: #fee7e6;
}
}


html.skin-citizen-dark .mbox.mbox-med {
html.skin-citizen-dark .mbox.mbox--med {
     background: #ac6600;
     background: #ac6600;
     color: #fef6e7;
     color: #fef6e7;
}
}


html.skin-citizen-dark .mbox.mbox-med a,
html.skin-citizen-dark .mbox.mbox--med a,
html.skin-citizen-dark .mbox.mbox-high a {
html.skin-citizen-dark .mbox.mbox--high a {
     color: inherit;
     color: inherit;
     text-decoration: underline !important;
     text-decoration: underline !important;
}
}

Latest revision as of 14:15, 4 August 2021

.mbox {
    margin-top: 0.4rem;
    border-radius: 8px;
    color: #72777d;
    font-size: 0.875rem;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

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

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

.mbox__icon {
	display: flex;
}

.mbox__icon a.image {
	display: inline-block;
	background: none;
}

.mbox__icon img,
.mbox__icon a.image {
    opacity: .5;
    /*width: 14px;*/
    height: auto;
}

.mbox__icon a.image,
.mbox__icon > img {
	margin-right: 4px;
}

.mbox__icon a.image:last-child,
.mbox__icon > img:last-child {
	margin-right: 10px;
}

.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;
}

/* Expanded mbox */
.mbox--expanded .mbox__text {
    position: static;
    background: inherit;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    padding: 0 15px 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    z-index: initial;
}

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

    .mbox__title {
        padding: 10px 20px;
    }
}

/* Dark mode */
html.skin-citizen-dark .mbox {
    background: #171a1d;
    color: rgba(255,255,255,0.6);
}

html.skin-citizen-dark .mbox__icon img {
    filter: invert(1);
}

html.skin-citizen-dark .mbox__icon.mbox__icon--noinvert img {
    filter: none;
}

html.skin-citizen-dark .mbox.mbox--high {
    background: #b32424;
    color: #fee7e6;
}

html.skin-citizen-dark .mbox.mbox--med {
    background: #ac6600;
    color: #fef6e7;
}

html.skin-citizen-dark .mbox.mbox--med a,
html.skin-citizen-dark .mbox.mbox--high a {
    color: inherit;
    text-decoration: underline !important;
}