Template:Hatnote/styles.css: Difference between revisions

Template page
m (1 revision imported)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
}
}


.hatnote-icon img {
.hatnote__icon img {
     opacity: .5;
     opacity: .5;
     margin-right: 10px;
     margin-right: 10px;
Line 27: Line 27:


/* Dark mode */
/* Dark mode */
@media (prefers-color-scheme: dark) {
html.skin-citizen-dark .hatnote {
    .hatnote {
    background: #171a1d;
        background: #1d2129;
    color: rgba(255,255,255,0.6);
        color: #a0a1a5;
}
    }


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

Latest revision as of 23:31, 6 May 2021

.hatnote {
    margin-top: 0.6rem;
    border-radius: 8px;
    padding: 10px 15px;
    color: #72777d;
    background: #f8f9fa;
    font-size: 0.875rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.hatnote__icon img {
    opacity: .5;
    margin-right: 10px;
    width: 14px;
    height: auto;
}

@media only screen and (max-width: 720px) {
    .hatnote {
        margin: 0.4rem -20px 0 -20px;
        border-radius: 0;
        padding: 10px 20px;
    }
}

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

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