open-nomad/ui/app/styles/components/node-status-light.scss

55 lines
814 B
SCSS
Raw Normal View History

2021-11-05 21:35:01 +00:00
@use "sass:math";
$size: 1.6rem;
2017-09-19 14:47:10 +00:00
.node-status-light {
display: inline-flex;
2017-09-19 14:47:10 +00:00
height: $size;
width: $size;
2021-11-05 21:35:01 +00:00
border-radius: math.div($size, 2);
2017-09-19 14:47:10 +00:00
vertical-align: middle;
align-items: center;
justify-content: center;
2017-09-19 14:47:10 +00:00
// Compensate for the padding within the SVG
// (between the circle paths and the viewBox)
margin-left: -1px;
margin-right: -1px;
2017-09-19 14:47:10 +00:00
&.ready {
color: $primary;
2017-09-19 14:47:10 +00:00
}
&.down {
color: $danger;
2017-09-19 14:47:10 +00:00
}
&.initializing {
color: $grey-light;
.blinking {
animation: node-status-light-initializing 0.7s infinite alternate ease-in-out;
}
2017-09-19 14:47:10 +00:00
}
2018-05-29 17:27:24 +00:00
&.ineligible,
&.draining {
color: $warning;
2018-05-29 17:27:24 +00:00
}
.icon {
width: $size;
height: $size;
}
2017-09-19 14:47:10 +00:00
}
@keyframes node-status-light-initializing {
0% {
opacity: 0.2;
}
100% {
opacity: 0.7;
}
}