fleet/frontend/components/FlashMessage/_styles.scss
2025-09-29 12:10:41 -05:00

106 lines
1.8 KiB
SCSS

// Allows for centering flash message for short and long, wrapped messages
.flash-message-container {
@include position(fixed);
top: 80px;
left: 0;
right: 0;
display: flex;
flex-direction: column;
gap: $pad-small;
justify-content: center;
align-items: center;
z-index: 999;
pointer-events: none;
}
.flash-message {
display: flex;
align-items: center;
justify-content: center;
color: $core-fleet-white;
padding: $pad-small $pad-medium;
z-index: 999;
background-color: $core-vibrant-blue;
border: 1px solid $ui-fleet-black-10;
box-sizing: border-box;
box-shadow: 0px 7px 3px -5px rgba(25, 33, 71, 0.1);
border-radius: 8px;
max-width: calc(100% - 64px); // Same horizontal margin as .main-content
pointer-events: auto;
&--success {
background-color: $ui-success;
}
&--error {
background-color: $ui-error;
}
&--warning-filled {
background-color: $ui-warning;
span {
margin-left: 15px;
margin-right: 15px;
font-size: $x-small;
color: $core-fleet-black;
}
}
&__content {
display: flex;
align-items: center;
span {
margin-left: 15px;
margin-right: 15px;
font-size: $x-small;
}
.fleeticon {
font-size: $small;
}
img {
width: 16px;
height: 16px;
}
a {
color: inherit;
}
}
&__undo {
color: $core-fleet-white;
cursor: pointer;
font-size: $small;
text-decoration: underline;
text-transform: uppercase;
margin-right: 15px;
}
&__remove {
height: auto;
cursor: pointer;
.fleeticon {
transition: color 150ms ease-in-out;
color: $core-fleet-white;
font-size: $small;
&:hover {
color: $core-fleet-white;
}
}
}
&__ex {
text-decoration: none;
button {
display: flex;
align-items: center;
}
}
}