More actions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
display: flex; |
display: flex; |
||
flex-direction: column; |
flex-direction: column; |
||
margin-top: |
margin-top: 0.5rem; |
||
margin-bottom: 1rem; |
margin-bottom: 1rem; |
||
background-color: |
background-color: var( --color-surface-2 ); |
||
border-radius: |
border-radius: 8px; |
||
color: |
color: var( --color-base--subtle ); |
||
font-size: 0. |
font-size: 0.875rem; |
||
line-height: 1; |
line-height: 1.25rem; |
||
} |
} |
||
Line 25: | Line 25: | ||
display: flex; |
display: flex; |
||
align-items: center; |
align-items: center; |
||
padding: |
padding: 0.75rem 1rem; |
||
} |
} |
||
.mbox-icon img { |
.mbox-icon img { |
||
display: block; |
display: block; |
||
width: |
width: 0.875rem; |
||
height: auto; |
height: auto; |
||
margin-right: 0.5rem; |
margin-right: 0.5rem; |
||
opacity: 0. |
opacity: 0.6; |
||
filter: |
filter: invert(100%); |
||
} |
} |
||
Line 44: | Line 44: | ||
width: 100%; |
width: 100%; |
||
box-sizing: border-box; |
box-sizing: border-box; |
||
background-color: |
background-color: var( --color-surface-1 ); |
||
border-bottom-left-radius: |
border-bottom-left-radius: 8px; |
||
border-bottom-right-radius: |
border-bottom-right-radius: 8px; |
||
box-shadow: |
box-shadow: 2.2px 5.3px 10px 10px rgba(46, 49, 56, .05); |
||
opacity: |
opacity: 0; |
||
visibility: hidden; |
visibility: hidden; |
||
} |
} |
||
Line 56: | Line 56: | ||
border-bottom-left-radius: 0; |
border-bottom-left-radius: 0; |
||
border-bottom-right-radius: 0; |
border-bottom-right-radius: 0; |
||
box-shadow: |
box-shadow: 2.2px 5.3px 10px 10px rgba(46, 49, 56, .05); |
||
} |
} |
||
Latest revision as of 16:29, 29 September 2024
.mbox {
position: relative;
display: flex;
flex-direction: column;
margin-top: 0.5rem;
margin-bottom: 1rem;
background-color: var( --color-surface-2 );
border-radius: 8px;
color: var( --color-base--subtle );
font-size: 0.875rem;
line-height: 1.25rem;
}
.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: 0.75rem 1rem;
}
.mbox-icon img {
display: block;
width: 0.875rem;
height: auto;
margin-right: 0.5rem;
opacity: 0.6;
filter: invert(100%);
}
.mbox-text {
position: absolute;
top: 100%;
z-index: 10;
padding: 1rem;
width: 100%;
box-sizing: border-box;
background-color: var( --color-surface-1 );
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
box-shadow: 2.2px 5.3px 10px 10px rgba(46, 49, 56, .05);
opacity: 0;
visibility: hidden;
}
.mbox:hover {
/* Merge with popup */
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-shadow: 2.2px 5.3px 10px 10px rgba(46, 49, 56, .05);
}
.mbox:hover .mbox-text {
opacity: 1;
visibility: visible;
}