Модуль:Mbox/styles.css

Материал из Космическая Станция 14 Вики
Версия от 14:22, 6 марта 2024; Vinogradgarden (обсуждение | вклад) (Новая страница: «.mbox { position: relative; display: flex; flex-direction: column; margin-top: calc(0.5 * 1rem); →‎--space-xs: margin-bottom: 1rem; →‎--space-md: background-color: hsl(220,25%,15%); →‎--color-surface-2: border-radius: 8px; →‎--border-radius--medium: color: hsl(220,25%,65%); →‎--color-base--subtle: font-size: 0.875rem; →‎--font-size-small: line-height: 1.25; } .mbox.mbox-high { /* FIXME: Update b...»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
.mbox {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: calc(0.5 * 1rem); /* --space-xs */
    margin-bottom: 1rem; /* --space-md */
    background-color: hsl(220,25%,15%); /* --color-surface-2  */
    border-radius: 8px; /* --border-radius--medium */
    color: hsl(220,25%,65%); /* --color-base--subtle */
    font-size: 0.875rem; /* --font-size-small */
    line-height: 1.25;
}

.mbox.mbox-high {
    /* FIXME: Update back to Citzen CSS var when patched */
    background-color: rgba( 221, 51, 51, 0.1 );
}

.mbox.mbox-med {
    /* FIXME: Update back to Citzen CSS var when patched */
    background-color: rgba( 255, 204, 51, 0.1 );
}

.mbox-title {
    display: flex;
    align-items: center;
    padding: calc(0.75 * 1rem) 1rem; /* --space-sm */
}

.mbox-icon img {
    width: 0.875rem;
    height: auto;
    margin-right: calc(0.5 * 1rem);
    opacity: 0.6; /* --opacity-icon-base */
    filter: invert(1) hue-rotate(180deg); /* --filter-invert */
}

.mbox-text {
    position: absolute;
    top: 100%;
    z-index: 10;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    background-color: hsl(220,25%,12%); /* --color-surface-1 */
    border-bottom-left-radius: 8px; /* --border-radius--medium */
    border-bottom-right-radius: 8px;
    /* box-shadow: 0 2.8px 2.2px hsl(220,60%,50%),calc(0.02 + .03)),0 6.7px 5.3px hsl(220,60%,50%),calc(0.02 + .01)),0 12.5px 10px hsl(220,60%,50%),calc(0.02 + .02)),0 22.3px 17.9px hsl(220,60%,50%),calc(0.02 + .02)),0 41.8px 33.4px hsl(220,60%,50%),calc(0.02 + .03)),0 100px 80px hsl(220,60%,50%),0.02); --box-shadow-dialog */
    opacity: 0;
    visibility: hidden;
}

.mbox:hover {
    /* Merge with popup */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /* box-shadow: 0 2.8px 2.2px hsl(220,60%,50%),calc(0.02 + .03)),0 6.7px 5.3px hsl(220,60%,50%),calc(0.02 + .01)),0 12.5px 10px hsl(220,60%,50%),calc(0.02 + .02)),0 22.3px 17.9px hsl(220,60%,50%),calc(0.02 + .02)),0 41.8px 33.4px hsl(220,60%,50%),calc(0.02 + .03)),0 100px 80px hsl(220,60%,50%),0.02); */
}

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