More actions
Content deleted Content added
Created page with ".mbox { position: relative; display: flex; flex-direction: column; margin-top: 1rem; margin-bottom: 1rem; background-color: darkgrey; border-radius: 0.5rem; color: black; font-size: 0.75rem; line-height: 1; } .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-colo..." |
No edit summary |
||
Line 30: | Line 30: | ||
.mbox-icon img { |
.mbox-icon img { |
||
display: block; |
display: block; |
||
width: |
width: 20px; |
||
height: auto; |
height: auto; |
||
margin-right: 0.5rem; |
margin-right: 0.5rem; |
||
opacity: 0.7; |
opacity: 0.7; |
||
filter: grayscale( |
filter: grayscale(20%); |
||
} |
} |
||
Revision as of 00:08, 29 September 2024
.mbox {
position: relative;
display: flex;
flex-direction: column;
margin-top: 1rem;
margin-bottom: 1rem;
background-color: darkgrey;
border-radius: 0.5rem;
color: black;
font-size: 0.75rem;
line-height: 1;
}
.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: 10px;
}
.mbox-icon img {
display: block;
width: 20px;
height: auto;
margin-right: 0.5rem;
opacity: 0.7;
filter: grayscale(20%);
}
.mbox-text {
position: absolute;
top: 100%;
z-index: 10;
padding: 1rem;
width: 100%;
box-sizing: border-box;
background-color: darkgrey;
border-bottom-left-radius: 0.5rem;
border-bottom-right-radius: 0.5rem;
box-shadow: 5px 7px 6px black;
opacity: 0;
visibility: hidden;
}
.mbox:hover {
/* Merge with popup */
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
box-shadow: 5px 7px 6px black;
}
.mbox:hover .mbox-text {
opacity: 1;
visibility: visible;
}