fleet/frontend/components/FlashMessage/_styles.scss
Martavis Parker bcfac603f0
Added components to Storybook library (#2768)
* added storybook

* added avatar component

* added button story

* added dropdown button story

* removed unused ellipsis component

* cleaned up modal path

* reorganized enroll secrets table file

* added flash story; removed unused persistent flash

* added fleet ace story

* added checkbox story

* added dropdown story

* added input story

* fixed storybook build

* fixed avatar

* added input with icon story

* added radio button story

* added select targets dropdown story

* added slider story

* added tooltip story

* added info banner story

* removed unused loaders; added spinner story

* added modal story

* removed unused NumberPill

* added pagination story

* lint fixes

* added documentation to run

* modified documentation

* fixed corelayout test

* fixed format for date-fns

* fixed date format that breaks tests

* wait for page
2021-11-06 23:41:09 -07:00

119 lines
1.9 KiB
SCSS

.wrapper {
> div {
&.flash-message {
height: 50px;
min-height: 50px;
max-height: 50px;
}
}
}
.flash-message {
@include position(fixed);
top: 80px;
left: 50%;
transform: translate(-50%, 0);
display: flex;
align-items: center;
justify-content: center;
color: $core-white;
padding: $pad-small $pad-medium;
z-index: 999;
background-color: $core-vibrant-blue;
margin: auto;
border: 1px solid $ui-fleet-blue-15;
box-sizing: border-box;
box-shadow: 0px 7px 3px -5px rgba(25, 33, 71, 0.1);
border-radius: 8px;
&--success {
background-color: $ui-success;
.fleeticon {
color: $core-white;
}
}
&--error {
background-color: $ui-error;
.fleeticon {
color: $core-white;
}
}
&--warning-filled {
background-color: $ui-warning;
.fleeticon {
color: $core-fleet-black;
}
a {
font-size: $x-small;
color: $core-vibrant-blue;
font-weight: $bold;
text-decoration: none;
}
span {
margin-left: 15px;
margin-right: 15px;
font-size: $x-small;
color: $core-fleet-black;
white-space: nowrap;
}
}
&__content {
display: flex;
align-items: center;
span {
margin-left: 15px;
margin-right: 15px;
font-size: $x-small;
white-space: nowrap;
}
.fleeticon {
font-size: $small;
}
}
&__undo {
color: $core-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-white;
font-size: $small;
&:hover {
color: $core-white;
}
}
}
&__ex {
text-decoration: none;
button {
display: flex;
align-items: center;
img {
height: 16px;
width: 16px;
}
}
}
}