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

53 lines
786 B
SCSS
Raw Normal View History

$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;
border-radius: $size / 2;
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;
}
}